|
dune-vtk 2.12
|
Loading...
Searching...
No Matches
gridfunction.hh
Go to the documentation of this file.
104 : GridFunction(std::forward<F>(f), Vtk::FieldInfo{std::move(name), numComponents, RangeTypes::UNSPECIFIED, DataTypes::FLOAT64})
114 : GridFunction(std::forward<F>(f), Vtk::FieldInfo{f.name(), f.numComponents(), rangeTypeImpl(f, Dune::PriorityTag<1>{}), f.dataType()})
STL namespace.
Definition datacollector.hh:19
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:59
RangeTypes
Type used to determine whether to limit output components to e.g. 3 (vector), or 9 (tensor)
Definition types.hh:36
@ UNSPECIFIED
@ VECTOR
@ SCALAR
@ TENSOR
@ FLOAT64
Vtk::RangeTypes rangeTypeOf(Dune::VTK::FieldInfo::Type t)
Definition types.cc:57
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
Implementation of DataCollector for cells, with continuous data.
Definition celltypedatacollector.hh:20
CellTypeDataCollector(GridView const &gridView, Vtk::CellType::Parametrization param=Vtk::CellType::LINEAR)
Definition celltypedatacollector.hh:42
A Vtk::GridFunction is a function-like object that can be bound to a grid element an that provides an...
Definition gridfunction.hh:89
void setComponents(std::vector< int > components)
Set the components of the Range to visualize.
Definition gridfunction.hh:202
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:103
int numComponents() const
Return the number of components of the Range as it is written to the file.
Definition gridfunction.hh:188
void setName(std::string name)
Set the function name.
Definition gridfunction.hh:182
GridFunction(F &&f, const Vtk::FieldInfo &info)
Constructor. Pass any type F supporting the Function interface wrappers and the FieldInfo describing ...
Definition gridfunction.hh:120
GridFunction(GridFunction &&)=default
void setFieldInfo(const Vtk::FieldInfo &info)
Set all the parameters from a FieldInfo object.
Definition gridfunction.hh:242
std::string const & name() const
Return a name associated with the function.
Definition gridfunction.hh:176
GridFunction(const GridFunction &other)
Copy constructor, clones the underlying implementation.
Definition gridfunction.hh:140
GridFunction(F &&f)
Constructor. Pass any type F supporting the Function interface wrappers that provides the field infor...
Definition gridfunction.hh:113
friend LocalFunction localFunction(GridFunction const &self)
Create the associated local function.
Definition gridfunction.hh:170
const std::vector< int > & components() const
Return the components vector.
Definition gridfunction.hh:196
void setDataType(Vtk::DataTypes type)
Set the data-type for the components.
Definition gridfunction.hh:221
Vtk::DataTypes dataType() const
Return the VTK Datatype associated with the functions range type.
Definition gridfunction.hh:215
Vtk::RangeTypes rangeType() const
The category of the range, SCALAR, VECTOR, TENSOR, or UNSPECIFIED.
Definition gridfunction.hh:227
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:233
double evaluate(int i, Domain const &x) const
Evaluate the ith component of the Range value at coordinate x
Definition gridfunction.hh:163
void setComponents(int ncomps)
Set the number of components of the Range and generate component range [0...ncomps)
Definition gridfunction.hh:209
Definition types.hh:250
int size() const
The number of components in the data field.
Definition types.hh:275
std::string const & name() const
The name of the data field.
Definition types.hh:269
Vtk::RangeTypes rangeType() const
Return the category of the stored range.
Definition types.hh:281
Vtk::DataTypes dataType() const
Return the data tpe of the data field.
Definition types.hh:287
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