1193 {
1196
1197#ifndef NDEBUG
1200 "Broken side data pointer is null");
1201#endif
1202
1203
1204 const int nb_dofs = data.
getIndices().size();
1205 if (!nb_dofs)
1207
1208 const int nb_integration_pts = getGaussPts().size2();
1209 const int nb_base_functions = data.
getN().size2();
1210
1211 if (data.
getDiffN().size1() != nb_integration_pts)
1213 "Differential of base functions should have the same number of "
1214 "integration points as the data");
1215 if (data.
getDiffN().size2() != nb_base_functions * 2)
1217 "Differential of base functions should have the same number of "
1218 "base functions as the data");
1219
1220 double time = getFEMethod()->ts_t;
1223
1225
1228
1231 if (bc.faces.find(fe_ent) == bc.faces.end())
1232 continue;
1233
1237 } else {
1239 << "No scaling method found for " << bc.blockName;
1240 }
1241
1243 bc.vals[2]);
1245
1247 auto t_w = getFTensor0IntegrationWeight();
1248 auto t_tangent1 = getFTensor1Tangent1AtGaussPts();
1249 auto t_tangent2 = getFTensor1Tangent2AtGaussPts();
1250 auto t_var_flux =
1251 getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(bd.getVarFlux());
1253
1254 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1255 const double a = 0.5 * bd.getSense() * t_w;
1256
1260
1261 locJ +=
a * t_bc_disp(
i) * (t_var_flux(
i,
j) * t_normal(
j));
1262
1263 auto t_nf = getFTensor1FromArray<SPACE_DIM, SPACE_DIM>(
nF);
1264 int bb = 0;
1265 for (; bb != nb_dofs /
SPACE_DIM; ++bb) {
1266
1267
1268
1269
1270 ++t_nf;
1271 ++t_diff_base;
1272 }
1273 for (; bb != nb_base_functions; ++bb)
1274 ++t_diff_base;
1275
1276 ++t_w;
1277 ++t_tangent1;
1278 ++t_tangent2;
1279 ++t_var_flux;
1280 }
1281 }
1282
1283 }
1284
1285
1287}
#define FTENSOR_INDEXES(DIM,...)
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
@ MOFEM_DATA_INCONSISTENCY
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define MOFEM_LOG(channel, severity)
Log.
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
constexpr std::enable_if<(Dim0<=2 &&Dim1<=2), Tensor2_Expr< Levi_Civita< T >, T, Dim0, Dim1, i, j > >::type levi_civita(const Index< i, Dim0 > &, const Index< j, Dim1 > &)
levi_civita functions to make for easy adhoc use
constexpr IntegrationType I
static PetscBool physicalTimeFlg
static double currentPhysicalTime
MatrixDouble & getDiffN(const FieldApproximationBase base)
get derivatives of base functions
auto getFTensor1DiffN(const FieldApproximationBase base)
Get derivatives of base functions.
MatrixDouble & getN(const FieldApproximationBase base)
get base functions this return matrix (nb. of rows is equal to nb. of Gauss pts, nb....
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.
VectorDouble nF
local right hand side vector