v0.16.3
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
MatOps::MatOpsData Struct Referenceabstract

#include "src/materials/MatOps.hpp"

Inheritance diagram for MatOps::MatOpsData:
[legend]
Collaboration diagram for MatOps::MatOpsData:
[legend]

Classes

struct  UserData
 Base for user-defined material data, supporting dynamic_pointer_cast. More...
 

Public Types

using MatrixPtr = boost::shared_ptr< MatrixDouble >
 
using StateMatrixPtr = boost::shared_ptr< MatrixAdaptor >
 

Public Member Functions

virtual ~MatOpsData ()=default
 
virtual boost::shared_ptr< UserData > getUserDataPtr () const =0
 Get the optional user-defined material data.
 
virtual void setUserDataPtr (boost::shared_ptr< UserData > user_data_ptr)=0
 Set data owned by this container; back-references should be weak.
 
virtual std::pair< bool, MatrixPtr > insertCommonData (const std::string &name, const MatrixDouble &data=MatrixDouble(), int shift=0)=0
 Shared evaluation data, such as field values at quadrature points.
 
virtual std::pair< bool, MatrixPtr > insertActiveData (const std::string &name, const MatrixDouble &data=MatrixDouble(), int shift=0)=0
 Independent constitutive variables, such as the deformation gradient.
 
virtual std::pair< bool, MatrixPtr > insertDependentData (const std::string &name, const MatrixDouble &data=MatrixDouble(), int shift=0)=0
 Constitutive responses, such as stress, depending on the active variables.
 
virtual std::pair< bool, MatrixPtr > insertDependentDerivativesData (const std::string &name, const MatrixDouble &data=MatrixDouble(), int shift=0)=0
 Derivatives of the dependent responses with respect to active variables.
 
virtual MatrixPtr getCommonDataPtr (const std::string &name)=0
 Access shared evaluation storage by name.
 
virtual MatrixPtr getActiveDataPtr (const std::string &name)=0
 Access independent-variable storage by name.
 
virtual MatrixPtr getDependentDataPtr (const std::string &name)=0
 Access constitutive-response storage by name.
 
virtual MatrixPtr getDependentDerivativesDataPtr (const std::string &name)=0
 Access response-derivative storage by name.
 
virtual StateMatrixPtr getStateDataPtr (const std::string &name, EntityHandle ent, int gg)=0
 
virtual StateTags getStateTags () const =0
 Bound state-tag descriptors, not copies of the stored values.
 
virtual MoFEMErrorCode bindStateTag (MoFEM::Interface &m_field, const std::string &tag_name, int num_components)=0
 Register a state name and its number of components per integration point.
 
virtual MoFEMErrorCode setupStateData ()=0
 Find or create the registered MOAB state tags, preserving existing values.
 
virtual MoFEMErrorCode setActiveContinuousVector (std::vector< double > &active_variables)=0
 Pack active matrices into a contiguous vector in registration order.
 
virtual MoFEMErrorCode setDependentContinuousVector (std::vector< double > &dependent_variables)=0
 Pack response matrices into a contiguous vector in registration order.
 
virtual MoFEMErrorCode setDependentDerivativesContinuousVector (std::vector< double > &dependent_variables_derivatives)=0
 Pack response derivatives into a contiguous vector in registration order.
 
virtual MoFEMErrorCode getActiveContinuousVector (const std::vector< double > &active_variables)=0
 Unpack a contiguous vector into the registered active matrices.
 
virtual MoFEMErrorCode getDependentContinuousVector (const std::vector< double > &dependent_variables)=0
 Unpack a contiguous vector into the registered response matrices.
 
virtual MoFEMErrorCode getDependentDerivativesContinuousVector (const std::vector< double > &dependent_variables_derivatives)=0
 Unpack a contiguous vector into the registered response derivatives.
 

Detailed Description

Named constitutive inputs, outputs and tag-backed integration-point state. State tags expose their current contents; callers manage physical time levels, acceptance and rollback. Insert methods report whether a name was added; existing entries are not overwritten.

Definition at line 42 of file MatOps.hpp.

Member Typedef Documentation

◆ MatrixPtr

using MatOps::MatOpsData::MatrixPtr = boost::shared_ptr<MatrixDouble>
Examples
mofem/src/materials/MatOps.hpp.

Definition at line 45 of file MatOps.hpp.

◆ StateMatrixPtr

Examples
mofem/src/materials/MatOps.hpp.

Definition at line 46 of file MatOps.hpp.

Constructor & Destructor Documentation

◆ ~MatOpsData()

virtual MatOps::MatOpsData::~MatOpsData ( )
virtualdefault

Member Function Documentation

◆ bindStateTag()

virtual MoFEMErrorCode MatOps::MatOpsData::bindStateTag ( MoFEM::Interface &  m_field,
const std::string &  tag_name,
int  num_components 
)
pure virtual

