v0.14.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ADOLCPlasticity::OpCalculateStress< DIM > Struct Template Reference
Inheritance diagram for ADOLCPlasticity::OpCalculateStress< DIM >:
[legend]
Collaboration diagram for ADOLCPlasticity::OpCalculateStress< DIM >:
[legend]

Public Member Functions

 OpCalculateStress (MoFEM::Interface &m_field, boost::shared_ptr< CommonData > common_data_ptr, boost::shared_ptr< ClosestPointProjection > cp_ptr, bool calc_lhs)
 
MoFEMErrorCode doWork (int side, EntityType type, DataForcesAndSourcesCore::EntData &data)
 
- Public Member Functions inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
 UserDataOperator (const FieldSpace space, const char type=OPSPACE, const bool symm=true)
 
 UserDataOperator (const std::string field_name, const char type, const bool symm=true)
 
 UserDataOperator (const std::string row_field_name, const std::string col_field_name, const char type, const bool symm=true)
 
boost::shared_ptr< const NumeredEntFiniteElementgetNumeredEntFiniteElementPtr () const
 Return raw pointer to NumeredEntFiniteElement. More...
 
EntityHandle getFEEntityHandle () const
 Return finite element entity handle. More...
 
int getFEDim () const
 Get dimension of finite element. More...
 
EntityType getFEType () const
 Get dimension of finite element. More...
 
boost::weak_ptr< SideNumbergetSideNumberPtr (const int side_number, const EntityType type)
 Get the side number pointer. More...
 
EntityHandle getSideEntity (const int side_number, const EntityType type)
 Get the side entity. More...
 
int getNumberOfNodesOnElement () const
 Get the number of nodes on finite element. More...
 
MoFEMErrorCode getProblemRowIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 Get row indices. More...
 
MoFEMErrorCode getProblemColIndices (const std::string filed_name, const EntityType type, const int side, VectorInt &indices) const
 Get col indices. More...
 
const FEMethodgetFEMethod () const
 Return raw pointer to Finite Element Method object. More...
 
int getOpType () const
 Get operator types. More...
 
void setOpType (const OpType type)
 Set operator type. More...
 
void addOpType (const OpType type)
 Add operator type. More...
 
int getNinTheLoop () const
 get number of finite element in the loop More...
 
int getLoopSize () const
 get size of elements in the loop More...
 
std::string getFEName () const
 Get name of the element. More...
 
ForcesAndSourcesCoregetPtrFE () const
 
ForcesAndSourcesCoregetSidePtrFE () const
 
ForcesAndSourcesCoregetRefinePtrFE () const
 
const PetscData::SwitchesgetDataCtx () const
 
const KspMethod::KSPContext getKSPCtx () const
 
const SnesMethod::SNESContext getSNESCtx () const
 
const TSMethod::TSContext getTSCtx () const
 
Vec getKSPf () const
 
Mat getKSPA () const
 
Mat getKSPB () const
 
Vec getSNESf () const
 
Vec getSNESx () const
 
Mat getSNESA () const
 
Mat getSNESB () const
 
Vec getTSu () const
 
Vec getTSu_t () const
 
Vec getTSu_tt () const
 
Vec getTSf () const
 
Mat getTSA () const
 
Mat getTSB () const
 
int getTSstep () const
 
double getTStime () const
 
double getTStimeStep () const
 
double getTSa () const
 
double getTSaa () const
 
MatrixDoublegetGaussPts ()
 matrix of integration (Gauss) points for Volume Element More...
 
auto getFTensor0IntegrationWeight ()
 Get integration weights. More...
 
MatrixDoublegetCoordsAtGaussPts ()
 Gauss points and weight, matrix (nb. of points x 3) More...
 
auto getFTensor1CoordsAtGaussPts ()
 Get coordinates at integration points assuming linear geometry. More...
 
double getMeasure () const
 get measure of element More...
 
doublegetMeasure ()
 get measure of element More...
 
MoFEMErrorCode loopSide (const string &fe_name, ForcesAndSourcesCore *side_fe, const size_t dim, const EntityHandle ent_for_side=0, const int verb=QUIET, const LogManager::SeverityLevel sev=Sev::noisy, AdjCache *adj_cache=nullptr)
 User calls this function to loop over elements on the side of face. This function calls finite element with its operator to do calculations. More...
 
