#include "tutorials/vec-8_elasticity_adaptive/src/AdaptiveOrderRef.hpp"
Definition at line 99 of file AdaptiveOrderRef.hpp.
◆ OpCalculateTractionJump()
| OpCalculateTractionJump::OpCalculateTractionJump |
( |
const std::string |
field_name, |
|
|
boost::shared_ptr< MatrixDouble > |
stress_ptr, |
|
|
boost::shared_ptr< MatrixDouble > |
traction_ptr |
|
) |
| |
|
inline |
Definition at line 100 of file AdaptiveOrderRef.hpp.
105 std::fill(&doEntities[MBVERTEX], &doEntities[MBMAXTYPE], false);
106 doEntities[MBVERTEX] = true;
107 }
constexpr auto field_name
boost::shared_ptr< MatrixDouble > tractionJumpPtr
boost::shared_ptr< MatrixDouble > stressPtr
EleOnSide::UserDataOperator SideEleOp
◆ doWork()
| MoFEMErrorCode OpCalculateTractionJump::doWork |
( |
int |
side, |
|
|
EntityType |
type, |
|
|
EntData & |
data |
|
) |
| |
|
inline |
Definition at line 109 of file AdaptiveOrderRef.hpp.
109 {
113 auto nb_gauss_pts = getGaussPts().size2();
114
115
116 auto n_InLoop = getNinTheLoop();
117 auto e_sense = getSkeletonSense();
118
119 if (n_InLoop == 0) {
122 }
123
124 auto t_normal = getFTensor1NormalsAtGaussPts();
125 auto t_stress = getFTensor2SymmetricFromMat<SPACE_DIM>(*
stressPtr);
127
128 for (auto gg = 0; gg != nb_gauss_pts; ++gg) {
130 t_unit_normal(
i) = t_normal(
i);
132
133 t_traction(
i) -= e_sense * (t_stress(
i,
j) * t_unit_normal(
j));
134
135 ++t_normal;
136 ++t_stress;
137 ++t_traction;
138 }
140 }
Tensor1< T, Tensor_Dim > normalize()
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
FTensor::Index< 'i', SPACE_DIM > i
FTensor::Index< 'j', 3 > j
◆ stressPtr
| boost::shared_ptr<MatrixDouble> OpCalculateTractionJump::stressPtr |
|
private |
◆ tractionJumpPtr
| boost::shared_ptr<MatrixDouble> OpCalculateTractionJump::tractionJumpPtr |
|
private |
The documentation for this struct was generated from the following file: