v0.14.0
Public Member Functions | Static Public Member Functions | List of all members
MoFEM::AddHOOps< 3, 3, 3 > Struct Reference

#include <src/finite_elements/HODataOperators.hpp>

Public Member Functions

 AddHOOps ()=delete
 

Static Public Member Functions

static MoFEMErrorCode add (boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &pipeline, std::vector< FieldSpace > space, std::string geom_field_name="", boost::shared_ptr< MatrixDouble > jac=nullptr, boost::shared_ptr< VectorDouble > det=nullptr, boost::shared_ptr< MatrixDouble > inv_jac=nullptr)
 

Detailed Description

Definition at line 457 of file HODataOperators.hpp.

Constructor & Destructor Documentation

◆ AddHOOps()

MoFEM::AddHOOps< 3, 3, 3 >::AddHOOps ( )
delete

Member Function Documentation

◆ add()

MoFEMErrorCode MoFEM::AddHOOps< 3, 3, 3 >::add ( boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &  pipeline,
std::vector< FieldSpace space,
std::string  geom_field_name = "",
boost::shared_ptr< MatrixDouble jac = nullptr,
boost::shared_ptr< VectorDouble det = nullptr,
boost::shared_ptr< MatrixDouble inv_jac = nullptr 
)
static

Definition at line 1006 of file HODataOperators.cpp.

1010  {
1012 
1013  if (!jac)
1014  jac = boost::make_shared<MatrixDouble>();
1015  if (!det)
1016  det = boost::make_shared<VectorDouble>();
1017  if (!inv_jac)
1018  inv_jac = boost::make_shared<MatrixDouble>();
1019 
1020  if (geom_field_name.empty()) {
1021 
1022  pipeline.push_back(new OpCalculateHOJac<3>(jac));
1023 
1024  } else {
1025 
1026  pipeline.push_back(new OpCalculateHOCoords<3>(geom_field_name));
1027  pipeline.push_back(
1028  new OpCalculateVectorFieldGradient<3, 3>(geom_field_name, jac));
1029  }
1030 
1031  pipeline.push_back(new OpInvertMatrix<3>(jac, det, inv_jac));
1032  pipeline.push_back(new OpSetHOWeights(det));
1033 
1034  for (auto s : spaces) {
1035  switch (s) {
1036  case NOSPACE:
1037  break;
1038  case H1:
1039  pipeline.push_back(new OpSetHOInvJacToScalarBases<3>(H1, inv_jac));
1040  break;
1041  case HCURL:
1042  pipeline.push_back(new OpSetHOCovariantPiolaTransform(HCURL, inv_jac));
1043  pipeline.push_back(new OpSetHOInvJacVectorBase(HCURL, inv_jac));
1044  break;
1045  case HDIV:
1046  pipeline.push_back(
1047  new OpSetHOContravariantPiolaTransform(HDIV, det, jac));
1048  pipeline.push_back(new OpSetHOInvJacVectorBase(HDIV, inv_jac));
1049  break;
1050  case L2:
1051  pipeline.push_back(new OpSetHOInvJacToScalarBases<3>(L2, inv_jac));
1052  break;
1053  default:
1054  SETERRQ1(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
1055  "Space %s not yet implemented", FieldSpaceNames[s]);
1056  break;
1057  }
1058  }
1059 
1061 }

The documentation for this struct was generated from the following files:
NOSPACE
@ NOSPACE
Definition: definitions.h:83
H1
@ H1
continuous field
Definition: definitions.h:85
L2
@ L2
field with C-1 continuity
Definition: definitions.h:88
FieldSpaceNames
const static char *const FieldSpaceNames[]
Definition: definitions.h:92
HCURL
@ HCURL
field with continuous tangents
Definition: definitions.h:86
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:429
HDIV
@ HDIV
field with continuous normal traction
Definition: definitions.h:87
MOFEM_NOT_IMPLEMENTED
@ MOFEM_NOT_IMPLEMENTED
Definition: definitions.h:32
OpCalculateVectorFieldGradient
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359