v0.13.2
Loading...
Searching...
No Matches
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 510 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 794 of file HODataOperators.cpp.

798 {
800
801 if (!jac)
802 jac = boost::make_shared<MatrixDouble>();
803 if (!det)
804 det = boost::make_shared<VectorDouble>();
805 if (!inv_jac)
806 inv_jac = boost::make_shared<MatrixDouble>();
807
808 if (geom_field_name.empty()) {
809
810 pipeline.push_back(new OpCalculateHOJac<3>(jac));
811
812 } else {
813
814 pipeline.push_back(new OpCalculateHOCoords<3>(geom_field_name));
815 pipeline.push_back(
816 new OpCalculateVectorFieldGradient<3, 3>(geom_field_name, jac));
817 }
818
819 pipeline.push_back(new OpInvertMatrix<3>(jac, det, inv_jac));
820 pipeline.push_back(new OpSetHOWeights(det));
821
822 for (auto s : spaces) {
823 switch (s) {
824 case NOSPACE:
825 break;
826 case H1:
827 pipeline.push_back(new OpSetHOInvJacToScalarBases<3>(H1, inv_jac));
828 break;
829 case HCURL:
830 pipeline.push_back(new OpSetHOCovariantPiolaTransform(HCURL, inv_jac));
831 pipeline.push_back(new OpSetHOInvJacVectorBase(HCURL, inv_jac));
832 break;
833 case HDIV:
834 pipeline.push_back(
835 new OpSetHOContravariantPiolaTransform(HDIV, det, jac));
836 pipeline.push_back(new OpSetHOInvJacVectorBase(HDIV, inv_jac));
837 break;
838 case L2:
839 pipeline.push_back(new OpSetHOInvJacToScalarBases<3>(L2, inv_jac));
840 break;
841 default:
842 SETERRQ1(PETSC_COMM_SELF, MOFEM_NOT_IMPLEMENTED,
843 "Space %s not yet implemented", FieldSpaceNames[s]);
844 break;
845 }
846 }
847
849}
@ L2
field with C-1 continuity
Definition: definitions.h:88
@ H1
continuous field
Definition: definitions.h:85
@ NOSPACE
Definition: definitions.h:83
@ HCURL
field with continuous tangents
Definition: definitions.h:86
@ HDIV
field with continuous normal traction
Definition: definitions.h:87
static const char *const FieldSpaceNames[]
Definition: definitions.h:92
#define MoFEMFunctionBegin
First executable line of each MoFEM function, used for error handling. Final line of MoFEM functions ...
Definition: definitions.h:346
@ MOFEM_NOT_IMPLEMENTED
Definition: definitions.h:32
#define MoFEMFunctionReturn(a)
Last executable line of each PETSc function used for error handling. Replaces return()
Definition: definitions.h:416

The documentation for this struct was generated from the following files: