Wrapper to evaluate results for a vtkwriter. More...
#include <ikarus/io/resultfunction.hh>
Public Types | |
using | Assembler = AS |
using | GridView = typename Assembler::GridView |
using | FERequirementType = typename Assembler::FERequirement |
using | FEContainer = typename Assembler::FEContainer |
using | FiniteElement = typename std::remove_cvref_t< FEContainer >::value_type |
using | ctype = typename GridView::ctype |
using | Entity = typename GridView::template Codim< 0 >::Entity |
Public Member Functions | |
double | evaluate (int comp, const Entity &e, const Dune::FieldVector< ctype, griddim > &local) const override |
Evaluate the component at a given entity and local coordinates. More... | |
int | ncomps () const override |
Get the number of components. More... | |
constexpr std::string | name () const override |
Get the name of the result type. More... | |
Dune::VTK::Precision | precision () const override |
Get the precision used for this result. More... | |
ResultFunction (std::shared_ptr< Assembler > assembler, Dune::VTK::Precision prec=Dune::VTK::Precision::float64) | |
Constructor for ResultFunction. More... | |
Static Public Attributes | |
static constexpr int | griddim = GridView::dimension |
Usage:
AS | underlying assembler (provides the finite elements and the requested results) |
RT | requested result type |
UserFunction | Type of the user-defined function for custom result evaluation (default is DefaultUserFunction) |
using Ikarus::ResultFunction< AS, RT, UserFunction >::Assembler = AS |
using Ikarus::ResultFunction< AS, RT, UserFunction >::ctype = typename GridView::ctype |
using Ikarus::ResultFunction< AS, RT, UserFunction >::Entity = typename GridView::template Codim<0>::Entity |
using Ikarus::ResultFunction< AS, RT, UserFunction >::FEContainer = typename Assembler::FEContainer |
using Ikarus::ResultFunction< AS, RT, UserFunction >::FERequirementType = typename Assembler::FERequirement |
using Ikarus::ResultFunction< AS, RT, UserFunction >::FiniteElement = typename std::remove_cvref_t<FEContainer>::value_type |
using Ikarus::ResultFunction< AS, RT, UserFunction >::GridView = typename Assembler::GridView |
|
inline |
Constructs a ResultFunction object with given finite elements, ferequirements
assembler | shared pointer to the underlying assembler (provides the finite elements and the requested results) |
prec | (optional) specify the used precision (only has an effect when using resultfunciton with Dune::VTK::VTKWriter) |
|
inlineoverride |
This function is required by the Dune::VTKFunction interface.
comp | Stress component index |
e | Entity on which to evaluate the stress |
local | Local coordinates within the entity |
|
inlineconstexproverride |
This function is required by the Dune::VTKFunction interface.
|
inlineoverride |
This function is required by the Dune::VTKFunction interface.
|
inlineoverride |
This function is part of the Dune::VTKFunction interface. This has no affect when the ResultFunction is used as part of a the dune-vtk module
|
staticconstexpr |