|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
gridfunction.hh
Go to the documentation of this file.
102 : GridFunction(std::forward<F>(f), Vtk::FieldInfo{std::move(name), numComponents, RangeTypes::UNSPECIFIED, DataTypes::FLOAT64})
112 : GridFunction(std::forward<F>(f), Vtk::FieldInfo{f.name(), f.numComponents(), rangeTypeImpl(f, Dune::PriorityTag<1>{}), f.dataType()})
STL namespace.
Definition writer.hh:16
constexpr std::array< int, 2 > rangeShape()
Static shape {rows,cols} of a matrix-valued range type, or {0,0} if unknown or not a matrix.
Definition rangetype.hh:57
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
const char * name()
auto rows(Matrix const &matrix)
auto cols(Matrix const &matrix)
SLList< T, A > & operator=(const SLList< T, A > &other)
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:87
void setComponents(std::vector< int > components)
Set the components of the Range to visualize.
Definition gridfunction.hh:200
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:101
int numComponents() const
Return the number of components of the Range as it is written to the file.
Definition gridfunction.hh:186
void setName(std::string name)
Set the function name.
Definition gridfunction.hh:180
GridFunction(F &&f, const Vtk::FieldInfo &info)
Constructor. Pass any type F supporting the Function interface wrappers and the FieldInfo describing ...
Definition gridfunction.hh:118
GridFunction(GridFunction &&)=default
void setFieldInfo(const Vtk::FieldInfo &info)
Set all the parameters from a FieldInfo object.
Definition gridfunction.hh:240
std::string const & name() const
Return a name associated with the function.
Definition gridfunction.hh:174
GridFunction(const GridFunction &other)
Copy constructor, clones the underlying implementation.
Definition gridfunction.hh:138
GridFunction(F &&f)
Constructor. Pass any type F supporting the Function interface wrappers that provides the field infor...
Definition gridfunction.hh:111
friend LocalFunction localFunction(GridFunction const &self)
Create the associated local function.
Definition gridfunction.hh:168
const std::vector< int > & components() const
Return the components vector.
Definition gridfunction.hh:194
void setDataType(Vtk::DataTypes type)
Set the data-type for the components.
Definition gridfunction.hh:219
Vtk::DataTypes dataType() const
Return the VTK Datatype associated with the functions range type.
Definition gridfunction.hh:213
Vtk::RangeTypes rangeType() const
The category of the range, SCALAR, VECTOR, TENSOR, or UNSPECIFIED.
Definition gridfunction.hh:225
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:231
double evaluate(int i, Domain const &x) const
Evaluate the ith component of the Range value at coordinate x
Definition gridfunction.hh:161
void setComponents(int ncomps)
Set the number of components of the Range and generate component range [0...ncomps)
Definition gridfunction.hh:207
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 forward(T... args)
T iota(T... args)
T min(T... args)
T size(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8