39 return static_cast<int>(
_values.size());
57 Eigen::Matrix<T, Eigen::Dynamic, Eigen::Dynamic> result(
61 auto const row_values =
62 Eigen::Map<Eigen::Matrix<T, Eigen::Dynamic, 1>
const>(
64 for (
unsigned i = 0; i < n_nodes; ++i)
66 result.row(i) = row_values;
virtual unsigned getNumberOfNodes() const =0
std::unique_ptr< ParameterBase > createConstantParameter(std::string const &name, BaseLib::ConfigTree const &config)
Single, constant value parameter.
ConstantParameter(std::string const &name_, std::vector< T > values)
std::vector< T > const _values
bool isTimeDependent() const override
int getNumberOfGlobalComponents() const override
Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > getNodalValuesOnElement(MeshLib::Element const &element, double const) const override
Returns a matrix of values for all nodes of the given element.
std::vector< T > operator()(double const, SpatialPosition const &pos) const override
Returns the parameter value at the given time and position.
ConstantParameter(std::string const &name_, T const &value)
Construction with single value.
std::vector< double > rotateWithCoordinateSystem(std::vector< double > const &values, SpatialPosition const &pos) const
std::optional< CoordinateSystem > _coordinate_system