MoFEMErrorCode loopThis (const string &fe_name, ForcesAndSourcesCore *this_fe, const int verb=QUIET, const LogManager::SeverityLevel sev=Sev::noisy)
 User calls this function to loop over the same element using a different set of integration points. This function calls finite element with its operator to do calculations. More...
 
MoFEMErrorCode loopParent (const string &fe_name, ForcesAndSourcesCore *parent_fe, const int verb=QUIET, const LogManager::SeverityLevel sev=Sev::noisy)
 User calls this function to loop over parent elements. This function calls finite element with its operator to do calculations. More...
 
MoFEMErrorCode loopChildren (const string &fe_name, ForcesAndSourcesCore *child_fe, const int verb=QUIET, const LogManager::SeverityLevel sev=Sev::noisy)
 User calls this function to loop over parent elements. This function calls finite element with its operator to do calculations. More...
 
- Public Member Functions inherited from MoFEM::DataOperator
 DataOperator (const bool symm=true)
 
virtual ~DataOperator ()=default
 
virtual MoFEMErrorCode doWork (int row_side, int col_side, EntityType row_type, EntityType col_type, EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)
 Operator for bi-linear form, usually to calculate values on left hand side. More...
 
virtual MoFEMErrorCode opLhs (EntitiesFieldData &row_data, EntitiesFieldData &col_data)
 
virtual MoFEMErrorCode doWork (int side, EntityType type, EntitiesFieldData::EntData &data)
 Operator for linear form, usually to calculate values on right hand side. More...
 
virtual MoFEMErrorCode opRhs (EntitiesFieldData &data, const bool error_if_no_base=false)
 
bool getSymm () const
 Get if operator uses symmetry of DOFs or not. More...
 
void setSymm ()
 set if operator is executed taking in account symmetry More...
 
void unSetSymm ()
 unset if operator is executed for non symmetric problem More...
 

Protected Member Functions

MoFEMErrorCode getTags ()
 
MoFEMErrorCode setTagsData (const EntityHandle tet, const int nb_gauss_pts, const int nb_internal_variables)
 
- Protected Member Functions inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
virtual MoFEMErrorCode setPtrFE (ForcesAndSourcesCore *ptr)
 

Protected Attributes

MoFEM::InterfacemField
 
boost::shared_ptr< CommonDatacommonDataPtr
 
boost::shared_ptr< ClosestPointProjectioncpPtr
 
bool calcLhs
 
Tag thPlasticStrain
 
Tag thInternalVariables
 
- Protected Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
ForcesAndSourcesCoreptrFE
 

Additional Inherited Members

- Public Types inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
enum  OpType {
  OPROW = 1 << 0, OPCOL = 1 << 1, OPROWCOL = 1 << 2, OPSPACE = 1 << 3,
  OPLAST = 1 << 3
}
 Controls loop over entities on element. More...
 
using AdjCache = std::map< EntityHandle, std::vector< boost::weak_ptr< NumeredEntFiniteElement > >>
 
- Public Types inherited from MoFEM::DataOperator
using DoWorkLhsHookFunType = boost::function< MoFEMErrorCode(DataOperator *op_ptr, int row_side, int col_side, EntityType row_type, EntityType col_type, EntitiesFieldData::EntData &row_data, EntitiesFieldData::EntData &col_data)>
 
using DoWorkRhsHookFunType = boost::function< MoFEMErrorCode(DataOperator *op_ptr, int side, EntityType type, EntitiesFieldData::EntData &data)>
 
- Public Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
char opType
 
std::string rowFieldName
 
std::string colFieldName
 
FieldSpace sPace
 
- Public Attributes inherited from MoFEM::DataOperator
DoWorkLhsHookFunType doWorkLhsHook
 
DoWorkRhsHookFunType doWorkRhsHook
 
bool sYmm
 If true assume that matrix is symmetric structure. More...
 
std::array< bool, MBMAXTYPE > doEntities
 If true operator is executed for entity. More...
 
booldoVertices
 \deprectaed If false skip vertices More...
 
