1154 {
1157
1158#ifndef NDEBUG
1161 "Broken side data pointer is null");
1162#endif
1163
1164 const int nb_dofs =
data.getIndices().size();
1165 if (!nb_dofs)
1167
1168 const int nb_integration_pts = getGaussPts().size2();
1169 const int nb_base_functions =
data.getN().size2();
1170
1171#ifndef NDEBUG
1172 if (
data.getDiffN().size1() != nb_integration_pts)
1174 "Differential of base functions should have the same number of "
1175 "integration points as the data");
1176 if (
data.getDiffN().size2() != nb_base_functions * 2)
1178 "Differential of base functions should have the same number of "
1179 "base functions as the data");
1180#endif
1181
1182 double time = getFEMethod()->ts_t;
1185
1187
1190
1191 const EntityHandle fe_ent = getFEEntityHandle();
1193 if (bc.faces.find(fe_ent) == bc.faces.end())
1194 continue;
1195
1199 } else {
1201 << "No scaling method found for " << bc.blockName;
1202 }
1203
1205 bc.vals[2]);
1207
1209 auto t_w = getFTensor0IntegrationWeight();
1210 auto t_tangent1 = getFTensor1Tangent1AtGaussPts();
1211 auto t_tangent2 = getFTensor1Tangent2AtGaussPts();
1212 auto t_var_flux =
1213 getFTensor2FromMat<SPACE_DIM, SPACE_DIM>(bd.getVarFlux());
1214 auto t_diff_base =
data.getFTensor1DiffN<2>();
1215
1216 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1217 const double a = 0.5 * bd.getSense() * t_w;
1218
1222
1223 locJ +=
a * t_bc_disp(
i) * (t_var_flux(
i,
j) * t_normal(
j));
1224
1225 auto t_nf = getFTensor1FromArray<SPACE_DIM, SPACE_DIM>(
nF);
1226 int bb = 0;
1227 for (; bb != nb_dofs /
SPACE_DIM; ++bb) {
1228
1229
1230
1231
1232 ++t_nf;
1233 ++t_diff_base;
1234 }
1235 for (; bb != nb_base_functions; ++bb)
1236 ++t_diff_base;
1237
1238 ++t_w;
1239 ++t_tangent1;
1240 ++t_tangent2;
1241 ++t_var_flux;
1242 }
1243 }
1244 }
1245
1247}
boost::shared_ptr< DataAtIntegrationPts > data
#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
VectorDouble nF
local right hand side vector