Dune Core Modules (2.11.0)
gridfunction.hh
100 : GridFunction(std::forward<F>(f), Vtk::FieldInfo{std::move(name), numComponents, RangeTypes::UNSPECIFIED, DataTypes::FLOAT64})
108 : GridFunction(std::forward<F>(f), Vtk::FieldInfo{f.name(), f.numComponents(), Vtk::RangeTypes::UNSPECIFIED, f.dataType()})
A Vtk::GridFunction is a function-like object that can be bound to a grid element an that provides an...
Definition: gridfunction.hh:85
void setComponents(std::vector< int > components)
Set the components of the Range to visualize.
Definition: gridfunction.hh:192
GridFunction(F &&f, std::string name, int numComponents=dimRange< R >())
Constructor. Pass any type F supporting the Function interface wrappers the name of the function and ...
Definition: gridfunction.hh:99
int numComponents() const
Return the number of components of the Range as it is written to the file.
Definition: gridfunction.hh:178
void setName(std::string name)
Set the function name.
Definition: gridfunction.hh:172
GridFunction(F &&f, const Vtk::FieldInfo &info)
Constructor. Pass any type F supporting the Function interface wrappers and the FieldInfo describing ...
Definition: gridfunction.hh:114
void setFieldInfo(const Vtk::FieldInfo &info)
Set all the parameters from a FieldInfo object.
Definition: gridfunction.hh:230
std::string const & name() const
Return a name associated with the function.
Definition: gridfunction.hh:166
GridFunction(const GridFunction &other)
Copy constructor, clones the underlying implementation.
Definition: gridfunction.hh:133
friend LocalFunction localFunction(GridFunction const &self)
Create the associated local function.
Definition: gridfunction.hh:160
const std::vector< int > & components() const
Return the components vector.
Definition: gridfunction.hh:186
void setDataType(Vtk::DataTypes type)
Set the data-type for the components.
Definition: gridfunction.hh:210
Vtk::DataTypes dataType() const
Return the VTK Datatype associated with the functions range type.
Definition: gridfunction.hh:204
Vtk::RangeTypes rangeType() const
The category of the range, SCALAR, VECTOR, TENSOR, or UNSPECIFIED.
Definition: gridfunction.hh:216
Impl::RangeProxy< GridFunction, Domain > operator()(Domain const &x) const
Return a proxy object to access the components of the range vector.
Definition: gridfunction.hh:148
GridFunction()=default
Default Constructor, creates an invalid function that must be assigned a valid function object.
void setRangeType(Vtk::RangeTypes type, std::size_t ncomp=1)
Set the category of the range, SCALAR, VECTOR, TENSOR, or UNSPECIFIED.
Definition: gridfunction.hh:222
double evaluate(int i, Domain const &x) const
Evaluate the ith component of the Range value at coordinate x
Definition: gridfunction.hh:154
void setComponents(int ncomps)
Set the number of components of the Range and generate component range [0...ncomps)
Definition: gridfunction.hh:198
A Vtk::LocalFunction is a function-like object that can be bound to a grid element an that provides a...
Definition: localfunction.hh:74
Infrastructure for concepts.
Traits for type conversions and type information.
constexpr T & resolveRef(T &gf) noexcept
Helper function to resolve std::reference_wrapper.
Definition: referencehelper.hh:47
STL namespace.
|
Legal Statements / Impressum |
Hosted by TU Dresden & Uni Heidelberg |
generated with Hugo v0.111.3
(Feb 14, 23:39, 2026)