booldoEdges
 \deprectaed If false skip edges More...
 
booldoQuads
 \deprectaed More...
 
booldoTris
 \deprectaed More...
 
booldoTets
 \deprectaed More...
 
booldoPrisms
 \deprectaed More...
 
- Static Public Attributes inherited from MoFEM::ForcesAndSourcesCore::UserDataOperator
static const char *const OpTypeNames []
 

Detailed Description

template<int DIM>
struct ADOLCPlasticity::OpCalculateStress< DIM >

Definition at line 235 of file ADOLCPlasticity.cpp.

Constructor & Destructor Documentation

◆ OpCalculateStress()

template<int DIM>
OpCalculateStress< DIM >::OpCalculateStress ( MoFEM::Interface m_field,
boost::shared_ptr< CommonData common_data_ptr,
boost::shared_ptr< ClosestPointProjection cp_ptr,
bool  calc_lhs 
)

Definition at line 261 of file ADOLCPlasticity.cpp.

266  mField(m_field), commonDataPtr(common_data_ptr), cpPtr(cp_ptr),
267  calcLhs(calc_lhs) {
268 
269  CHK_THROW_MESSAGE(getTags(), "get tags");
270 }

Member Function Documentation

◆ doWork()

template<int DIM>
MoFEMErrorCode OpCalculateStress< DIM >::doWork ( int  side,
EntityType  type,
DataForcesAndSourcesCore::EntData data 
)

Definition at line 337 of file ADOLCPlasticity.cpp.

