17template <
typename T1,
typename T2,
int DIM1,
int DIM2>
23 "Case of mixed dimension by gradient not implemented");
26 double ave_tr_strain = 0;
29 for (
auto gg = 0; gg != nb_gauss_pts; ++gg) {
31 ave_tr_strain += t_w * t_grad(
i,
i);
35 ave_tr_strain /= (
DIM1 *
v);
40template <
typename T1,
typename T2,
int DIM1,
int DIM2,
int DIM3>
48 "Case of mixed dimension by gradient not implemented");
54 t_strain(
i,
j) = (t_grad(
i,
j) || t_grad(
j,
i)) / 2;
55 double tr_strain = t_grad(
i,
i) /
DIM1;
60 t_strain(
i,
j) += (ave_tr_strain - tr_strain) *
t_kd(
i,
j);
67 return t_voight_strain;
70template <
typename T1,
typename T2,
int DIM1,
int DIM3>
84 return t_voight_strain;
102 const int nb_integration_pts,
104 const auto nb_dofs = data.getFieldData().size();
106 storage.resize(nb_integration_pts, 6 * nb_dofs,
false);
117 auto get_ftensor2_symmetric = [&](
const int gg,
const int rr) {
118 return getFTensor2SymmetricFromPtr<3>(&storage(gg, 6 * rr));
122 auto calc_base = [&]() {
123 auto t_t2_diff = get_ftensor2_symmetric(0, 0);
124 for (
auto gg = 0; gg != nb_integration_pts; ++gg) {
125 auto t_diff = data.getFTensor1DiffN<DIM>(gg, 0);
126 for (
auto b = 0; b != nb_dofs / DIM; ++b) {
131 t_grad(N0,
J) = t_diff(
J);
132 t_t2_diff(
i,
j) = (t_grad(
i,
j) || t_grad(
j,
i)) / 2;
136 t_grad(N1,
J) = t_diff(
J);
137 t_t2_diff(
i,
j) = (t_grad(
i,
j) || t_grad(
j,
i)) / 2;
141 if constexpr (DIM == 3) {
142 t_grad(N2,
J) = t_diff(
J);
143 t_t2_diff(
i,
j) = (t_grad(
i,
j) || t_grad(
j,
i)) / 2;
153 auto calc_vol = [&]() {
154 auto t_t2_dff = get_ftensor2_symmetric(0, 0);
155 std::vector<double> vol(nb_dofs, 0);
156 for (
auto gg = 0; gg != nb_integration_pts; ++gg) {
157 for (
auto b = 0; b != nb_dofs; ++b) {
158 vol[b] += w_ptr[gg] * t_t2_dff(
i,
i) / DIM;
163 for (
auto gg = 0; gg != nb_integration_pts; ++gg) {
166 for (
auto &
v : vol) {
173 auto make_b_bar = [&](
auto &&vol) {
174 auto t_t2_diff = get_ftensor2_symmetric(0, 0);
176 for (
auto gg = 0; gg != nb_integration_pts; ++gg) {
177 for (
auto b = 0; b != nb_dofs; ++b) {
178 const auto trace = t_t2_diff(
J,
J) / DIM;
187 make_b_bar(calc_vol());
190 return get_ftensor2_symmetric(0, 0);
198 const int nb_integration_pts,
double *w_ptr,
208 const int nb_integration_pts,
double *w_ptr,
216 OpUpdate(boost::shared_ptr<CommonData> common_data_ptr);
219 DataForcesAndSourcesCore::EntData &data);
228 commonDataPtr(common_data_ptr) {}
231 DataForcesAndSourcesCore::EntData &data) {
234 int nb_gauss_pts = getGaussPts().size2();
236 for (
int gg = 0; gg < nb_gauss_pts; gg++) {
238 auto cp_plastic_strain =
commonDataPtr->getPlasticStrain(gg);
239 auto cp_internal_variables =
commonDataPtr->getInternalVariables(gg);
240 const auto nb_internal_variables = cp_internal_variables.size();
241 auto plastic_strain =
244 &
commonDataPtr->internalVariablesPtr[gg * nb_internal_variables],
245 nb_internal_variables);
246 plastic_strain = cp_plastic_strain;
247 internal_variables = cp_internal_variables;
254template <
int DIM, StrainType STRAIN>
258 boost::shared_ptr<CommonData> common_data_ptr,
259 boost::shared_ptr<ClosestPointProjection> cp_ptr,
265 boost::shared_ptr<ClosestPointProjection>
cpPtr;
274 const int nb_internal_variables);
277template <
int DIM, StrainType STRAIN>
283 DataForcesAndSourcesCore::EntData &data)
override;
292 DataForcesAndSourcesCore::EntData &data)
override;
302 DataForcesAndSourcesCore::EntData &data)
override;
305template <
int DIM, StrainType STRAIN>
308 boost::shared_ptr<ClosestPointProjection> cp_ptr,
bool calc_lhs)
311 mField(m_field), commonDataPtr(common_data_ptr), cpPtr(cp_ptr),
316template <
int DIM, StrainType STRAIN>
321 "PLASTIC_STRAIN", def_length, MB_TYPE_DOUBLE, thPlasticStrain,
322 MB_TAG_CREAT | MB_TAG_SPARSE | MB_TAG_VARLEN, NULL);
324 "INTERNAL_VARIABLES", def_length, MB_TYPE_DOUBLE, thInternalVariables,
325 MB_TAG_CREAT | MB_TAG_SPARSE | MB_TAG_VARLEN, NULL);
329template <
int DIM, StrainType STRAIN>
331 const EntityHandle tet,
const int nb_gauss_pts,
332 const int nb_internal_variables) {
338 thPlasticStrain, &tet, 1,
339 (
const void **)&commonDataPtr->plasticStrainPtr,
340 &commonDataPtr->plasticStrainSize);
341 if (
rval != MB_SUCCESS ||
342 commonDataPtr->plasticStrainSize != 6 * nb_gauss_pts) {
343 v.resize(6 * nb_gauss_pts,
false);
346 tag_size[0] =
v.size();
347 void const *tag_data[] = {&
v[0]};
351 thPlasticStrain, &tet, 1,
352 (
const void **)&commonDataPtr->plasticStrainPtr,
353 &commonDataPtr->plasticStrainSize);
356 if (nb_internal_variables > 0) {
358 thInternalVariables, &tet, 1,
359 (
const void **)&commonDataPtr->internalVariablesPtr,
360 &commonDataPtr->internalVariablesSize);
361 if (
rval != MB_SUCCESS || commonDataPtr->internalVariablesSize !=
362 nb_internal_variables * nb_gauss_pts) {
363 v.resize(nb_internal_variables * nb_gauss_pts,
false);
366 tag_size[0] =
v.size();
367 void const *tag_data[] = {&
v[0]};
371 thInternalVariables, &tet, 1,
372 (
const void **)&commonDataPtr->internalVariablesPtr,
373 &commonDataPtr->internalVariablesSize);
381 int side, EntityType
type, DataForcesAndSourcesCore::EntData &data) {
384 auto do_work_impl = [
this](
auto commonDataPtr,
auto cpPtr) {
387 int nb_gauss_pts = this->getGaussPts().size2();
389 int nb_internal_variables = cpPtr->nbInternalVariables;
390 auto tet = this->getNumeredEntFiniteElementPtr()->getEnt();
391 CHKERR this->setTagsData(tet, nb_gauss_pts, nb_internal_variables);
393 commonDataPtr->activeVariablesW.resize(
394 nb_gauss_pts, 12 + cpPtr->nbInternalVariables,
false);
395 commonDataPtr->gradientW.resize(nb_gauss_pts,
396 12 + cpPtr->nbInternalVariables,
false);
397 commonDataPtr->deltaGamma.resize(nb_gauss_pts);
409 commonDataPtr->materialTangentOperator, nb_gauss_pts);
414 CHKERR SNESGetLinearSolveIterations(this->getFEMethod()->snes, &iter);
417 double ave_tr_strain = 0;
420 getFTensor2SymmetricFromMat<DIM>(commonDataPtr->gradAtGaussPts);
421 auto t_Cep = get_Cep();
423 for (
auto gg = 0; gg != nb_gauss_pts; ++gg) {
427 12 + cpPtr->nbInternalVariables);
428 cpPtr->activeVariablesW.swap(tmp_active);
430 12 + cpPtr->nbInternalVariables);
431 this->cpPtr->gradientW.swap(tmp_gradient);
433 auto t_voigt_strain =
434 calcStrain(commonDataPtr->bBar, ave_tr_strain, t_grad,
435 getFTensor1FromPtr<6>(&(cpPtr->activeVariablesW[6])));
439 auto copy_plastic_strain_and_internal_variables = [&]() {
445 6, &commonDataPtr->plasticStrainPtr[gg * 6]));
447 nb_internal_variables,
448 ublas::shallow_array_adaptor<double>(
449 nb_internal_variables,
451 ->internalVariablesPtr[gg * nb_internal_variables]));
454 cpPtr->plasticStrain0.resize(6,
false);
455 noalias(cpPtr->plasticStrain0) = plastic_strain_tags;
456 cpPtr->internalVariables0.resize(nb_internal_variables,
false);
457 noalias(cpPtr->internalVariables0) = internal_variables_tags;
459 auto cp_plastic_strain = cpPtr->getPlasticStrain();
460 auto cp_internal_variables = cpPtr->getInternalVariables();
461 noalias(cp_plastic_strain) = plastic_strain_tags;
462 noalias(cp_internal_variables) = internal_variables_tags;
466 CHKERR copy_plastic_strain_and_internal_variables();
468 auto closest_point_projection = [&](
auto &recalculate_elastic_tangent) {
472 CHKERR cpPtr->setParams(
t, recalculate_elastic_tangent);
474 CHKERR cpPtr->playW_NoHessian();
475 CHKERR cpPtr->playY_NoGradient();
477 cpPtr->deltaGamma = 0;
478 if (iter > 0 && y > std::numeric_limits<double>::epsilon()) {
479 CHKERR cpPtr->solveClosestProjection();
481 commonDataPtr->deltaGamma[gg] = cpPtr->deltaGamma;
485 auto evaluate_consistent_tangent_matrix =
486 [&](
auto &recalculate_elastic_tangent) {
488 if (recalculate_elastic_tangent)
492 cpPtr->deltaGamma > std::numeric_limits<double>::epsilon()) {
494 CHKERR cpPtr->consistentTangent();
496 auto &
m = cpPtr->Cep;
501 &
m(0, 0), &
m(0, 1), &
m(0, 2), &
m(0, 3), &
m(0, 4),
504 &
m(1, 0), &
m(1, 1), &
m(1, 2), &
m(1, 3), &
m(1, 4),
507 &
m(2, 0), &
m(2, 1), &
m(2, 2), &
m(2, 3), &
m(2, 4),
510 &
m(3, 0), &
m(3, 1), &
m(3, 2), &
m(3, 3), &
m(3, 4),
513 &
m(4, 0), &
m(4, 1), &
m(4, 2), &
m(4, 3), &
m(4, 4),
516 &
m(5, 0), &
m(5, 1), &
m(5, 2), &
m(5, 3), &
m(5, 4), &
m(5, 5)
526 t_voight_stress_op(
i,
j, Z) *
527 (t_voight_cep(Z, Y) * t_voight_stress_op(
k,
l, Y));
534 &
m(0, 0), &
m(0, 1), &
m(0, 2), &
m(0, 3), &
m(0, 4),
537 &
m(1, 1), &
m(1, 2), &
m(1, 3), &
m(1, 4), &
m(1, 5),
539 &
m(2, 2), &
m(2, 3), &
m(2, 4), &
m(2, 5),
541 &
m(3, 3), &
m(3, 4), &
m(3, 5),
553 t_voight_stress_op(
i,
j, Z) *
554 (t_voight_cep(Z, Y) * t_voight_stress_op(
k,
l, Y));
562 bool recalculate_elastic_tangent =
563 (this->getNinTheLoop() == 0) ?
true :
false;
564 CHKERR closest_point_projection(recalculate_elastic_tangent);
566 CHKERR evaluate_consistent_tangent_matrix(recalculate_elastic_tangent);
569 auto calcs_stress_matrix = [&]() {
575 DL>
::size(commonDataPtr->stressMatrix, nb_gauss_pts);
576 auto t_stess = get_stress();
577 auto t_voight_stress = commonDataPtr->getFTensor1StressAtGaussPts();
578 for (
auto gg = 0; gg != commonDataPtr->gradientW.size1(); ++gg) {
584 t_stess(
i,
j) = t_voight_stress_op(
i,
j, Z) * t_voight_stress(Z);
591 auto calcs_plastic_strain_matrix = [&]() {
594 commonDataPtr->plasticStrainMatrix.resize(
595 commonDataPtr->activeVariablesW.size1(), 6,
false);
596 auto t_plastic_strain =
597 getFTensor2SymmetricFromMat<3>(commonDataPtr->plasticStrainMatrix);
598 auto t_voight_plastic_strain =
599 commonDataPtr->getFTensor1PlasticStrainAtGaussPts();
600 for (
auto gg = 0; gg != commonDataPtr->activeVariablesW.size1(); ++gg) {
601 t_plastic_strain(
i,
j) =
602 t_voight_strain_op(
i,
j, Z) * t_voight_plastic_strain(Z);
603 ++t_voight_plastic_strain;
609 CHKERR calcs_stress_matrix();
610 CHKERR calcs_plastic_strain_matrix();
614 CHKERR do_work_impl(this->commonDataPtr, this->cpPtr);
621 int side, EntityType
type, DataForcesAndSourcesCore::EntData &data) {
624 auto do_work_impl = [
this](
auto commonDataPtr,
auto cpPtr) {
627 int nb_gauss_pts = this->getGaussPts().size2();
629 int nb_internal_variables = cpPtr->nbInternalVariables;
630 auto tet = this->getNumeredEntFiniteElementPtr()->getEnt();
631 CHKERR this->setTagsData(tet, nb_gauss_pts, nb_internal_variables);
633 commonDataPtr->activeVariablesW.resize(
634 nb_gauss_pts, 12 + cpPtr->nbInternalVariables,
false);
635 commonDataPtr->gradientW.resize(nb_gauss_pts,
636 12 + cpPtr->nbInternalVariables,
false);
637 commonDataPtr->materialTangentOperator.resize(nb_gauss_pts, 36,
false);
638 commonDataPtr->deltaGamma.resize(nb_gauss_pts);
650 CHKERR SNESGetLinearSolveIterations(this->getFEMethod()->snes, &iter);
655 this->commonDataPtr->bBar, nb_gauss_pts,
656 getFTensor2FromMat<DIM, DIM>(commonDataPtr->gradAtGaussPts),
657 this->getFTensor0IntegrationWeight());
661 auto t_grad = getFTensor2FromMat<DIM, DIM>(commonDataPtr->gradAtGaussPts);
663 auto t_Cep = getFTensor4DdgFromMat<3, 3>(
664 this->commonDataPtr->materialTangentOperator);
665 for (
auto gg = 0; gg != nb_gauss_pts; ++gg) {
669 12 + cpPtr->nbInternalVariables);
670 cpPtr->activeVariablesW.swap(tmp_active);
672 12 + cpPtr->nbInternalVariables);
673 cpPtr->gradientW.swap(tmp_gradient);
675 auto t_voigt_strain =
676 calcStrain(commonDataPtr->bBar, ave_tr_strain, t_grad,
677 getFTensor1FromPtr<6>(&(cpPtr->activeVariablesW[6])));
681 auto copy_plastic_strain_and_internal_variables = [&]() {
687 6, &commonDataPtr->plasticStrainPtr[gg * 6]));
689 nb_internal_variables,
690 ublas::shallow_array_adaptor<double>(
691 nb_internal_variables,
693 ->internalVariablesPtr[gg * nb_internal_variables]));
696 cpPtr->plasticStrain0.resize(6,
false);
697 noalias(cpPtr->plasticStrain0) = plastic_strain_tags;
698 cpPtr->internalVariables0.resize(nb_internal_variables,
false);
699 noalias(cpPtr->internalVariables0) = internal_variables_tags;
701 auto cp_plastic_strain = cpPtr->getPlasticStrain();
702 auto cp_internal_variables = cpPtr->getInternalVariables();
703 noalias(cp_plastic_strain) = plastic_strain_tags;
704 noalias(cp_internal_variables) = internal_variables_tags;
708 CHKERR copy_plastic_strain_and_internal_variables();
710 auto closest_point_projection = [&](
auto &recalculate_elastic_tangent) {
714 CHKERR cpPtr->setParams(
t, recalculate_elastic_tangent);
716 CHKERR cpPtr->playW_NoHessian();
717 CHKERR cpPtr->playY_NoGradient();
719 cpPtr->deltaGamma = 0;
720 if (iter > 0 && y > std::numeric_limits<double>::epsilon()) {
721 CHKERR cpPtr->solveClosestProjection();
723 commonDataPtr->deltaGamma[gg] = cpPtr->deltaGamma;
727 auto evaluate_consistent_tangent_matrix =
728 [&](
auto &recalculate_elastic_tangent) {
730 if (recalculate_elastic_tangent)
734 cpPtr->deltaGamma > std::numeric_limits<double>::epsilon()) {
736 CHKERR cpPtr->consistentTangent();
738 auto &
m = cpPtr->Cep;
743 &
m(0, 0), &
m(0, 1), &
m(0, 2), &
m(0, 3), &
m(0, 4),
746 &
m(1, 0), &
m(1, 1), &
m(1, 2), &
m(1, 3), &
m(1, 4),
749 &
m(2, 0), &
m(2, 1), &
m(2, 2), &
m(2, 3), &
m(2, 4),
752 &
m(3, 0), &
m(3, 1), &
m(3, 2), &
m(3, 3), &
m(3, 4),
755 &
m(4, 0), &
m(4, 1), &
m(4, 2), &
m(4, 3), &
m(4, 4),
758 &
m(5, 0), &
m(5, 1), &
m(5, 2), &
m(5, 3), &
m(5, 4), &
m(5, 5)
763 t_voight_stress_op(
i,
j, Z) *
764 (t_voight_cep(Z, Y) * t_voight_stress_op(
k,
l, Y));
771 &
m(0, 0), &
m(0, 1), &
m(0, 2), &
m(0, 3), &
m(0, 4),
774 &
m(1, 1), &
m(1, 2), &
m(1, 3), &
m(1, 4), &
m(1, 5),
776 &
m(2, 2), &
m(2, 3), &
m(2, 4), &
m(2, 5),
778 &
m(3, 3), &
m(3, 4), &
m(3, 5),
785 t_voight_stress_op(
i,
j, Z) *
786 (t_voight_cep(Z, Y) * t_voight_stress_op(
k,
l, Y));
794 bool recalculate_elastic_tangent =
795 (this->getNinTheLoop() == 0) ?
true :
false;
796 CHKERR closest_point_projection(recalculate_elastic_tangent);
798 CHKERR evaluate_consistent_tangent_matrix(recalculate_elastic_tangent);
801 auto calcs_stress_matrix = [&]() {
804 commonDataPtr->stressMatrix.resize(commonDataPtr->gradientW.size1(), 6,
807 getFTensor2SymmetricFromMat<3>(commonDataPtr->stressMatrix);
808 auto t_voight_stress = commonDataPtr->getFTensor1StressAtGaussPts();
809 for (
auto gg = 0; gg != commonDataPtr->gradientW.size1(); ++gg) {
810 t_stess(
i,
j) = t_voight_stress_op(
i,
j, Z) * t_voight_stress(Z);
817 auto calcs_plastic_strain_matrix = [&]() {
820 commonDataPtr->plasticStrainMatrix.resize(
821 commonDataPtr->activeVariablesW.size1(), 6,
false);
822 auto t_plastic_strain =
823 getFTensor2SymmetricFromMat<3>(commonDataPtr->plasticStrainMatrix);
824 auto t_voight_plastic_strain =
825 commonDataPtr->getFTensor1PlasticStrainAtGaussPts();
826 for (
auto gg = 0; gg != commonDataPtr->activeVariablesW.size1(); ++gg) {
827 t_plastic_strain(
i,
j) =
828 t_voight_strain_op(
i,
j, Z) * t_voight_plastic_strain(Z);
829 ++t_voight_plastic_strain;
835 CHKERR calcs_stress_matrix();
836 CHKERR calcs_plastic_strain_matrix();
840 CHKERR do_work_impl(this->commonDataPtr, this->cpPtr);
849 boost::shared_ptr<ClosestPointProjection> cp_ptr,
bool calc_lhs) {
858 boost::shared_ptr<ClosestPointProjection> cp_ptr,
bool calc_lhs) {
867 boost::shared_ptr<ClosestPointProjection> cp_ptr,
bool calc_lhs) {
876 boost::shared_ptr<ClosestPointProjection> cp_ptr,
bool calc_lhs) {
884 std::string block_name,
885 boost::shared_ptr<CommonData> common_data_ptr,
886 boost::shared_ptr<ClosestPointProjection> cp_ptr) {
888 pip.push_back(
new OpUpdate(common_data_ptr));
895 std::string block_name,
896 boost::shared_ptr<CommonData> common_data_ptr,
897 boost::shared_ptr<ClosestPointProjection> cp_ptr) {
898 return opFactoryDomainUpdateImpl<3>(m_field, pip, block_name, common_data_ptr,
905 std::string block_name,
906 boost::shared_ptr<CommonData> common_data_ptr,
907 boost::shared_ptr<ClosestPointProjection> cp_ptr) {
908 return opFactoryDomainUpdateImpl<2>(m_field, pip, block_name, common_data_ptr,
918 TSUpdateImpl(std::string fe_name, boost::shared_ptr<FEMethod> fe_ptr);
927 boost::shared_ptr<FEMethod> fe_ptr)
928 : feName(fe_name), fePtr(fe_ptr) {}
948 boost::shared_ptr<FEMethod> fe_ptr) {
949 return boost::make_shared<TSUpdateImpl>(fe_name, fe_ptr);
MoFEM::Interface & mField
Vec t
Removal: the ring edge.
#define FTENSOR_INDEX(DIM, I)
Kronecker Delta class symmetric.
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
#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()
#define CHKERR
Inline error check.
double trace(FTensor::Tensor2< T, 2, 2 > &t_stress)
PetscErrorCode DMoFEMLoopFiniteElements(DM dm, const char fe_name[], MoFEM::FEMethod *method, CacheTupleWeakPtr cache_ptr=CacheTupleSharedPtr())
Executes FEMethod for finite elements in DM.
FTensor::Index< 'i', SPACE_DIM > i
const double v
phase velocity of light in medium (cm/ns)
FTensor::Index< 'J', DIM1 > J
FTensor::Index< 'l', 3 > l
FTensor::Index< 'j', 3 > j
FTensor::Index< 'k', 3 > k
ForcesAndSourcesCore::UserDataOperator * getRawPtrOpCalculateStress< 3, SMALL_STRAIN >(MoFEM::Interface &m_field, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr, bool calc_lhs)
ForcesAndSourcesCore::UserDataOperator * getRawPtrOpCalculateStress< 2, SMALL_STRAIN >(MoFEM::Interface &m_field, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr, bool calc_lhs)
FTensor::Dg< double, 3, 6 > strain_to_voight_op()
Op convert strain tensor to Vight strain vector.
FTensor::Dg< double, 3, 6 > voight_to_stress_op()
Op convert Vight stress vector to stress tensor.
auto getFTensor2SymmetricDiffBaseImpl(DataForcesAndSourcesCore::EntData &data, MatrixDouble &storage, const bool b_bar, const int nb_integration_pts, double *w_ptr, FTensor::Number< DIM >)
[BBar method]
MoFEMErrorCode opFactoryDomainUpdate< 2 >(MoFEM::Interface &m_field, Pip &pip, std::string block_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr)
Push operators to update history variables.
static FTensor::Dg< double, 3, 6 > tStrainToVoightOp
double calcAveStrain(bool b_bar, const int nb_gauss_pts, FTensor::Tensor2< T1, DIM1, DIM2 > &&t_grad, FTensor::Tensor0< T2 > &&t_w)
MoFEMErrorCode opFactoryDomainUpdateImpl(MoFEM::Interface &m_field, Pip &pip, std::string block_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr)
FTensor::Tensor1< T2, DIM3 > calcStrain(bool b_bar, double ave_tr_strain, FTensor::Tensor2< T1, DIM1, DIM2 > &t_grad, FTensor::Tensor1< T2, DIM3 > &&t_voight_strain)
boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > Pip
boost::shared_ptr< TSUpdate > createTSUpdate(std::string fe_name, boost::shared_ptr< FEMethod > fe_ptr)
ForcesAndSourcesCore::UserDataOperator * getRawPtrOpCalculateStress< 2, LARGE_STRAIN >(MoFEM::Interface &m_field, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr, bool calc_lhs)
ForcesAndSourcesCore::UserDataOperator * getRawPtrOpCalculateStress< 3, LARGE_STRAIN >(MoFEM::Interface &m_field, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr, bool calc_lhs)
MoFEMErrorCode opFactoryDomainUpdate< 3 >(MoFEM::Interface &m_field, Pip &pip, std::string block_name, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr)
Push operators to update history variables.
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
VectorShallowArrayAdaptor< double > VectorAdaptor
implementation of Data Operators for Forces and Sources
auto getVectorAdaptor(T1 ptr, const size_t n)
Get Vector adaptor.
decltype(GetFTensor2SymmetricFromMatImpl< Tensor_Dim, S, DL, M >::get(std::declval< M & >(), 0, 0)) GetFTensor2SymmetricFromMatType
decltype(GetFTensor4DdgFromMatImpl< Tensor_Dim01, Tensor_Dim23, S, DL, M >::get(std::declval< M & >(), 0, 0)) GetFTensor4DdgFromMatType
constexpr IntegrationType I
FTensor::Index< 'm', 3 > m
static FTensor::Tensor2_symmetric< FTensor::CursorPtr< double *, 6 >, 3 > getFTensor2SymmetricDiffBase(DataForcesAndSourcesCore::EntData &data, MatrixDouble &storage, const bool b_bar, const int nb_integration_pts, double *w_ptr, FTensor::Number< 2 >)
boost::shared_ptr< CommonData > commonDataPtr
MoFEMErrorCode setTagsData(const EntityHandle tet, const int nb_gauss_pts, const int nb_internal_variables)
boost::shared_ptr< ClosestPointProjection > cpPtr
OpCalculateStressImpl(MoFEM::Interface &m_field, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr, bool calc_lhs)
MoFEM::Interface & mField
MoFEMErrorCode doWork(int side, EntityType type, DataForcesAndSourcesCore::EntData &data) override
boost::shared_ptr< CommonData > commonDataPtr
OpUpdate(boost::shared_ptr< CommonData > common_data_ptr)
MoFEMErrorCode doWork(int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
MoFEMErrorCode postProcess(TS ts)
boost::shared_ptr< FEMethod > fePtr
TSUpdateImpl(std::string fe_name, boost::shared_ptr< FEMethod > fe_ptr)
Update internal fluxes (update history variables)
virtual moab::Interface & get_moab()=0
Deprecated interface functions.
structure to get information from mofem into EntitiesFieldData
@ CTX_SNESNONE
No specific SNES context.