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),
74 virtual MoFEMErrorCode
integrate(
int row_side, EntityType row_type,
83 double *vec_ptr =
nF.data().data();
85 int *ind_ptr = data.
getIndices().data().data();
86 CHKERR VecSetValues(this->getTSf(), nb_dofs, ind_ptr, vec_ptr, ADD_VALUES);
90 virtual MoFEMErrorCode
assemble(
int row_side, EntityType row_type,
103 virtual MoFEMErrorCode
assemble(
int row_side,
int col_side,
104 EntityType row_type, EntityType col_type,
109 const auto row_nb_dofs = row_data.
getIndices().size();
110 const auto col_nb_dofs = col_data.
getIndices().size();
111 transposeK.resize(col_nb_dofs, row_nb_dofs,
false);
116 CHKERR MatSetValues<AssemblyTypeSelector<A>>(this->getTSB(), row_data,
117 col_data,
K, ADD_VALUES);
119 CHKERR MatSetValues<AssemblyTypeSelector<A>>(
120 this->getTSB(), col_data, row_data,
transposeK, ADD_VALUES);
137 MoFEMErrorCode
doWork(
int row_side,
int col_side, EntityType row_type,
138 EntityType col_type,
EntData &row_data,
148 CHKERR assemble(row_side, col_side, row_type, col_type, row_data, col_data);
159 MoFEMErrorCode
assemble(
int row_side,
int col_side, EntityType row_type,
160 EntityType col_type,
EntData &row_data,
165 constexpr bool store_matrices =
false;
166 if constexpr (store_matrices) {
168 m.resize(
K.size1(),
K.size2(),
false);
172 m.resize(
K.size2(),
K.size1(),
false);
180 static inline std::map<std::pair<std::string, std::string>, MatrixDouble>
189 using OpAssembleVolume::OpAssembleVolume;
193 "OpAssembleVolumePositiveDefine not implemented");
197 MoFEMErrorCode
doWork(
int row_side,
int col_side, EntityType row_type,
198 EntityType col_type,
EntData &row_data,
209 constexpr bool run_psd =
true;
213 auto symmetrize = [](MatrixDouble &mat) {
214 MatrixDouble r = (mat + trans(mat)) / 2.0;
217 auto check_positive_definite = [](MatrixDouble &mat) {
221 auto frobenius_norm = [](MatrixDouble &mat) {
223 for (std::size_t
i = 0;
i < mat.size1(); ++
i)
224 for (std::size_t
j = 0;
j < mat.size2(); ++
j)
225 sum += mat(
i,
j) * mat(
i,
j);
226 return std::sqrt(sum);
229 auto higham_method_one_pass = [&](MatrixDouble &mat) {
232 const int size = (
n + 2) *
n;
234 double *work =
new double[size];
236 VectorDouble eig(
n, 0.0);
237 MatrixDouble eigen_vec = prod(trans(mat), mat);
239 eig.data().data(), work, lwork) > 0)
241 "The algorithm failed to compute eigenvalues.");
244 for (
auto &e : eig) {
245 constexpr double eps = std::numeric_limits<double>::epsilon();
246 e = std::max(std::sqrt(std::abs(e)),
eps);
249 auto diagonal_matrix =
250 ublas::diagonal_matrix<
double, ublas::row_major,
251 VecAllocator<double>>(
n, eig.data());
252 MatrixDouble symm_mat;
253 symm_mat = prod(trans(eigen_vec), diagonal_matrix);
254 symm_mat = prod(symm_mat, eigen_vec);
256 MatrixDouble hat_m = (mat + symm_mat) / 2.0;
261 auto hat_k = higham_method_one_pass(
K);
265 CHKERR assemble(row_side, col_side, row_type, col_type, row_data, col_data);
275 :
public ForcesAndSourcesCore::UserDataOperator {
282 boost::shared_ptr<DataAtIntegrationPts>
289 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
double alpha_omega = 0)
292 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
295 boost::shared_ptr<DataAtIntegrationPts>
302 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
304 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE],
false);
305 for (
auto t = moab::CN::TypeDimensionMap[
SPACE_DIM].first;
306 t <= moab::CN::TypeDimensionMap[
SPACE_DIM].second; ++
t)
307 doEntities[
t] =
true;
310 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
313 boost::shared_ptr<DataAtIntegrationPts>
319 std::string block_name,
Range block_entities,
320 std::array<double, 6> &reaction_vec)
324 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
327 boost::shared_ptr<DataAtIntegrationPts>
336 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
337 const double alpha,
const double rho)
349 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
361 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
370 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
379 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
384template <
int INTERP_ORDER>
387 std::string tag_name =
"")
389 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE],
false);
390 doEntities[MBVERTEX] =
true;
403 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
404 boost::shared_ptr<ScalingMethod> scaling_method_ptr)
415template <AssemblyType A>
417 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBrokenBase {
419 using OP =
typename FormsIntegrators<FaceUserDataOperator>::Assembly<
423 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
424 boost::shared_ptr<BcDispVec> &bc_disp_ptr,
425 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
426 boost::shared_ptr<Range> ents_ptr =
nullptr)
427 :
OP(broken_base_side_data, ents_ptr), bcDispPtr(bc_disp_ptr),
428 scalingMethodsMap(smv) {}
438 using OP::OpDispBcImpl;
446template <AssemblyType A>
448 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBrokenBase {
450 using OP =
typename FormsIntegrators<FaceUserDataOperator>::Assembly<
454 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
455 boost::shared_ptr<BcRotVec> &bc_rot_ptr,
456 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
457 boost::shared_ptr<Range> ents_ptr =
nullptr)
458 :
OP(broken_base_side_data, ents_ptr), bcRotPtr(bc_rot_ptr),
459 scalingMethodsMap(smv) {}
479 using OP::OpRotationBcImpl;
486 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase {
488 const std::string row_field, boost::shared_ptr<TractionBcVec> bc_data,
489 boost::shared_ptr<double> piola_scale_ptr,
490 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv)
491 : FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>::
OpBase(
492 row_field, row_field, FaceUserDataOperator::OPROW),
504 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase {
506 const std::string row_field, boost::shared_ptr<PressureBcVec> bc_data,
507 boost::shared_ptr<double> piola_scale_ptr,
508 boost::shared_ptr<MatrixDouble> hybrid_grad_disp,
509 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv)
510 : FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>::
OpBase(
511 row_field, row_field, FaceUserDataOperator::OPROW),
524template <AssemblyType A, IntegrationType I>
527template <AssemblyType A>
529 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBase {
532 typename FormsIntegrators<FaceUserDataOperator>::Assembly<
A>
::OpBase;
535 std::string row_field, boost::shared_ptr<PressureBcVec> bc_data,
536 boost::shared_ptr<MatrixDouble> hybrid_grad_disp,
537 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv)
538 :
OP(row_field, row_field,
OP::OPROWCOL), bcData(bc_data),
539 hybridGradDispPtr(hybrid_grad_disp), scalingMethodsMap(smv) {}
558 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase {
560 const std::string row_field,
561 boost::shared_ptr<AnalyticalTractionBcVec> bc_data,
562 boost::shared_ptr<double> piola_scale_ptr,
563 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv)
564 : FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>::
OpBase(
565 row_field, row_field, FaceUserDataOperator::OPROW),
571 boost::shared_ptr<AnalyticalTractionBcVec>
bcData;
580template <AssemblyType A>
582 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase {
585 typename FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>
::OpBase;
588 std::string row_field, boost::shared_ptr<MatrixDouble> hybrid_disp_ptr,
589 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_side_data_ptr,
591 boost::shared_ptr<NormalDisplacementBcVec> &bc_disp_ptr,
592 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
593 boost::shared_ptr<Range> ents_ptr =
nullptr)
594 : FormsIntegrators<FaceUserDataOperator>::Assembly<PETSC>::
OpBase(
595 row_field, row_field,
OP::OPROW),
596 hybridDispPtr(hybrid_disp_ptr),
597 brokenBaseSideDataPtr(
598 broken_side_data_ptr),
599 bcDispPtr(bc_disp_ptr), scalingMethodsMap(smv) {}
610template <AssemblyType A>
612 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBase {
615 typename FormsIntegrators<FaceUserDataOperator>::Assembly<
A>
::OpBase;
618 std::string row_field,
619 boost::shared_ptr<NormalDisplacementBcVec> &bc_disp_ptr,
620 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
621 boost::shared_ptr<Range> ents_ptr =
nullptr)
622 :
OP(row_field, row_field,
OP::OPROWCOL), bcDispPtr(bc_disp_ptr),
623 scalingMethodsMap(smv) {}
631template <AssemblyType A>
633 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBrokenBase {
635 using OP =
typename FormsIntegrators<FaceUserDataOperator>::Assembly<
639 std::string row_field,
640 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
641 boost::shared_ptr<NormalDisplacementBcVec> &bc_disp_ptr,
642 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
643 boost::shared_ptr<Range> ents_ptr =
nullptr)
644 :
OP(row_field, broken_base_side_data, false, false, ents_ptr),
645 bcDispPtr(bc_disp_ptr), scalingMethodsMap(smv) {}
655 using OP::OpNormalDispBcRhsImpl;
679template <AssemblyType A>
681 :
public FormsIntegrators<FaceUserDataOperator>::Assembly<A>
::OpBrokenBase {
683 using OP =
typename FormsIntegrators<FaceUserDataOperator>::Assembly<
687 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
688 boost::shared_ptr<AnalyticalDisplacementBcVec> &bc_disp_ptr,
689 std::map<std::string, boost::shared_ptr<ScalingMethod>> smv,
690 boost::shared_ptr<Range> ents_ptr =
nullptr)
691 :
OP(broken_base_side_data, ents_ptr), bcDispPtr(bc_disp_ptr),
692 scalingMethodsMap(smv) {}
696 boost::shared_ptr<AnalyticalDisplacementBcVec>
bcDispPtr;
702 using OP::OpAnalyticalDispBcImpl;
710 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
711 const bool assemble_off =
false)
723 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
724 const double alpha,
const double rho)
734 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
735 const bool assemble_off =
false)
746 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
747 const bool assemble_off =
false)
757 using OpAssembleVolume::OpAssembleVolume;
759 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
760 const bool assemble_off)
770 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
782 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
783 const bool assemble_off)
793 std::string row_field, std::string col_field,
794 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
const bool assemble_off)
804 std::string row_field, std::string col_field,
805 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
double alpha_omega)
818 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
831 std::string row_field, std::string col_field,
832 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
845 std::string row_field, std::string col_field,
846 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
859 std::string row_field, std::string col_field,
860 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
const bool assemble_off)
872 std::string row_field, std::string col_field,
873 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
const bool assemble_off)
884 :
public VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator {
886 using OP = VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator;
893 std::vector<EntityHandle> &map_gauss_pts,
894 boost::shared_ptr<DataAtIntegrationPts> data_ptr,
899 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
907 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
914 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
924 boost::shared_ptr<DataAtIntegrationPts> data_ptr)
932 :
public VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator {
935 using OP = VolumeElementForcesAndSourcesCoreOnSide::UserDataOperator;
940 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
943 boost::shared_ptr<DataAtIntegrationPts>
948 :
public FaceElementForcesAndSourcesCore::UserDataOperator {
951 using OP = FaceElementForcesAndSourcesCore::UserDataOperator;
956 MoFEMErrorCode
doWork(
int side, EntityType type,
EntData &data);
959 boost::shared_ptr<DataAtIntegrationPts>
963template <
int FE_DIM,
int PROBLEM_DIM,
int SPACE_DIM>
struct AddHOOps;
967 static MoFEMErrorCode
968 add(boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pipeline,
969 std::vector<FieldSpace> space, std::string geom_field_name,
970 boost::shared_ptr<Range> crack_front_edges_ptr);
975 static MoFEMErrorCode
976 add(boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pipeline,
977 std::vector<FieldSpace> space, std::string geom_field_name,
978 boost::shared_ptr<Range> crack_front_edges_ptr);
983 static MoFEMErrorCode
984 add(boost::ptr_deque<ForcesAndSourcesCore::UserDataOperator> &pipeline,
985 std::vector<FieldSpace> space, std::string geom_field_name,
986 boost::shared_ptr<Range> crack_front_edges_ptr,
987 boost::shared_ptr<MatrixDouble> jac =
nullptr,
988 boost::shared_ptr<VectorDouble> det =
nullptr,
989 boost::shared_ptr<MatrixDouble> inv_jac =
nullptr);
993 FormsIntegrators<FaceElementForcesAndSourcesCore::UserDataOperator>::
994 Assembly<A>::LinearForm<GAUSS>::OpBaseTimesVector<1, SPACE_DIM, 1>;
996template <
typename OP>
999 using BASE = OpBrokenBaseImpl<OP>;
1002 MoFEMErrorCode
doWork(
int row_side, EntityType row_type,
1003 EntitiesFieldData::EntData &row_data) {
1007 if (OP::entsPtr->find(this->getFEEntityHandle()) == OP::entsPtr->end())
1012 if (!BASE::brokenBaseSideData) {
1017 auto do_work_rhs = [
this](
int row_side, EntityType row_type,
1018 EntitiesFieldData::EntData &row_data) {
1021 OP::nbRows = row_data.getIndices().size();
1025 OP::nbIntegrationPts = OP::getGaussPts().size2();
1027 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(row_data);
1029 OP::locF.resize(OP::nbRows,
false);
1032 CHKERR this->iNtegrate(row_data);
1034 CHKERR this->aSsemble(row_data);
1038 auto do_work_lhs = [
this](
int row_side,
int col_side, EntityType row_type,
1039 EntityType col_type,
1040 EntitiesFieldData::EntData &row_data,
1041 EntitiesFieldData::EntData &col_data) {
1044 auto check_if_assemble_transpose = [&] {
1046 if (OP::rowSide != OP::colSide || OP::rowType != OP::colType)
1050 }
else if (OP::assembleTranspose) {
1056 OP::rowSide = row_side;
1057 OP::rowType = row_type;
1058 OP::colSide = col_side;
1059 OP::colType = col_type;
1060 OP::nbCols = col_data.getIndices().size();
1061 OP::locMat.resize(OP::nbRows, OP::nbCols,
false);
1063 CHKERR this->iNtegrate(row_data, col_data);
1064 CHKERR this->aSsemble(row_data, col_data, check_if_assemble_transpose());
1068 switch (OP::opType) {
1071 OP::nbRows = row_data.getIndices().size();
1074 OP::nbIntegrationPts = OP::getGaussPts().size2();
1075 OP::nbRowBaseFunctions = OP::getNbOfBaseFunctions(row_data);
1080 for (
auto &bd : *BASE::brokenBaseSideData) {
1083 if (!bd.getData().getNSharedPtr(bd.getData().getBase())) {
1085 "base functions not set");
1092 row_side, bd.getSide(),
1095 row_type, bd.getType(),
1098 row_data, bd.getData()
1105 for (
auto &bd : *BASE::brokenBaseSideData) {
1106 CHKERR do_work_rhs(bd.getSide(), bd.getType(), bd.getData());
1111 (std::string(
"wrong op type ") +
1112 OpBaseDerivativesBase::OpTypeNames[OP::opType])
1125 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1126 boost::shared_ptr<MatrixDouble> vec,
1127 ScalarFun beta_coeff = [](
double,
double,
double)
constexpr {
return 1; },
1128 boost::shared_ptr<Range> ents_ptr =
nullptr);
1136 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1137 ScalarFun beta_coeff = [](
double,
double,
double)
constexpr {
return 1; },
1138 boost::shared_ptr<Range> ents_ptr =
nullptr);
1141 MoFEMErrorCode
doWork(
int row_side, EntityType row_type,
1142 EntitiesFieldData::EntData &row_data);
1149 const std::string row_field,
1150 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1151 ScalarFun beta_coeff, boost::shared_ptr<Range> ents_ptr =
nullptr);
1154 MoFEMErrorCode
iNtegrate(EntitiesFieldData::EntData &data);
1159 FormsIntegrators<FaceElementForcesAndSourcesCore::UserDataOperator>::
1166 std::string row_field,
1167 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1168 ScalarFun beta,
const bool assmb_transpose,
const bool only_transpose,
1169 boost::shared_ptr<Range> ents_ptr =
nullptr);
1176 boost::shared_ptr<std::vector<BrokenBaseSideData>> broken_base_side_data,
1177 ScalarFun beta, boost::shared_ptr<Range> ents_ptr =
nullptr);
1179 MoFEMErrorCode
doWork(
int row_side, EntityType row_type,
1180 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
ForcesAndSourcesCore::UserDataOperator UserDataOperator
#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)
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.
typename OP::ScaleOff ScaleOff
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)
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)
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