338  {
340 
341  int nb_gauss_pts = getGaussPts().size2();
342 
343  int nb_internal_variables = cpPtr->nbInternalVariables;
344  auto tet = getNumeredEntFiniteElementPtr()->getEnt();
345  CHKERR setTagsData(tet, nb_gauss_pts, nb_internal_variables);
346 
347  commonDataPtr->activeVariablesW.resize(
348  nb_gauss_pts, 12 + cpPtr->nbInternalVariables, false);
349  commonDataPtr->gradientW.resize(nb_gauss_pts, 12 + cpPtr->nbInternalVariables,
350  false);
351  commonDataPtr->materialTangentOperator.resize(36, nb_gauss_pts, false);
352  commonDataPtr->deltaGamma.resize(nb_gauss_pts);
353 
360 
361  // Code use trail stress, until first solve of linear system of equations
362  int iter = 1;
363  if (getFEMethod()->snes_ctx != SnesMethod::CTX_SNESNONE) {
364  CHKERR SNESGetLinearSolveIterations(getFEMethod()->snes, &iter);
365  }
366 
367  // b-bar
368  double ave_tr_strain = calcAveStrain(
369  commonDataPtr->bBar, nb_gauss_pts,
370  getFTensor2FromMat<DIM, DIM>(commonDataPtr->gradAtGaussPts),
372 
373  auto t_voight_stress_op = voight_to_stress_op();
374  auto t_grad = getFTensor2FromMat<DIM, DIM>(commonDataPtr->gradAtGaussPts);
375 
376  auto t_Cep =
377  getFTensor4DdgFromMat<3, 3, 1>(commonDataPtr->materialTangentOperator);
378  for (auto gg = 0; gg != nb_gauss_pts; ++gg) {
379 
380  auto tmp_active =
381  getVectorAdaptor(&(commonDataPtr->activeVariablesW(gg, 0)),
382  12 + cpPtr->nbInternalVariables);
383  cpPtr->activeVariablesW.swap(tmp_active);
384  auto tmp_gradient = getVectorAdaptor(&(commonDataPtr->gradientW(gg, 0)),
385  12 + cpPtr->nbInternalVariables);
386  cpPtr->gradientW.swap(tmp_gradient);
387 
388  auto t_voigt_strain =
389  calcStrain(commonDataPtr->bBar, ave_tr_strain, t_grad,
390  getFTensor1FromPtr<6>(&(cpPtr->activeVariablesW[6])));
391  ++t_grad;
392 
393  // Copy plastic strains and internal variables from tags
394  auto copy_plastic_strain_and_internal_variables = [&]() {
396 
397  // Get data stored on Tags
398  VectorAdaptor plastic_strain_tags =
399  VectorAdaptor(6, ublas::shallow_array_adaptor<double>(
400  6, &commonDataPtr->plasticStrainPtr[gg * 6]));
401  VectorAdaptor internal_variables_tags = VectorAdaptor(
402  nb_internal_variables,
403  ublas::shallow_array_adaptor<double>(
404  nb_internal_variables,
406  ->internalVariablesPtr[gg * nb_internal_variables]));
407 
408  // Set values to closest point projection
409  cpPtr->plasticStrain0.resize(6, false);
410  noalias(cpPtr->plasticStrain0) = plastic_strain_tags;
411  cpPtr->internalVariables0.resize(nb_internal_variables, false);
412  noalias(cpPtr->internalVariables0) = internal_variables_tags;
413 
414  auto cp_plastic_strain = cpPtr->getPlasticStrain();
415  auto cp_internal_variables = cpPtr->getInternalVariables();
416  noalias(cp_plastic_strain) = plastic_strain_tags;
417  noalias(cp_internal_variables) = internal_variables_tags;
419  };
420 
421  CHKERR copy_plastic_strain_and_internal_variables();
422 
423  auto closest_point_projection = [&](auto &recalculate_elastic_tangent) {
427  CHKERR cpPtr->setParams(t, recalculate_elastic_tangent);
428  }
429  CHKERR cpPtr->playW_NoHessian();
430  CHKERR cpPtr->playY_NoGradient();
431  double y = cpPtr->y;
432  cpPtr->deltaGamma = 0; // zero lagrange multiplier
433  if (iter > 0 && y > std::numeric_limits<double>::epsilon()) {
434  CHKERR cpPtr->solveClosetProjection();
435  }
436  commonDataPtr->deltaGamma[gg] = cpPtr->deltaGamma;
438  };
439 
440  auto evaluate_consistent_tangent_matrix =
441  [&](auto &recalculate_elastic_tangent) {
443  if (recalculate_elastic_tangent)
444  CHKERR cpPtr->playW();
445 
446  if (iter > 0 &&
447  cpPtr->deltaGamma > std::numeric_limits<double>::epsilon()) {
448 
449  CHKERR cpPtr->consistentTangent();
450 
451  auto &m = cpPtr->Cep;
452  // for generic case of non-associated plasticity consistent tangent
453  // matrix is non-symmetric
454  auto t_voight_cep =
456  &m(0, 0), &m(0, 1), &m(0, 2), &m(0, 3), &m(0, 4), &m(0, 5),
457 
458  &m(1, 0), &m(1, 1), &m(1, 2), &m(1, 3), &m(1, 4), &m(1, 5),
459 
460  &m(2, 0), &m(2, 1), &m(2, 2), &m(2, 3), &m(2, 4), &m(2, 5),
461 
462  &m(3, 0), &m(3, 1), &m(3, 2), &m(3, 3), &m(3, 4), &m(3, 5),
463 
464  &m(4, 0), &m(4, 1), &m(4, 2), &m(4, 3), &m(4, 4), &m(4, 5),
465 
466  &m(5, 0), &m(5, 1), &m(5, 2), &m(5, 3), &m(5, 4), &m(5, 5)
467 
468  );
469 
470  t_Cep(i, j, k, l) =
471  t_voight_stress_op(i, j, Z) *
472  (t_voight_cep(Z, Y) * t_voight_stress_op(k, l, Y));
473 
474  } else {
475 
476  auto &m = cpPtr->C;
477  auto t_voight_cep =
479  &m(0, 0), &m(0, 1), &m(0, 2), &m(0, 3), &m(0, 4), &m(0, 5),
480 
481  &m(1, 1), &m(1, 2), &m(1, 3), &m(1, 4), &m(1, 5),
482 
483  &m(2, 2), &m(2, 3), &m(2, 4), &m(2, 5),
484 
485  &m(3, 3), &m(3, 4), &m(3, 5),
486 
487  &m(4, 4), &m(4, 5),
488 
489  &m(5, 5));
490 
491  t_Cep(i, j, k, l) =
492  t_voight_stress_op(i, j, Z) *
493  (t_voight_cep(Z, Y) * t_voight_stress_op(k, l, Y));
494  }
495 
496  ++t_Cep;
498  };
499 
500  // Always recalculate elastic tangent if first element
501  bool recalculate_elastic_tangent = (getNinTheLoop() == 0) ? true : false;
502  CHKERR closest_point_projection(recalculate_elastic_tangent);
503  if (calcLhs)
504  CHKERR evaluate_consistent_tangent_matrix(recalculate_elastic_tangent);
505  }
506 
507  auto calcs_stress_matrix = [&]() {
509  auto t_voight_stress_op = voight_to_stress_op();
510  commonDataPtr->stressMatrix.resize(6, commonDataPtr->gradientW.size1(),
511  false);
512  auto t_stess = getFTensor2SymmetricFromMat<3>(commonDataPtr->stressMatrix);
513  auto t_voight_stress = commonDataPtr->getFTensor1StressAtGaussPts();
514  for (auto gg = 0; gg != commonDataPtr->gradientW.size1(); ++gg) {
515  t_stess(i, j) = t_voight_stress_op(i, j, Z) * t_voight_stress(Z);
516  ++t_voight_stress;
517  ++t_stess;
518  }
520  };
521 
522  auto calcs_plastic_strain_matrix = [&]() {
524  auto t_voight_strain_op = voight_to_stress_op();
525  commonDataPtr->plasticStrainMatrix.resize(
526  6, commonDataPtr->activeVariablesW.size1(), false);
527  auto t_plastic_strain =
528  getFTensor2SymmetricFromMat<3>(commonDataPtr->plasticStrainMatrix);
529  auto t_voight_plastic_strain =
530  commonDataPtr->getFTensor1PlasticStrainAtGaussPts();
531  for (auto gg = 0; gg != commonDataPtr->activeVariablesW.size1(); ++gg) {
532  t_plastic_strain(i, j) =
533  t_voight_strain_op(i, j, Z) * t_voight_plastic_strain(Z);
534  ++t_voight_plastic_strain;
535  ++t_plastic_strain;
536  }
538  };
539 
540  CHKERR calcs_stress_matrix();
541  CHKERR calcs_plastic_strain_matrix();
542 
544 }

