2964 {
2966
2968
2970 int nb_integration_pts = getGaussPts().size2();
2971 int nb_base_functions = data.
getN().size2();
2972
2973 double time = getFEMethod()->ts_t;
2976 }
2977
2978#ifndef NDEBUG
2979 if (this->locF.size() != nb_dofs)
2981 "Size of locF %ld != nb_dofs %d", this->locF.size(), nb_dofs);
2982#endif
2983
2984
2985 EntityHandle fe_ent = getFEEntityHandle();
2986 for (
auto &bc : *(
bcData)) {
2987 if (bc.faces.find(fe_ent) != bc.faces.end()) {
2988
2990
2991 auto [block_name, v_analytical_expr] =
2995 auto t_w = getFTensor0IntegrationWeight();
2996 auto t_coords = getFTensor1CoordsAtGaussPts();
2997
2999
3000 for (int gg = 0; gg != nb_integration_pts; ++gg) {
3001
3002 auto t_f = getFTensor1FromPtr<3>(&*this->locF.begin());
3003 int rr = 0;
3004 for (; rr != nb_dofs /
SPACE_DIM; ++rr) {
3005 t_f(
i) -= t_w * t_row_base * (t_val(
i) *
scale);
3006 ++t_row_base;
3007 ++t_f;
3008 }
3009
3010 for (; rr != nb_base_functions; ++rr)
3011 ++t_row_base;
3012 ++t_w;
3013 ++t_coords;
3014 ++t_val;
3015 }
3016 this->locF *= getMeasure();
3017 }
3018 }
3020}
#define FTENSOR_INDEX(DIM, I)
#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()
FTensor::Index< 'i', SPACE_DIM > i
std::tuple< std::string, MatrixDouble > getAnalyticalExpr(OP_PTR op_ptr, MatrixDouble &analytical_expr, const std::string block_name)
DataLayoutTraits< DataLayout::GaussByCoeffs > DL
auto getFTensor1FromMat(M &data, int rr=0, int cc=0)
Get tensor rank 1 (vector) form data matrix.
static PetscBool physicalTimeFlg
static double currentPhysicalTime
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 VectorDouble & getFieldData() const
Get DOF values on entity.