27 static int setTagName(std::string name,
int tag = -1);
37struct MatOpsData :
public boost::enable_shared_from_this<MatOpsData> {
54 virtual std::pair<bool, MatrixPtr>
59 virtual std::pair<bool, MatrixPtr>
64 virtual std::pair<bool, MatrixPtr>
69 virtual std::pair<bool, MatrixPtr>
80 EntityHandle ent,
int gg) = 0;
84 const std::string &tag_name,
85 int num_components) = 0;
93 std::vector<double> &dependent_variables_derivatives) = 0;
98 const std::vector<double> &dependent_variables) = 0;
100 const std::vector<double> &dependent_variables_derivatives) = 0;
111 int tag, EntityHandle entity,
int gg);
114 int tag, EntityHandle entity,
int gg);
127 boost::shared_ptr<MatOpsData> mat_ops_data_ptr,
int tag,
128 boost::shared_ptr<std::map<int, Range>> tag_vs_range_ptr =
nullptr)
139 int block_id,
const Range &block_entities,
140 const std::vector<double> &block_data) {
149 createOp(boost::shared_ptr<PhysicalEquations> physical_ptr,
bool eval_stress,
150 bool eval_tangent,
bool update) = 0;
153 boost::shared_ptr<MatOpsData>,
int, EntityHandle,
int)>;
185 boost::weak_ptr<MatOpsData>,
203template <
class MODEL,
int MODEL_TYPE>
204boost::shared_ptr<PhysicalEquations>
std::map< std::string, std::string > DataDictionary
std::vector< StateTag > StateTags
boost::shared_ptr< PhysicalEquations > createMatOpsPhysicalEquationsPtr(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag)
boost::shared_ptr< MatOpsData > createMatOpsDataPtr()
PetscErrorCode MoFEMErrorCode
MoFEM/PETSc error code.
UBlasMatrix< double > MatrixDouble
static MoFEMErrorCode evaluateVariable(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag, EntityHandle entity, int gg)
static std::vector< double > dependentVariablesDerivatives
static std::vector< double > dependentVariables
static MoFEMErrorCode evaluateDerivatives(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag, EntityHandle entity, int gg)
static std::vector< double > activeVariables
static std::vector< double * > jacPtrVec
Base for user-defined material data, supporting dynamic_pointer_cast.
virtual ~UserData()=default
virtual boost::shared_ptr< UserData > getUserDataPtr() const =0
Get the optional user-defined material data.
virtual MoFEMErrorCode setActiveContinuousVector(std::vector< double > &active_variables)=0
virtual MoFEMErrorCode getDependentDerivativesContinuousVector(const std::vector< double > &dependent_variables_derivatives)=0
virtual MoFEMErrorCode setDependentDerivativesContinuousVector(std::vector< double > &dependent_variables_derivatives)=0
virtual MatrixPtr getActiveDataPtr(const std::string &name)=0
virtual std::pair< bool, MatrixPtr > insertDependentData(const std::string &name, const MatrixDouble &data=MatrixDouble(), int shift=0)=0
virtual MoFEMErrorCode setupStateData()=0
virtual std::pair< bool, MatrixPtr > insertActiveData(const std::string &name, const MatrixDouble &data=MatrixDouble(), int shift=0)=0
boost::shared_ptr< MatrixAdaptor > StateMatrixPtr
virtual MoFEMErrorCode bindStateTag(MoFEM::Interface &m_field, const std::string &tag_name, int num_components)=0
virtual ~MatOpsData()=default
virtual MoFEMErrorCode getActiveContinuousVector(const std::vector< double > &active_variables)=0
virtual std::pair< bool, MatrixPtr > insertCommonData(const std::string &name, const MatrixDouble &data=MatrixDouble(), int shift=0)=0
boost::shared_ptr< MatrixDouble > MatrixPtr
virtual MatrixPtr getCommonDataPtr(const std::string &name)=0
virtual StateTags getStateTags() const =0
virtual StateMatrixPtr getStateDataPtr(const std::string &name, EntityHandle ent, int gg)=0
Start each integration-point sweep at gg == 0 to refresh cached tag storage.
virtual MatrixPtr getDependentDataPtr(const std::string &name)=0
virtual MoFEMErrorCode setDependentContinuousVector(std::vector< double > &dependent_variables)=0
virtual MatrixPtr getDependentDerivativesDataPtr(const std::string &name)=0
virtual std::pair< bool, MatrixPtr > insertDependentDerivativesData(const std::string &name, const MatrixDouble &data=MatrixDouble(), int shift=0)=0
virtual MoFEMErrorCode getDependentContinuousVector(const std::vector< double > &dependent_variables)=0
virtual void setUserDataPtr(boost::shared_ptr< UserData > user_data_ptr)=0
Set data owned by this container; back-references should be weak.
OpMaterialFactory()=delete
PhysicalEquations(boost::shared_ptr< MatOpsData > mat_ops_data_ptr, int tag, boost::shared_ptr< std::map< int, Range > > tag_vs_range_ptr=nullptr)
virtual MoFEMErrorCode recordTape()=0
virtual ~PhysicalEquations()=default
virtual MoFEMErrorCode setParams(FEMethod *fe_ptr, int gg)=0
virtual MoFEMErrorCode addBlockParameters(MoFEM::Interface &m_field, const std::string &block_name, int block_id, const Range &block_entities, const std::vector< double > &block_data)
std::vector< std::pair< Range, std::vector< double > > > paramVecByRange
boost::shared_ptr< std::map< int, Range > > tagVsRangePtr
boost::shared_ptr< MatOpsData > matOpsDataPtr
virtual MoFEMErrorCode evaluateVariable(int tag, EntityHandle entity, int gg)
virtual MoFEMErrorCode evaluateDerivatives(int tag, EntityHandle entity, int gg)
virtual ForcesAndSourcesCore::UserDataOperator * createOp(boost::shared_ptr< PhysicalEquations > physical_ptr, bool eval_stress, bool eval_tangent, bool update)=0
HookFunction hookUpdateState
HookFunction hookEvaluateVariable
PhysicalEquations()=delete
HookFunction hookEvaluateDerivatives
virtual MoFEMErrorCode getOptions(MoFEM::Interface *m_field_ptr=nullptr)=0
std::function< MoFEMErrorCode(boost::shared_ptr< MatOpsData >, int, EntityHandle, int)> HookFunction
virtual MoFEMErrorCode updateState(int tag, EntityHandle entity, int gg)
Deprecated interface functions.
Structure for user loop methods on finite elements.