Wrapper to evaluate results for a vtkwriter.
More...
#include <ikarus/io/resultfunction.hh>
|
using | ElementType = ElementType_ |
|
using | ResultRequirements = typename ElementType::ResultRequirementsType |
|
using | GridView = typename ElementType::GridView |
|
using | ctype = typename GridView::ctype |
|
typedef GridView::template Codim< 0 >::Entity | Entity |
|
|
static constexpr int | griddim = GridView::dimension |
|
template<typename ElementType_, typename UserFunction = Impl::DefaultUserFunction>
class Ikarus::ResultFunction< ElementType_, UserFunction >
Usage:
auto resultFunction = std::make_shared<ResultFunction<ElementType>>(&fes, resReq);
vtkWriter.addPointData(Dune::Vtk::Function<GridView>( resultFunction));
vtkWriter.addVertexData(resultFunction);
Class representing the requirements for obtaining specific results.
Definition: ferequirements.hh:405
ResultRequirements & addResultRequest(ResultTypes &&... keys)
Add one or more result types to the set of requested results.
Definition: ferequirements.hh:501
ResultRequirements & insertParameter(FEParameter &&key, ParameterTypeRaw &val)
Insert a parameter into the finite element requirements.
Definition: ferequirements.hh:472
ResultRequirements & insertGlobalSolution(FESolutions &&key, SolutionVectorTypeRaw &sol)
Insert a global solution into the finite element requirements.
Definition: ferequirements.hh:486
- Template Parameters
-
ElementType_ | Type of the finite element |
UserFunction | Type of the user-defined function for custom result evaluation (default is DefaultUserFunction) |
◆ ctype
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
◆ ElementType
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
◆ Entity
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
◆ GridView
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
◆ ResultRequirements
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
using Ikarus::ResultFunction< ElementType_, UserFunction >::ResultRequirements = typename ElementType::ResultRequirementsType |
◆ ResultFunction()
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
Constructs a ResultFunction object with given finite elements, result requirements, and an optional user function.
- Parameters
-
fes | Pointer to a vector of finite elements |
req | Result requirements for evaluation |
userFunction | User-defined function for custom result evaluation (default is DefaultUserFunction) |
◆ evaluate()
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
This function is required by the Dune::VTKFunction interface.
- Parameters
-
comp | Stress component index |
e | Entity on which to evaluate the stress |
local | Local coordinates within the entity |
- Returns
- Stress component value
◆ name()
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
This function is required by the Dune::VTKFunction interface.
- Returns
- String representing the name of the result type
◆ ncomps()
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
This function is required by the Dune::VTKFunction interface.
- Returns
- Number of stress components
◆ griddim
template<typename ElementType_ , typename UserFunction = Impl::DefaultUserFunction>
The documentation for this class was generated from the following file: