1701 {
1703
1704 EntityHandle fe_ent = OP::getFEEntityHandle();
1705
1707
1708 if (bc.faces.find(fe_ent) != bc.faces.end()) {
1710
1711 int nb_integration_pts = OP::getGaussPts().size2();
1712 auto t_w = OP::getFTensor0IntegrationWeight();
1713 int nb_base_functions = row_data.
getN().size2();
1715
1718
1721 t_bc_mask(ii) = bc.flags[ii] ? 1. : 0.;
1722
1723 auto get_t_vec = [&](const int rr) {
1724 std::array<double *, SPACE_DIM> ptrs;
1726 ptrs[
i] = &OP::locMat(rr +
i,
i);
1729 };
1730
1731 auto area = getMeasure();
1732 auto t_coords = OP::getFTensor1CoordsAtGaussPts();
1733 for (int gg = 0; gg != nb_integration_pts; ++gg) {
1734 auto tau_scale =
1735 area * t_w * OP::betaCoeff(t_coords(0), t_coords(1), t_coords(2));
1736 int rr = 0;
1737 for (; rr != nb_dofs /
SPACE_DIM; ++rr) {
1740 for (
int cc = 0; cc != nb_dofs /
SPACE_DIM; ++cc) {
1742 tau_scale * (t_row_base_fun * t_col_base_fun) * t_bc_mask(
i);
1743 ++t_col_base_fun;
1744 ++t_mat;
1745 }
1746 ++t_row_base_fun;
1747 }
1748 for (; rr != nb_base_functions; ++rr)
1749 ++t_row_base_fun;
1750
1751 ++t_w;
1752 ++t_coords;
1753 }
1754 }
1755 }
1756
1758}
#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.