v0.14.0
Public Member Functions | Static Public Member Functions | List of all members
MoFEM::AddHOOps< 2, 2, 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 > spaces, 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 425 of file HODataOperators.hpp.

Constructor & Destructor Documentation

◆ AddHOOps()

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

Member Function Documentation

◆ add()

MoFEMErrorCode MoFEM::AddHOOps< 2, 2, 3 >::add ( boost::ptr_deque< ForcesAndSourcesCore::UserDataOperator > &  pipeline,
std::vector< FieldSpace spaces,
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 851 of file HODataOperators.cpp.

856  {
858 
859  if (!jac_ptr)
860  jac_ptr = boost::make_shared<MatrixDouble>();
861  if (!det_ptr)
862  det_ptr = boost::make_shared<VectorDouble>();
863  if (!inv_jac_ptr)
864  inv_jac_ptr = boost::make_shared<MatrixDouble>();
865 
866  if (geom_field_name.empty()) {
867 
868  } else {
869 
870  pipeline.push_back(new OpCalculateHOCoords<3>(geom_field_name));
871  pipeline.push_back(new OpGetHONormalsOnFace<3>(geom_field_name));
872  }
873 
874  pipeline.push_back(new OpCalculateHOJacForFaceEmbeddedIn3DSpace(jac_ptr));
875  pipeline.push_back(new OpInvertMatrix<3>(jac_ptr, det_ptr, inv_jac_ptr));
876  pipeline.push_back(new OpSetHOWeightsOnFace());
877 
878  for (auto s : spaces) {
879  switch (s) {
880  case NOSPACE:
881  break;
882  case H1:
883  pipeline.push_back(
884  new OpSetInvJacH1ForFaceEmbeddedIn3DSpace(inv_jac_ptr));
885  break;
886  case HDIV:
887  pipeline.push_back(new OpMakeHdivFromHcurl());
888  pipeline.push_back(
890  jac_ptr));
891  pipeline.push_back(
892  new OpSetInvJacHcurlFaceEmbeddedIn3DSpace(inv_jac_ptr));
893  break;
894  case L2:
895  pipeline.push_back(
896  new OpSetInvJacL2ForFaceEmbeddedIn3DSpace(inv_jac_ptr));
897  break;
898  default:
899  SETERRQ1(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
900  "Space %s not yet implemented", FieldSpaceNames[s]);
901  }
902  }
903 
905 }

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
MoFEM::OpCalculateHOJacForFaceEmbeddedIn3DSpace
OpCalculateHOJacForFaceImpl< 3 > OpCalculateHOJacForFaceEmbeddedIn3DSpace
Definition: HODataOperators.hpp:265
L2
@ L2
field with C-1 continuity
Definition: definitions.h:88
MoFEM::OpSetContravariantPiolaTransformOnFace2DEmbeddedIn3DSpace
OpSetContravariantPiolaTransformOnFace2DImpl< 3 > OpSetContravariantPiolaTransformOnFace2DEmbeddedIn3DSpace
Definition: UserDataOperators.hpp:3078
FieldSpaceNames
const static char *const FieldSpaceNames[]
Definition: definitions.h:92
MoFEM::OpSetInvJacHcurlFaceEmbeddedIn3DSpace
OpSetInvJacHcurlFaceImpl< 3 > OpSetInvJacHcurlFaceEmbeddedIn3DSpace
Definition: UserDataOperators.hpp:2979
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
MoFEMFunctionBegin
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:359