1358 {
1360
1362
1364
1365 if (bc.faces.find(fe_ent) != bc.faces.end()) {
1367
1368 int nb_integration_pts = OP::getGaussPts().size2();
1369 auto t_w = OP::getFTensor0IntegrationWeight();
1370 int nb_base_functions = row_data.
getN().size2();
1372
1375
1376 auto get_t_vec = [&](const int rr) {
1377 std::array<double *, SPACE_DIM> ptrs;
1379 ptrs[
i] = &OP::locMat(rr +
i,
i);
1382 };
1383
1384 auto area = getMeasure();
1385 auto t_coords = OP::getFTensor1CoordsAtGaussPts();
1386 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1387 auto tau_scale =
1388 area * t_w * OP::betaCoeff(t_coords(0), t_coords(1), t_coords(2));
1389 int rr = 0;
1390 for (; rr != nb_dofs /
SPACE_DIM; ++rr) {
1393 for (
int cc = 0; cc != nb_dofs /
SPACE_DIM; ++cc) {
1394 for (
int ii = 0; ii !=
SPACE_DIM; ++ii) {
1395 if (bc.flags[ii]) {
1396 t_mat(ii) += tau_scale * (t_row_base_fun * t_col_base_fun);
1397 }
1398 }
1399 ++t_col_base_fun;
1400 ++t_mat;
1401 }
1402 ++t_row_base_fun;
1403 }
1404 for (; rr != nb_base_functions; ++rr)
1405 ++t_row_base_fun;
1406
1407 ++t_w;
1408 ++t_coords;
1409 }
1410 }
1411 }
1412
1414}
#define FTENSOR_INDEX(DIM, I)
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
FTensor::Tensor0< FTensor::PackPtr< double *, 1 > > getFTensor0N(const FieldApproximationBase base)
Get base function as Tensor0.
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.