OGS
|
A parameter represented by a mesh property vector.
Definition at line 25 of file RandomFieldMeshElementParameter.h.
#include <RandomFieldMeshElementParameter.h>
Public Member Functions | |
RandomFieldMeshElementParameter (std::string const &name_, MeshLib::Mesh &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 RandomFieldMeshElementParameter.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 RandomFieldMeshElementParameter.h.
References MeshLib::Element::getID(), ParameterLib::RandomFieldMeshElementParameter< T >::getNumberOfGlobalComponents(), MeshLib::Element::getNumberOfNodes(), ParameterLib::RandomFieldMeshElementParameter< 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 RandomFieldMeshElementParameter.h.
References ParameterLib::RandomFieldMeshElementParameter< T >::_property, and MeshLib::PropertyVectorBase::getNumberOfGlobalComponents().
Referenced by ParameterLib::RandomFieldMeshElementParameter< T >::getNodalValuesOnElement().
|
inlineoverridevirtual |
Implements ParameterLib::ParameterBase.
Definition at line 34 of file RandomFieldMeshElementParameter.h.
|
inlineoverridevirtual |
Returns the parameter value at the given time and position.
Implements ParameterLib::Parameter< T >.
Definition at line 41 of file RandomFieldMeshElementParameter.h.
References ParameterLib::ParameterBase::_coordinate_system, ParameterLib::RandomFieldMeshElementParameter< T >::_property, MeshLib::PropertyVector< PROP_VAL_TYPE >::getComponent(), ParameterLib::SpatialPosition::getElementID(), MeshLib::PropertyVectorBase::getNumberOfGlobalComponents(), OGS_FATAL, and ParameterLib::ParameterBase::rotateWithCoordinateSystem().
Referenced by ParameterLib::RandomFieldMeshElementParameter< T >::getNodalValuesOnElement().
|
private |
Definition at line 88 of file RandomFieldMeshElementParameter.h.
Referenced by ParameterLib::RandomFieldMeshElementParameter< T >::getNumberOfGlobalComponents(), and ParameterLib::RandomFieldMeshElementParameter< T >::operator()().