◆ getTags()

template<int DIM>
MoFEMErrorCode OpCalculateStress< DIM >::getTags
protected

Definition at line 272 of file ADOLCPlasticity.cpp.

272  {
274  int def_length = 0;
275  CHKERR mField.get_moab().tag_get_handle(
276  "PLASTIC_STRAIN", def_length, MB_TYPE_DOUBLE, thPlasticStrain,
277  MB_TAG_CREAT | MB_TAG_SPARSE | MB_TAG_VARLEN, NULL);
278  CHKERR mField.get_moab().tag_get_handle(
279  "INTERNAL_VARIABLES", def_length, MB_TYPE_DOUBLE, thInternalVariables,
280  MB_TAG_CREAT | MB_TAG_SPARSE | MB_TAG_VARLEN, NULL);
282 }

◆ setTagsData()

template<int DIM>
MoFEMErrorCode OpCalculateStress< DIM >::setTagsData ( const EntityHandle  tet,
const int  nb_gauss_pts,
const int  nb_internal_variables 
)
protected

Definition at line 286 of file ADOLCPlasticity.cpp.

288  {
290 
291  VectorDouble v;
292  {
293  rval = mField.get_moab().tag_get_by_ptr(
294  thPlasticStrain, &tet, 1,
295  (const void **)&commonDataPtr->plasticStrainPtr,
296  &commonDataPtr->plasticStrainSize);
297  if (rval != MB_SUCCESS ||
298  commonDataPtr->plasticStrainSize != 6 * nb_gauss_pts) {
299  v.resize(6 * nb_gauss_pts, false);
300  v.clear();
301  int tag_size[1];
302  tag_size[0] = v.size();
303  void const *tag_data[] = {&v[0]};
304  CHKERR mField.get_moab().tag_set_by_ptr(thPlasticStrain, &tet, 1,
305  tag_data, tag_size);
306  CHKERR mField.get_moab().tag_get_by_ptr(
307  thPlasticStrain, &tet, 1,
308  (const void **)&commonDataPtr->plasticStrainPtr,
309  &commonDataPtr->plasticStrainSize);
310  }
311  }
312  if (nb_internal_variables > 0) {
313  rval = mField.get_moab().tag_get_by_ptr(
314  thInternalVariables, &tet, 1,
315  (const void **)&commonDataPtr->internalVariablesPtr,
316  &commonDataPtr->internalVariablesSize);
317  if (rval != MB_SUCCESS || commonDataPtr->internalVariablesSize !=
318  nb_internal_variables * nb_gauss_pts) {
319  v.resize(nb_internal_variables * nb_gauss_pts, false);
320  v.clear();
321  int tag_size[1];
322  tag_size[0] = v.size();
323  void const *tag_data[] = {&v[0]};
324  CHKERR mField.get_moab().tag_set_by_ptr(thInternalVariables, &tet, 1,
325  tag_data, tag_size);
326  CHKERR mField.get_moab().tag_get_by_ptr(
327  thInternalVariables, &tet, 1,
328  (const void **)&commonDataPtr->internalVariablesPtr,
329  &commonDataPtr->internalVariablesSize);
330  }
331  }
333 }

