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

Constructor & Destructor Documentation

◆ AddHOOps()

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

Member Function Documentation

◆ add()

MoFEMErrorCode MoFEM::AddHOOps< 2, 2, 2 >::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 795 of file HODataOperators.cpp.

800  {
802 
803  if (!jac_ptr)
804  jac_ptr = boost::make_shared<MatrixDouble>();
805  if (!det_ptr)
806  det_ptr = boost::make_shared<VectorDouble>();
807  if (!inv_jac_ptr)
808  inv_jac_ptr = boost::make_shared<MatrixDouble>();
809 
810  if (geom_field_name.empty()) {
811 
812  pipeline.push_back(new OpCalculateHOJac<2>(jac_ptr));
813 
814  } else {
815 
816  pipeline.push_back(new OpCalculateHOCoords<2>(geom_field_name));
817  pipeline.push_back(
818  new OpCalculateVectorFieldGradient<2, 2>(geom_field_name, jac_ptr));
819  pipeline.push_back(new OpGetHONormalsOnFace<2>(geom_field_name));
820  }
821 
822  pipeline.push_back(new OpInvertMatrix<2>(jac_ptr, det_ptr, inv_jac_ptr));
823  pipeline.push_back(new OpSetHOWeightsOnFace());
824 
825  for (auto s : spaces) {
826  switch (s) {
827  case NOSPACE:
828  break;
829  case H1:
830  case L2:
831  pipeline.push_back(new OpSetHOInvJacToScalarBases<2>(s, inv_jac_ptr));
832  break;
833  case HCURL:
834  pipeline.push_back(new OpSetCovariantPiolaTransformOnFace2D(inv_jac_ptr));
835  pipeline.push_back(new OpSetInvJacHcurlFace(inv_jac_ptr));
836  break;
837  case HDIV:
838  pipeline.push_back(new OpMakeHdivFromHcurl());
839  pipeline.push_back(new OpSetContravariantPiolaTransformOnFace2D(jac_ptr));
840  pipeline.push_back(new OpSetInvJacHcurlFace(inv_jac_ptr));
841  break;
842  default:
843  SETERRQ1(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
844  "Space %s not yet implemented", FieldSpaceNames[s]);
845  }
846  }
847 
849 }

The documentation for this struct was generated from the following files:
NOSPACE
@ NOSPACE
Definition: definitions.h:83
MoFEM::OpSetInvJacHcurlFace
OpSetInvJacHcurlFaceImpl< 2 > OpSetInvJacHcurlFace
Definition: UserDataOperators.hpp:2978
H1
@ H1
continuous field
Definition: definitions.h:85
MoFEM::OpSetContravariantPiolaTransformOnFace2D
OpSetContravariantPiolaTransformOnFace2DImpl< 2 > OpSetContravariantPiolaTransformOnFace2D
Definition: UserDataOperators.hpp:3076
L2
@ L2
field with C-1 continuity
Definition: definitions.h:88
MoFEM::OpSetCovariantPiolaTransformOnFace2D
OpSetCovariantPiolaTransformOnFace2DImpl< 2 > OpSetCovariantPiolaTransformOnFace2D
Definition: UserDataOperators.hpp:3028
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