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 515 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 749 of file HODataOperators.cpp.

754  {
756 
757  if (!jac_ptr)
758  jac_ptr = boost::make_shared<MatrixDouble>();
759  if (!det_ptr)
760  det_ptr = boost::make_shared<VectorDouble>();
761  if (!inv_jac_ptr)
762  inv_jac_ptr = boost::make_shared<MatrixDouble>();
763 
764  if (geom_field_name.empty()) {
765 
766  } else {
767 
768  pipeline.push_back(new OpCalculateHOCoords<3>(geom_field_name));
769  pipeline.push_back(new OpGetHONormalsOnFace<3>(geom_field_name));
770  }
771 
772  pipeline.push_back(new OpCalculateHOJacForFaceEmbeddedIn3DSpace(jac_ptr));
773  pipeline.push_back(new OpInvertMatrix<3>(jac_ptr, det_ptr, inv_jac_ptr));
774  pipeline.push_back(new OpSetHOWeightsOnFace());
775 
776  for (auto s : spaces) {
777  switch (s) {
778  case NOSPACE:
779  break;
780  case H1:
781  pipeline.push_back(
782  new OpSetInvJacH1ForFaceEmbeddedIn3DSpace(inv_jac_ptr));
783  break;
784  case HDIV:
785  pipeline.push_back(new OpMakeHdivFromHcurl());
786  pipeline.push_back(
788  jac_ptr));
789  pipeline.push_back(
790  new OpSetInvJacHcurlFaceEmbeddedIn3DSpace(inv_jac_ptr));
791  break;
792  case L2:
793  pipeline.push_back(
794  new OpSetInvJacL2ForFaceEmbeddedIn3DSpace(inv_jac_ptr));
795  break;
796  default:
797  SETERRQ1(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
798  "Space %s not yet implemented", FieldSpaceNames[s]);
799  }
800  }
801 
803 }

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:3082
FieldSpaceNames
const static char *const FieldSpaceNames[]
Definition: definitions.h:92
MoFEM::OpSetInvJacHcurlFaceEmbeddedIn3DSpace
OpSetInvJacHcurlFaceImpl< 3 > OpSetInvJacHcurlFaceEmbeddedIn3DSpace
Definition: UserDataOperators.hpp:2983
MoFEMFunctionReturn
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416
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:346