OGS
|
A parameter represented by a mesh property vector.
Definition at line 25 of file MeshElementParameter.h.
#include <MeshElementParameter.h>
Public Member Functions | |
MeshElementParameter (std::string const &name_, MeshLib::Mesh const &mesh, MeshLib::PropertyVector< T > const &property) | |
bool | isTimeDependent () const override |
int | getNumberOfGlobalComponents () const override |
std::vector< T > | operator() (double const, SpatialPosition const &pos) const override |
Returns the parameter value at the given time and position. | |
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > | getNodalValuesOnElement (MeshLib::Element const &element, double const t) const override |
Returns a matrix of values for all nodes of the given element. | |
Public Member Functions inherited from ParameterLib::Parameter< T > | |
~Parameter () override=default | |
ParameterBase (std::string name_, MeshLib::Mesh const *mesh=nullptr) | |
Public Member Functions inherited from ParameterLib::ParameterBase | |
ParameterBase (std::string name_, MeshLib::Mesh const *mesh=nullptr) | |
virtual | ~ParameterBase ()=default |
void | setCoordinateSystem (CoordinateSystem const &coordinate_system) |
virtual void | initialize (std::vector< std::unique_ptr< ParameterBase > > const &) |
MeshLib::Mesh const * | mesh () const |
Private Attributes | |
MeshLib::PropertyVector< T > const & | _property |
Additional Inherited Members | |
Public Attributes inherited from ParameterLib::ParameterBase | |
std::string const | name |
Protected Member Functions inherited from ParameterLib::ParameterBase | |
std::vector< double > | rotateWithCoordinateSystem (std::vector< double > const &values, SpatialPosition const &pos) const |
Protected Attributes inherited from ParameterLib::ParameterBase | |
std::optional< CoordinateSystem > | _coordinate_system |
MeshLib::Mesh const * | _mesh |
|
inline |
Definition at line 27 of file MeshElementParameter.h.
|
inlineoverridevirtual |
Returns a matrix of values for all nodes of the given element.
Reimplemented from ParameterLib::Parameter< T >.
Definition at line 66 of file MeshElementParameter.h.
References MeshLib::Element::getID(), ParameterLib::MeshElementParameter< T >::getNumberOfGlobalComponents(), MeshLib::Element::getNumberOfNodes(), ParameterLib::MeshElementParameter< T >::operator()(), and ParameterLib::SpatialPosition::setElementID().
|
inlineoverridevirtual |
Returns the number of components this Parameter has at every position and point in time.
Implements ParameterLib::Parameter< T >.
Definition at line 36 of file MeshElementParameter.h.
References ParameterLib::MeshElementParameter< T >::_property, and MeshLib::PropertyVectorBase::getNumberOfGlobalComponents().
Referenced by ParameterLib::MeshElementParameter< T >::getNodalValuesOnElement().
|
inlineoverridevirtual |
Implements ParameterLib::ParameterBase.
Definition at line 34 of file MeshElementParameter.h.
|
inlineoverridevirtual |
Returns the parameter value at the given time and position.
Implements ParameterLib::Parameter< T >.
Definition at line 41 of file MeshElementParameter.h.
References ParameterLib::ParameterBase::_coordinate_system, ParameterLib::MeshElementParameter< T >::_property, MeshLib::PropertyVector< PROP_VAL_TYPE >::getComponent(), ParameterLib::SpatialPosition::getElementID(), MeshLib::PropertyVectorBase::getNumberOfGlobalComponents(), OGS_FATAL, and ParameterLib::ParameterBase::rotateWithCoordinateSystem().
Referenced by ParameterLib::MeshElementParameter< T >::getNodalValuesOnElement().
|
private |
Definition at line 88 of file MeshElementParameter.h.
Referenced by ParameterLib::MeshElementParameter< T >::getNumberOfGlobalComponents(), and ParameterLib::MeshElementParameter< T >::operator()().