|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
gridfunction.hh
Go to the documentation of this file.
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()})
STL namespace.
Definition writer.hh:16
RangeTypes
Type used to determine whether to limit output components to e.g. 3 (vector), or 9 (tensor)
Definition types.hh:34
@ UNSPECIFIED
@ VECTOR
@ SCALAR
@ TENSOR
@ FLOAT64
Vtk::RangeTypes rangeTypeOf(Dune::VTK::FieldInfo::Type t)
Definition types.cc:55
constexpr T & resolveRef(T &gf) noexcept
virtual void operator()()=0
virtual ~Interface()
Implementation & impl()
GridView(const Implementation &imp)
ALBERTA EL Element
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
GridFunction(GridFunction &&)=default
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
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
GridFunction & operator=(GridFunction &&)=default
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
Definition types.hh:248
int size() const
The number of components in the data field.
Definition types.hh:273
std::string const & name() const
The name of the data field.
Definition types.hh:267
Vtk::RangeTypes rangeType() const
Return the category of the stored range.
Definition types.hh:279
Vtk::DataTypes dataType() const
Return the data tpe of the data field.
Definition types.hh:285
T begin(T... args)
T end(T... args)
T forward(T... args)
T iota(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8