36 OGS_FATAL(
"RasterParameter::operator(): couldn't get coordinates.");
42 Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic>
44 double const t)
const override
47 Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> result(
51 auto const nodes = element.
getNodes();
52 for (
unsigned i = 0; i < n_nodes; ++i)
55 auto const& values = this->
operator()(t, position);
57 Eigen::Map<Eigen::Matrix<double, Eigen::Dynamic, 1>
const>(
58 values.data(), values.size());
70 std::vector<GeoLib::NamedRaster>
const& named_rasters);
Definition of the GeoLib::Raster class.
virtual unsigned getNumberOfNodes() const =0
virtual Node *const * getNodes() const =0
Get array of element nodes.
std::optional< MathLib::Point3d > const & getCoordinates() const
void setCoordinates(MathLib::Point3d const &coordinates)
std::unique_ptr< ParameterBase > createRasterParameter(std::string const &name, BaseLib::ConfigTree const &config, std::vector< GeoLib::NamedRaster > const &named_rasters)
std::unique_ptr< GeoLib::Raster > raster
std::vector< double > operator()(double const, SpatialPosition const &pos) const override
Returns the parameter value at the given time and position.
int getNumberOfGlobalComponents() const override
bool isTimeDependent() const override
Eigen::Matrix< double, 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.
GeoLib::NamedRaster const & _named_raster
RasterParameter(std::string const &name_, GeoLib::NamedRaster const &named_raster)