Member Data Documentation

◆ calcLhs

template<int DIM>
bool ADOLCPlasticity::OpCalculateStress< DIM >::calcLhs
protected

Definition at line 249 of file ADOLCPlasticity.cpp.

◆ commonDataPtr

template<int DIM>
boost::shared_ptr<CommonData> ADOLCPlasticity::OpCalculateStress< DIM >::commonDataPtr
protected

Definition at line 247 of file ADOLCPlasticity.cpp.

◆ cpPtr

template<int DIM>
boost::shared_ptr<ClosestPointProjection> ADOLCPlasticity::OpCalculateStress< DIM >::cpPtr
protected

Definition at line 248 of file ADOLCPlasticity.cpp.

◆ mField

template<int DIM>
MoFEM::Interface& ADOLCPlasticity::OpCalculateStress< DIM >::mField
protected

Definition at line 246 of file ADOLCPlasticity.cpp.

◆ thInternalVariables

template<int DIM>
Tag ADOLCPlasticity::OpCalculateStress< DIM >::thInternalVariables
protected

Definition at line 252 of file ADOLCPlasticity.cpp.

◆ thPlasticStrain

template<int DIM>
Tag ADOLCPlasticity::OpCalculateStress< DIM >::thPlasticStrain
protected

Definition at line 251 of file ADOLCPlasticity.cpp.


