Wrapper to evaluate results for a vtkwriter. Works both out-of-the-box with Dune::VTK and Dune::Vtk.
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... | |
| template<typename UF = UserFunction> | |
| ResultFunction (std::shared_ptr< Assembler > assembler, Dune::VTK::Precision prec=Dune::VTK::Precision::float64, UF &&userFunction={}) | |
| Construct a new Result Function object. 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 |
| UF | Type of the user function |
| 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) |
| userFunction | the user function (default is DefaultUserFunction) |
|
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 with the dune-vtk module
|
staticconstexpr |