14 OpJacobian(
const int tag,
const bool eval_rhs,
const bool eval_lhs,
15 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
16 boost::shared_ptr<PhysicalEquations> physics_ptr)
23 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
32 boost::shared_ptr<DataAtIntegrationPts>
34 boost::shared_ptr<PhysicalEquations>
43 boost::shared_ptr<DataAtIntegrationPts>
47 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
52 std::string row_field, std::string col_field,
53 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
const char type,
54 const bool assemble_symmetry,
ScaleOff scale_off = []() {
return 1; })
55 : T(row_field, col_field, type, false),
dataAtPts(data_ptr),
73 virtual MoFEMErrorCode
integrate(
int row_side, EntityType row_type,
82 double *vec_ptr = &*
nF.begin();
85 CHKERR VecSetValues(this->getTSf(), nb_dofs, ind_ptr, vec_ptr, ADD_VALUES);
89 virtual MoFEMErrorCode
assemble(
int row_side, EntityType row_type,
102 virtual MoFEMErrorCode
assemble(
int row_side,
int col_side,
103 EntityType row_type, EntityType col_type,
108 const auto row_nb_dofs = row_data.
getIndices().size();
109 const auto col_nb_dofs = col_data.
getIndices().size();
110 transposeK.resize(col_nb_dofs, row_nb_dofs,
false);
115 CHKERR MatSetValues<AssemblyTypeSelector<A>>(this->getTSB(), row_data,
116 col_data,
K, ADD_VALUES);
118 CHKERR MatSetValues<AssemblyTypeSelector<A>>(
119 this->getTSB(), col_data, row_data,
transposeK, ADD_VALUES);
136 MoFEMErrorCode
doWork(
int row_side,
int col_side, EntityType row_type,
137 EntityType col_type,
EntData &row_data,
147 CHKERR assemble(row_side, col_side, row_type, col_type, row_data, col_data);
155 MoFEMErrorCode
assemble(
int row_side,
int col_side, EntityType row_type,
156 EntityType col_type,
EntData &row_data,
161 constexpr bool store_matrices =
false;
162 if constexpr (store_matrices) {
164 m.resize(
K.size1(),
K.size2(),
false);
168 m.resize(
K.size2(),
K.size1(),
false);
176 static inline std::map<std::pair<std::string, std::string>, MatrixDouble>
185 using OpAssembleVolume::OpAssembleVolume;
189 "OpAssembleVolumePositiveDefine not implemented");
193 MoFEMErrorCode
doWork(
int row_side,
int col_side, EntityType row_type,
194 EntityType col_type,
EntData &row_data,
205 constexpr bool run_psd =
true;
209 auto symmetrize = [](MatrixDouble &mat) {
210 MatrixDouble r = (mat + trans(mat)) / 2.0;
213 auto check_positive_definite = [](MatrixDouble &mat) {
217 auto frobenius_norm = [](MatrixDouble &mat) {
219 for (std::size_t
i = 0;
i < mat.size1(); ++
i)
220 for (std::size_t
j = 0;
j < mat.size2(); ++
j)
221 sum += mat(
i,
j) * mat(
i,
j);
222 return std::sqrt(sum);
225 auto higham_method_one_pass = [&](MatrixDouble &mat) {
228 const int size = (
n + 2) *
n;
230 double *work =
new double[size];
232 VectorDouble eig(
n, 0.0);
233 MatrixDouble eigen_vec = prod(trans(mat), mat);
235 eig.data().data(), work, lwork) > 0)
237 "The algorithm failed to compute eigenvalues.");
240 for (
auto &e : eig) {
241 constexpr double eps = std::numeric_limits<double>::epsilon();
242 e = std::max(std::sqrt(std::abs(e)),
eps);
245 auto diagonal_matrix =
246 ublas::diagonal_matrix<
double, ublas::row_major,
247 VecAllocator<double>>(
n, eig.data());
248 MatrixDouble symm_mat;
249 symm_mat = prod(trans(eigen_vec), diagonal_matrix);
250 symm_mat = prod(symm_mat, eigen_vec);
252 MatrixDouble hat_m = (mat + symm_mat) / 2.0;
257 auto hat_k = higham_method_one_pass(
K);
261 CHKERR assemble(row_side, col_side, row_type, col_type, row_data, col_data);
271 :
public ForcesAndSourcesCore::UserDataOperator {
278 boost::shared_ptr<DataAtIntegrationPts>
285 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
double alpha_omega = 0)
288 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
291 boost::shared_ptr<DataAtIntegrationPts>
298 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
300 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE],
false);
301 for (
auto t = moab::CN::TypeDimensionMap[
SPACE_DIM].first;
302 t <= moab::CN::TypeDimensionMap[
SPACE_DIM].second; ++
t)
303 doEntities[
t] =
true;
306 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
309 boost::shared_ptr<DataAtIntegrationPts>
315 std::string block_name,
Range block_entities,
316 std::array<double, 6> &reaction_vec)
320 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
323 boost::shared_ptr<DataAtIntegrationPts>
332 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
333 const double alpha,
const double rho)
345 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
357 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
366 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
375 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
380template <
int INTERP_ORDER>
383 std::string tag_name =
"")
399 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
400 boost::shared_ptr<ScalingMethod> scaling_method_ptr)
411template <AssemblyType A>
413 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBrokenBase {
415 using OP =
typename FormsIntegrators<FaceUserDataOperator>::Assembly<
419 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
420 boost::shared_ptr<BcDispVec> &bc_disp_ptr,
421 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
422 boost::shared_ptr<Range> ents_ptr =
nullptr)
423 :
OP(broken_base_side_data, ents_ptr), bcDispPtr(bc_disp_ptr),
424 scalingMethodsMap(smv) {}
434 using OP::OpDispBcImpl;
442template <AssemblyType A>
444 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBrokenBase {
446 using OP =
typename FormsIntegrators<FaceUserDataOperator>::Assembly<
450 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
451 boost::shared_ptr<BcRotVec> &bc_rot_ptr,
452 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
453 boost::shared_ptr<Range> ents_ptr =
nullptr)
454 :
OP(broken_base_side_data, ents_ptr), bcRotPtr(bc_rot_ptr),
455 scalingMethodsMap(smv) {}
475 using OP::OpRotationBcImpl;
482 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase {
484 const std::string row_field, boost::shared_ptr<TractionBcVec> bc_data,
485 boost::shared_ptr<double> piola_scale_ptr,
486 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv)
487 : FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>::
OpBase(
488 row_field, row_field, FaceUserDataOperator::OPROW),
500 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase {
502 const std::string row_field, boost::shared_ptr<PressureBcVec> bc_data,
503 boost::shared_ptr<double> piola_scale_ptr,
504 boost::shared_ptr<MatrixDouble> hybrid_grad_disp,
505 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv)
506 : FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>::
OpBase(
507 row_field, row_field, FaceUserDataOperator::OPROW),
520template <AssemblyType A, IntegrationType I>
523template <AssemblyType A>
525 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBase {
528 typename FormsIntegrators<FaceUserDataOperator>::Assembly<
A>
::OpBase;
531 std::string row_field, boost::shared_ptr<PressureBcVec> bc_data,
532 boost::shared_ptr<MatrixDouble> hybrid_grad_disp,
533 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv)
534 :
OP(row_field, row_field,
OP::OPROWCOL), bcData(bc_data),
535 hybridGradDispPtr(hybrid_grad_disp), scalingMethodsMap(smv) {}
554 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase {
556 const std::string row_field,
557 boost::shared_ptr<AnalyticalTractionBcVec> bc_data,
558 boost::shared_ptr<double> piola_scale_ptr,
559 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv)
560 : FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>::
OpBase(
561 row_field, row_field, FaceUserDataOperator::OPROW),
567 boost::shared_ptr<AnalyticalTractionBcVec>
bcData;
576template <AssemblyType A>
578 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase {
581 typename FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase;
584 std::string row_field, boost::shared_ptr<MatrixDouble> hybrid_disp_ptr,
585 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_side_data_ptr,
587 boost::shared_ptr<NormalDisplacementBcVec> &bc_disp_ptr,
588 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
589 boost::shared_ptr<Range> ents_ptr =
nullptr)
590 : FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>::
OpBase(
591 row_field, row_field,
OP::OPROW),
592 hybridDispPtr(hybrid_disp_ptr),
593 brokenBaseSideDataPtr(
594 broken_side_data_ptr),
595 bcDispPtr(bc_disp_ptr), scalingMethodsMap(smv) {}
606template <AssemblyType A>
608 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBase {
611 typename FormsIntegrators<FaceUserDataOperator>::Assembly<
A>
::OpBase;
614 std::string row_field,
615 boost::shared_ptr<NormalDisplacementBcVec> &bc_disp_ptr,
616 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
617 boost::shared_ptr<Range> ents_ptr =
nullptr)
618 :
OP(row_field, row_field,
OP::OPROWCOL), bcDispPtr(bc_disp_ptr),
619 scalingMethodsMap(smv) {}
627template <AssemblyType A>
629 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBrokenBase {
631 using OP =
typename FormsIntegrators<FaceUserDataOperator>::Assembly<
635 std::string row_field,
636 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
637 boost::shared_ptr<NormalDisplacementBcVec> &bc_disp_ptr,
638 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
639 boost::shared_ptr<Range> ents_ptr =
nullptr)
640 :
OP(row_field, broken_base_side_data, false, false, ents_ptr),
641 bcDispPtr(bc_disp_ptr), scalingMethodsMap(smv) {}
651 using OP::OpNormalDispBcRhsImpl;
675template <AssemblyType A>
677 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBrokenBase {
679 using OP =
typename FormsIntegrators<FaceUserDataOperator>::Assembly<
683 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
684 boost::shared_ptr<AnalyticalDisplacementBcVec> &bc_disp_ptr,
685 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
686 boost::shared_ptr<Range> ents_ptr =
nullptr)
687 :
OP(broken_base_side_data, ents_ptr), bcDispPtr(bc_disp_ptr),
688 scalingMethodsMap(smv) {}
692 boost::shared_ptr<AnalyticalDisplacementBcVec>
bcDispPtr;
698 using OP::OpAnalyticalDispBcImpl;
706 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
707 const bool assemble_off =
false)
719 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
720 const double alpha,
const double rho)
730 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
731 const bool assemble_off =
false)
742 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
743 const bool assemble_off =
false)
753 using OpAssembleVolume::OpAssembleVolume;
755 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
756 const bool assemble_off)
766 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
778 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
779 const bool assemble_off)
789 std::string row_field, std::string col_field,
790 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
const bool assemble_off)
800 std::string row_field, std::string col_field,
801 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
double alpha_omega)
814 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
827 std::string row_field, std::string col_field,
828 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
841 std::string row_field, std::string col_field,
842 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
855 std::string row_field, std::string col_field,
856 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
const bool assemble_off)
868 std::string row_field, std::string col_field,
869 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
const bool assemble_off)
880 :
public VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator {
882 using OP = VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator;
889 std::vector<EntityHandle> &map_gauss_pts,
890 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
895 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
903 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
910 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
920 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
928 :
public VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator {
931 using OP = VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator;
936 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
939 boost::shared_ptr<DataAtIntegrationPts>
944 :
public FaceElementForcesAndSourcesCore::UserDataOperator {
947 using OP = FaceElementForcesAndSourcesCore::UserDataOperator;
952 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
955 boost::shared_ptr<DataAtIntegrationPts>
959template <
int FE_DIM,
int PROBLEM_DIM,
int SPACE_DIM>
struct AddHOOps;
963 static MoFEMErrorCode
964 add(boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pipeline,
965 std::vector<FieldSpace> space, std::string geom_field_name,
966 boost::shared_ptr<Range> crack_front_edges_ptr);
971 static MoFEMErrorCode
972 add(boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pipeline,
973 std::vector<FieldSpace> space, std::string geom_field_name,
974 boost::shared_ptr<Range> crack_front_edges_ptr);
979 static MoFEMErrorCode
980 add(boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pipeline,
981 std::vector<FieldSpace> space, std::string geom_field_name,
982 boost::shared_ptr<Range> crack_front_edges_ptr,
983 boost::shared_ptr<MatrixDouble> jac =
nullptr,
984 boost::shared_ptr<VectorDouble> det =
nullptr,
985 boost::shared_ptr<MatrixDouble> inv_jac =
nullptr);
989 FormsIntegrators<FaceElementForcesAndSourcesCore::UserDataOperator>::
990 Assembly<A>::LinearForm<GAUSS>::OpBaseTimesVector<1, SPACE_DIM, 1>;
992template <
typename OP>
995 using BASE = OpBrokenBaseImpl<OP>;
998 MoFEMErrorCode
doWork(
int row_side, EntityType row_type,
999 EntitiesFieldData::EntData &row_data) {
1003 if (OP::entsPtr->find(this->getFEEntityHandle()) == OP::entsPtr->end())
1008 if (!BASE::brokenBaseSideData) {
1013 auto do_work_rhs = [
this](
int row_side, EntityType row_type,
1014 EntitiesFieldData::EntData &row_data) {
1017 OP::nbRows = row_data.getIndices().size();
1021 OP::nbIntegrationPts = OP::getGaussPts().size2();
1023 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(row_data);
1025 OP::locF.resize(OP::nbRows,
false);
1028 CHKERR this->iNtegrate(row_data);
1030 CHKERR this->aSsemble(row_data);
1034 auto do_work_lhs = [
this](
int row_side,
int col_side, EntityType row_type,
1035 EntityType col_type,
1036 EntitiesFieldData::EntData &row_data,
1037 EntitiesFieldData::EntData &col_data) {
1040 auto check_if_assemble_transpose = [&] {
1042 if (OP::rowSide != OP::colSide || OP::rowType != OP::colType)
1046 }
else if (OP::assembleTranspose) {
1052 OP::rowSide = row_side;
1053 OP::rowType = row_type;
1054 OP::colSide = col_side;
1055 OP::colType = col_type;
1056 OP::nbCols = col_data.getIndices().size();
1057 OP::locMat.resize(OP::nbRows, OP::nbCols,
false);
1059 CHKERR this->iNtegrate(row_data, col_data);
1060 CHKERR this->aSsemble(row_data, col_data, check_if_assemble_transpose());
1064 switch (OP::opType) {
1067 OP::nbRows = row_data.getIndices().size();
1070 OP::nbIntegrationPts = OP::getGaussPts().size2();
1071 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(row_data);
1076 for (
auto &bd : *BASE::brokenBaseSideData) {
1079 if (!bd.getData().getNSharedPtr(bd.getData().getBase())) {
1081 "base functions not set");
1088 row_side, bd.getSide(),
1091 row_type, bd.getType(),
1094 row_data, bd.getData()
1101 for (
auto &bd : *BASE::brokenBaseSideData) {
1102 CHKERR do_work_rhs(bd.getSide(), bd.getType(), bd.getData());
1107 (std::string(
"wrong op type ") +
1108 OpBaseDerivativesBase::OpTypeNames[OP::opType])
1121 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1122 boost::shared_ptr<MatrixDouble> vec,
1123 ScalarFun beta_coeff = [](
double,
double,
double)
constexpr {
return 1; },
1124 boost::shared_ptr<Range> ents_ptr =
nullptr);
1132 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1133 ScalarFun beta_coeff = [](
double,
double,
double)
constexpr {
return 1; },
1134 boost::shared_ptr<Range> ents_ptr =
nullptr);
1137 MoFEMErrorCode
doWork(
int row_side, EntityType row_type,
1138 EntitiesFieldData::EntData &row_data);
1145 const std::string row_field,
1146 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1147 ScalarFun beta_coeff, boost::shared_ptr<Range> ents_ptr =
nullptr);
1150 MoFEMErrorCode
iNtegrate(EntitiesFieldData::EntData &data);
1155 FormsIntegrators<FaceElementForcesAndSourcesCore::UserDataOperator>::
1163 std::string row_field,
1164 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1165 ScalarFun beta,
const bool assmb_transpose,
const bool only_transpose,
1166 boost::shared_ptr<Range> ents_ptr =
nullptr);
1174 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1175 ScalarFun beta, boost::shared_ptr<Range> ents_ptr =
nullptr);
1177 MoFEMErrorCode
doWork(
int row_side, EntityType row_type,
1178 EntitiesFieldData::EntData &row_data);
FormsIntegrators< FaceElementForcesAndSourcesCore::UserDataOperator >::Assembly< A >::BiLinearForm< GAUSS >::OpMass< 1, SPACE_DIM > OpMassVectorFace
FormsIntegrators< FaceElementForcesAndSourcesCore::UserDataOperator >::Assembly< A >::LinearForm< GAUSS >::OpBaseTimesVector< 1, SPACE_DIM, 1 > OpBaseTimesVectorFace
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
#define MoFEMFunctionReturnHot(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FieldSpace
approximation spaces
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define CHK_MOAB_THROW(err, msg)
Check error code of MoAB function and throw MoFEM exception.
@ MOFEM_DATA_INCONSISTENCY
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
#define CHKERR
Inline error check.
FTensor::Index< 'i', SPACE_DIM > i
const double n
refractive index of diffusive medium
static __CLPK_integer lapack_dpotrf(char uplo, __CLPK_integer n, __CLPK_doublereal *a, __CLPK_integer lda)
static __CLPK_integer lapack_dsyev(char jobz, char uplo, __CLPK_integer n, __CLPK_doublereal *a, __CLPK_integer lda, __CLPK_doublereal *w, __CLPK_doublereal *work, __CLPK_integer lwork)
FTensor::Index< 'j', 3 > j
constexpr double t
plate stiffness
constexpr auto field_name
OpBaseImpl< PETSC, EdgeEleOp > OpBase
FormsIntegrators< DomainEleOp >::Assembly< PETSC >::BiLinearForm< GAUSS >::OpMass< 1, SPACE_DIM > OpMass
[Only used with Hooke equation (linear material model)]
FTensor::Index< 'm', 3 > m
static MoFEMErrorCode add(boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pipeline, std::vector< FieldSpace > space, std::string geom_field_name, boost::shared_ptr< Range > crack_front_edges_ptr)
static MoFEMErrorCode add(boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pipeline, std::vector< FieldSpace > space, std::string geom_field_name, boost::shared_ptr< Range > crack_front_edges_ptr)
static MoFEMErrorCode add(boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pipeline, std::vector< FieldSpace > space, std::string geom_field_name, boost::shared_ptr< Range > crack_front_edges_ptr, boost::shared_ptr< MatrixDouble > jac=nullptr, boost::shared_ptr< VectorDouble > det=nullptr, boost::shared_ptr< MatrixDouble > inv_jac=nullptr)
std::array< bool, MBMAXTYPE > doEntities
If true operator is executed for entity.
bool sYmm
If true assume that matrix is symmetric structure.
Data on single entity (This is passed as argument to DataOperator::doWork)
const VectorInt & getIndices() const
Get global indices of degrees of freedom on entity.
@ OPROW
operator doWork function is executed on FE rows
@ OPROWCOL
operator doWork is executed on FE rows &columns
@ OPSPACE
operator do Work is execute on space data
boost::shared_ptr< AnalyticalDisplacementBcVec > bcDispPtr
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
MoFEMErrorCode iNtegrate(EntData &data)
OpAnalyticalDispBcImpl(boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< AnalyticalDisplacementBcVec > &bc_disp_ptr, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv, boost::shared_ptr< Range > ents_ptr=nullptr)
MoFEMErrorCode iNtegrate(EntData &data)
MatrixDouble K
local tangent matrix
virtual MoFEMErrorCode integrate(int row_side, EntityType row_type, EntData &data)
VectorDouble nF
local right hand side vector
MoFEMErrorCode doWork(int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data)
virtual MoFEMErrorCode assemble(int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data)
virtual MoFEMErrorCode integrate(EntData &data)
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
virtual MoFEMErrorCode assemble(EntData &data)
OpAssembleBasic(const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type)
virtual MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
const bool assembleSymmetry
boost::function< double()> ScaleOff
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
OpAssembleBasic(const FieldSpace space)
virtual MoFEMErrorCode assemble(int row_side, EntityType row_type, EntData &data)
OpAssembleBasic(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const char type, const bool assemble_symmetry, ScaleOff scale_off=[]() { return 1;})
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Operator for linear form, usually to calculate values on right hand side.
MoFEMErrorCode doWork(int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data)
Operator for bi-linear form, usually to calculate values on left hand side.
static std::map< std::pair< std::string, std::string >, MatrixDouble > mapMatrix
MoFEMErrorCode assemble(int row_side, int col_side, EntityType row_type, EntityType col_type, EntData &row_data, EntData &col_data)
boost::shared_ptr< AnalyticalTractionBcVec > bcData
OpBrokenAnalyticalTractionBc(const std::string row_field, boost::shared_ptr< AnalyticalTractionBcVec > bc_data, boost::shared_ptr< double > piola_scale_ptr, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv)
boost::shared_ptr< double > piolaScalePtr
MoFEMErrorCode iNtegrate(EntData &data)
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
MoFEMErrorCode doWork(int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
MoFEMErrorCode doWork(int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
MoFEMErrorCode iNtegrate(EntData &row_data, EntData &col_data)
boost::shared_ptr< MatrixDouble > hybridGradDispPtr
OpBrokenPressureBcLhsImpl_dU(std::string row_field, boost::shared_ptr< PressureBcVec > bc_data, boost::shared_ptr< MatrixDouble > hybrid_grad_disp, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv)
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
boost::shared_ptr< PressureBcVec > bcData
MoFEMErrorCode iNtegrate(EntData &row_data, EntData &col_data)
boost::shared_ptr< MatrixDouble > hybridGradDispPtr
boost::shared_ptr< double > piolaScalePtr
MoFEMErrorCode iNtegrate(EntData &data)
OpBrokenPressureBc(const std::string row_field, boost::shared_ptr< PressureBcVec > bc_data, boost::shared_ptr< double > piola_scale_ptr, boost::shared_ptr< MatrixDouble > hybrid_grad_disp, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv)
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
boost::shared_ptr< PressureBcVec > bcData
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
OpBrokenTractionBc(const std::string row_field, boost::shared_ptr< TractionBcVec > bc_data, boost::shared_ptr< double > piola_scale_ptr, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv)
boost::shared_ptr< double > piolaScalePtr
boost::shared_ptr< TractionBcVec > bcData
MoFEMErrorCode iNtegrate(EntData &data)
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Operator for linear form, usually to calculate values on right hand side.
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
OpCalculateEshelbyStress(boost::shared_ptr< DataAtIntegrationPts > data_ptr)
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
std::array< double, 6 > & reactionVec
OpCalculateReactionForces(boost::shared_ptr< DataAtIntegrationPts > data_ptr, std::string block_name, Range block_entities, std::array< double, 6 > &reaction_vec)
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Operator for linear form, usually to calculate values on right hand side.
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
OpCalculateRotationAndSpatialGradient(boost::shared_ptr< DataAtIntegrationPts > data_ptr, double alpha_omega=0)
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
OpCalculateTractionFromSideEl(boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
OpDispBcImpl(boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< BcDispVec > &bc_disp_ptr, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv, boost::shared_ptr< Range > ents_ptr=nullptr)
MoFEMErrorCode iNtegrate(EntData &data)
boost::shared_ptr< BcDispVec > bcDispPtr
MoFEMErrorCode iNtegrate(EntData &data)
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
FaceElementForcesAndSourcesCore::UserDataOperator OP
OpFaceMaterialForce(boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Caluclate face material force and normal pressure at gauss points.
OpFaceSideMaterialForce(boost::shared_ptr< DataAtIntegrationPts > data_ptr)
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Operator for linear form, usually to calculate values on right hand side.
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
OpGetInternalStress(boost::shared_ptr< DataAtIntegrationPts > data_ptr, std::string tag_name="")
MoFEMErrorCode iNtegrate(EntitiesFieldData::EntData &data)
boost::shared_ptr< std::vector< BrokenBaseSideData > > brokenBaseSideDataPtr
virtual MoFEMErrorCode evaluateLhs(EntData &data)=0
boost::shared_ptr< PhysicalEquations > physicsPtr
material physical equations
virtual MoFEMErrorCode evaluateRhs(EntData &data)=0
OpJacobian(const int tag, const bool eval_rhs, const bool eval_lhs, boost::shared_ptr< DataAtIntegrationPts > data_ptr, boost::shared_ptr< PhysicalEquations > physics_ptr)
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
data at integration pts
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
Operator for linear form, usually to calculate values on right hand side.
boost::shared_ptr< NormalDisplacementBcVec > bcDispPtr
OpNormalDispBcLhsImpl_dP(std::string row_field, boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< NormalDisplacementBcVec > &bc_disp_ptr, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv, boost::shared_ptr< Range > ents_ptr=nullptr)
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
MoFEMErrorCode iNtegrate(EntData &row_data, EntData &col_data)
MoFEMErrorCode iNtegrate(EntData &row_data, EntData &col_data)
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
OpNormalDispBcLhsImpl_dU(std::string row_field, boost::shared_ptr< NormalDisplacementBcVec > &bc_disp_ptr, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv, boost::shared_ptr< Range > ents_ptr=nullptr)
boost::shared_ptr< NormalDisplacementBcVec > bcDispPtr
boost::shared_ptr< MatrixDouble > hybridDispPtr
OpNormalDispBcRhsImpl(std::string row_field, boost::shared_ptr< MatrixDouble > hybrid_disp_ptr, boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_side_data_ptr, boost::shared_ptr< NormalDisplacementBcVec > &bc_disp_ptr, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv, boost::shared_ptr< Range > ents_ptr=nullptr)
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
MoFEMErrorCode iNtegrate(EntData &data)
boost::shared_ptr< NormalDisplacementBcVec > bcDispPtr
boost::shared_ptr< std::vector< BrokenBaseSideData > > brokenBaseSideDataPtr
MoFEMErrorCode iNtegrate(EntData &row_data, EntData &col_data)
MoFEMErrorCode iNtegrate(EntData &row_data, EntData &col_data)
MoFEMErrorCode iNtegrate(EntData &data)
std::vector< EntityHandle > & mapGaussPts
OpPostProcDataStructure(moab::Interface &post_proc_mesh, std::vector< EntityHandle > &map_gauss_pts, boost::shared_ptr< DataAtIntegrationPts > data_ptr, int sense)
moab::Interface & postProcMesh
boost::shared_ptr< DataAtIntegrationPts > dataAtPts
MoFEMErrorCode doWork(int side, EntityType type, EntData &data)
VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator OP
OpRotationBcImpl(boost::shared_ptr< std::vector< BrokenBaseSideData > > broken_base_side_data, boost::shared_ptr< BcRotVec > &bc_rot_ptr, std::map< std::string, boost::shared_ptr< ScalingMethod > > smv, boost::shared_ptr< Range > ents_ptr=nullptr)
MoFEMErrorCode iNtegrate(EntData &data)
std::map< std::string, boost::shared_ptr< ScalingMethod > > scalingMethodsMap
boost::shared_ptr< BcRotVec > bcRotPtr
Apply rotation boundary condition.
MoFEMErrorCode iNtegrate(EntData &data)
MoFEMErrorCode integrate(EntData &data)
OpSpatialConsistencyBubble(const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode integrate(EntData &data)
OpSpatialConsistencyDivTerm(const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode integrate(EntData &data)
OpSpatialConsistencyP(const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialConsistency_dBubble_dBubble(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode integrateImpl(EntData &row_data, EntData &col_data)
OpSpatialConsistency_dBubble_dP(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode integrateImpl(EntData &row_data, EntData &col_data)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialConsistency_dBubble_domega(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const bool assemble_off)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
MoFEMErrorCode integrateImpl(EntData &row_data, EntData &col_data)
OpSpatialConsistency_dP_dP(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialConsistency_dP_domega(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const bool assemble_off)
OpSpatialEquilibrium_dw_dP(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const bool assemble_off=false)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialEquilibrium_dw_dw(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const double alpha, const double rho)
MoFEMErrorCode integrate(EntData &data)
OpSpatialEquilibrium(const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const double alpha, const double rho)
MoFEMErrorCode integrate(EntData &row_data)
OpSpatialPhysicalInternalStress(const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr, boost::shared_ptr< ScalingMethod > scaling_method_ptr)
boost::shared_ptr< ScalingMethod > scalingMethodPtr
OpSpatialPhysical_du_dBubble(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const bool assemble_off=false)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialPhysical_du_dP(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const bool assemble_off=false)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialPhysical_du_domega(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const bool assemble_off)
OpSpatialPrj_dx_dw(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialPrj_dx_dx(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
OpSpatialPrj(std::string row_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr)
MoFEMErrorCode integrate(EntData &row_data)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialRotation_domega_dBubble(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const bool assemble_off)
OpSpatialRotation_domega_dP(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, const bool assemble_off)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialRotation_domega_domega(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, double alpha_omega)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialRotation_domega_du(std::string row_field, std::string col_field, boost::shared_ptr< DataAtIntegrationPts > data_ptr, double alpha_omega)
MoFEMErrorCode integrate(EntData &row_data, EntData &col_data)
OpSpatialRotation(const std::string &field_name, boost::shared_ptr< DataAtIntegrationPts > data_ptr, double alpha_omega)
MoFEMErrorCode integrate(EntData &data)
MoFEMErrorCode doWork(int row_side, EntityType row_type, EntitiesFieldData::EntData &row_data)
OpBrokenBaseImpl< OP > BASE