The documentation for this struct was generated from the following file:
NOSPACE
@ NOSPACE
Definition: definitions.h:83
MoFEM::ForcesAndSourcesCore::UserDataOperator::OPSPACE
@ OPSPACE
operator do Work is execute on space data
Definition: ForcesAndSourcesCore.hpp:570
CHK_THROW_MESSAGE
#define CHK_THROW_MESSAGE(err, msg)
Check and throw MoFEM exception.
Definition: definitions.h:596
ADOLCPlasticity::OpCalculateStress::setTagsData
MoFEMErrorCode setTagsData(const EntityHandle tet, const int nb_gauss_pts, const int nb_internal_variables)
Definition: ADOLCPlasticity.cpp:286
FTensor::Tensor2_symmetric
Definition: Tensor2_symmetric_value.hpp:13
ADOLCPlasticity::OpCalculateStress::mField
MoFEM::Interface & mField
Definition: ADOLCPlasticity.cpp:246
FTensor::Tensor2
Definition: Tensor2_value.hpp:16
MoFEM::ForcesAndSourcesCore::UserDataOperator::getFTensor0IntegrationWeight
auto getFTensor0IntegrationWeight()
Get integration weights.
Definition: ForcesAndSourcesCore.hpp:1239
MoFEM::ForcesAndSourcesCore::UserDataOperator::getGaussPts
MatrixDouble & getGaussPts()
matrix of integration (Gauss) points for Volume Element
Definition: ForcesAndSourcesCore.hpp:1235
ADOLCPlasticity::calcAveStrain
double calcAveStrain(bool b_bar, const int nb_gauss_pts, FTensor::Tensor2< T1, DIM1, DIM2 > &&t_grad, FTensor::Tensor0< T2 > &&t_w)
Definition: ADOLCPlasticity.cpp:18
MoFEM::Exceptions::rval
static MoFEMErrorCodeGeneric< moab::ErrorCode > rval
Definition: Exceptions.hpp:74
ADOLCPlasticity::OpCalculateStress::thInternalVariables
Tag thInternalVariables
Definition: ADOLCPlasticity.cpp:252
CHKERR
#define CHKERR
Inline error check.
Definition: definitions.h:535
ADOLCPlasticity::ClosestPointProjection::H
@ H
Definition: ADOLCPlasticity.hpp:168
MoFEM::CoreInterface::get_moab
virtual moab::Interface & get_moab()=0
MoFEM::getVectorAdaptor
auto getVectorAdaptor(T1 ptr, const size_t n)
Get Vector adaptor.
Definition: Templates.hpp:31
ADOLCPlasticity::OpCalculateStress::commonDataPtr
boost::shared_ptr< CommonData > commonDataPtr
Definition: ADOLCPlasticity.cpp:247
ADOLCPlasticity::OpCalculateStress::calcLhs
bool calcLhs
Definition: ADOLCPlasticity.cpp:249
MoFEM::ForcesAndSourcesCore::UserDataOperator::getNinTheLoop
int getNinTheLoop() const
get number of finite element in the loop
Definition: ForcesAndSourcesCore.hpp:1055
ADOLCPlasticity::OpCalculateStress::getTags
MoFEMErrorCode getTags()
Definition: ADOLCPlasticity.cpp:272
MoFEM::ForcesAndSourcesCore::UserDataOperator::getNumeredEntFiniteElementPtr
boost::shared_ptr< const NumeredEntFiniteElement > getNumeredEntFiniteElementPtr() const
Return raw pointer to NumeredEntFiniteElement.
Definition: ForcesAndSourcesCore.hpp:999
t
constexpr double t
plate stiffness
Definition: plate.cpp:59
MoFEM::Types::VectorAdaptor
VectorShallowArrayAdaptor< double > VectorAdaptor
Definition: Types.hpp:115
i
FTensor::Index< 'i', SPACE_DIM > i
Definition: hcurl_divergence_operator_2d.cpp:27
FTensor::Index< 'i', 3 >
MoFEM::ForcesAndSourcesCore::UserDataOperator::getFEMethod
const FEMethod * getFEMethod() const
Return raw pointer to Finite Element Method object.
Definition: ForcesAndSourcesCore.hpp:1041
ADOLCPlasticity::OpCalculateStress::cpPtr
boost::shared_ptr< ClosestPointProjection > cpPtr
Definition: ADOLCPlasticity.cpp:248
v
const double v
phase velocity of light in medium (cm/ns)
Definition: initial_diffusion.cpp:40
UserDataOperator
ForcesAndSourcesCore::UserDataOperator UserDataOperator
Definition: HookeElement.hpp:75
j
FTensor::Index< 'j', 3 > j
Definition: matrix_function.cpp:19
ADOLCPlasticity::voight_to_stress_op
FTensor::Dg< double, 3, 6 > voight_to_stress_op()
Op convert Vight stress vector to stress tensor.
Definition: ADOLCPlasticity.hpp:49
ADOLCPlasticity::calcStrain
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)
Definition: ADOLCPlasticity.cpp:43
MoFEM::Types::VectorDouble
UBlasVector< double > VectorDouble
Definition: Types.hpp:68
m
FTensor::Index< 'm', 3 > m
Definition: shallow_wave.cpp:80
k
FTensor::Index< 'k', 3 > k
Definition: matrix_function.cpp:20
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
ADOLCPlasticity::OpCalculateStress::thPlasticStrain
Tag thPlasticStrain
Definition: ADOLCPlasticity.cpp:251
ADOLCPlasticity::ClosestPointProjection::Y
@ Y
Definition: ADOLCPlasticity.hpp:168
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
l
FTensor::Index< 'l', 3 > l
Definition: matrix_function.cpp:21
ADOLCPlasticity::ClosestPointProjection::W
@ W
Definition: ADOLCPlasticity.hpp:168