Register a state name and its number of components per integration point.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getActiveContinuousVector()

virtual MoFEMErrorCode MatOps::MatOpsData::getActiveContinuousVector ( const std::vector< double > &  active_variables)
pure virtual

Unpack a contiguous vector into the registered active matrices.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getActiveDataPtr()

virtual MatrixPtr MatOps::MatOpsData::getActiveDataPtr ( const std::string &  name)
pure virtual

Access independent-variable storage by name.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getCommonDataPtr()

virtual MatrixPtr MatOps::MatOpsData::getCommonDataPtr ( const std::string &  name)
pure virtual

Access shared evaluation storage by name.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getDependentContinuousVector()

virtual MoFEMErrorCode MatOps::MatOpsData::getDependentContinuousVector ( const std::vector< double > &  dependent_variables)
pure virtual

Unpack a contiguous vector into the registered response matrices.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getDependentDataPtr()

virtual MatrixPtr MatOps::MatOpsData::getDependentDataPtr ( const std::string &  name)
pure virtual

Access constitutive-response storage by name.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getDependentDerivativesContinuousVector()

virtual MoFEMErrorCode MatOps::MatOpsData::getDependentDerivativesContinuousVector ( const std::vector< double > &  dependent_variables_derivatives)
pure virtual

Unpack a contiguous vector into the registered response derivatives.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getDependentDerivativesDataPtr()

virtual MatrixPtr MatOps::MatOpsData::getDependentDerivativesDataPtr ( const std::string &  name)
pure virtual

Access response-derivative storage by name.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getStateDataPtr()

virtual StateMatrixPtr MatOps::MatOpsData::getStateDataPtr ( const std::string &  name,
EntityHandle  ent,
int  gg 
)
pure virtual

Writable view of one point's MOAB tag data, not a state copy. Start each sweep at gg == 0 to refresh cached storage; do not retain views across tag resizing or replacement.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getStateTags()

virtual StateTags MatOps::MatOpsData::getStateTags ( ) const
pure virtual

Bound state-tag descriptors, not copies of the stored values.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ getUserDataPtr()

virtual boost::shared_ptr< UserData > MatOps::MatOpsData::getUserDataPtr ( ) const
pure virtual

Get the optional user-defined material data.

Implemented in MatOps::MatOpsDataImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ insertActiveData()

virtual std::pair< bool, MatrixPtr > MatOps::MatOpsData::insertActiveData ( const std::string &  name,
const MatrixDouble &  data = MatrixDouble(),
int  shift = 0 
)
pure virtual

Independent constitutive variables, such as the deformation gradient.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ insertCommonData()

virtual std::pair< bool, MatrixPtr > MatOps::MatOpsData::insertCommonData ( const std::string &  name,
const MatrixDouble &  data = MatrixDouble(),
int  shift = 0 
)
pure virtual

Shared evaluation data, such as field values at quadrature points.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ insertDependentData()

virtual std::pair< bool, MatrixPtr > MatOps::MatOpsData::insertDependentData ( const std::string &  name,
const MatrixDouble &  data = MatrixDouble(),
int  shift = 0 
)
pure virtual

Constitutive responses, such as stress, depending on the active variables.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ insertDependentDerivativesData()

virtual std::pair< bool, MatrixPtr > MatOps::MatOpsData::insertDependentDerivativesData ( const std::string &  name,
const MatrixDouble &  data = MatrixDouble(),
int  shift = 0 
)
pure virtual

Derivatives of the dependent responses with respect to active variables.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ setActiveContinuousVector()

virtual MoFEMErrorCode MatOps::MatOpsData::setActiveContinuousVector ( std::vector< double > &  active_variables)
pure virtual

Pack active matrices into a contiguous vector in registration order.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ setDependentContinuousVector()

virtual MoFEMErrorCode MatOps::MatOpsData::setDependentContinuousVector ( std::vector< double > &  dependent_variables)
pure virtual

Pack response matrices into a contiguous vector in registration order.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ setDependentDerivativesContinuousVector()

virtual MoFEMErrorCode MatOps::MatOpsData::setDependentDerivativesContinuousVector ( std::vector< double > &  dependent_variables_derivatives)
pure virtual

Pack response derivatives into a contiguous vector in registration order.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ setupStateData()

virtual MoFEMErrorCode MatOps::MatOpsData::setupStateData ( )
pure virtual

Find or create the registered MOAB state tags, preserving existing values.

Implemented in MatOps::MatOpsDataImpl, and MatOps::MatOpsDataDerivedImpl.

Examples
mofem/src/materials/MatOps.hpp.

◆ setUserDataPtr()

virtual void MatOps::MatOpsData::setUserDataPtr ( boost::shared_ptr< UserData >  user_data_ptr)
pure virtual

Set data owned by this container; back-references should be weak.

Implemented in MatOps::MatOpsDataImpl.

Examples
mofem/src/materials/MatOps.hpp.

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