This abstract class is derived from the abstract class of general input to output mapping. It is defining the general concepts of a function and computing function evaluation and evaluation of its derivative.
More...
|
virtual void | evaluateMapping (ParameterListPtr_Type params, MultiVectorConstPtr_Type input, MultiVectorPtr_Type &output) override |
| Implement a mapping for evaluating output in dependence of given input and specified parameters for MultiVectorPtr_Type inputs/ outputs.
|
|
virtual void | evaluateDerivative (ParameterListPtr_Type params, MultiVectorConstPtr_Type x, MultiVectorPtr_Type &res) override |
| Computes value of derivative of defined function in evaluateMapping.
|
|
virtual void | setParams (ParameterListPtr_Type params) override=0 |
| Function could include different parameters which will be specified in *.xml This function should set the needed parameters for defined function to the specified values.
|
|
virtual void | echoInformationMapping () override=0 |
| Print parameter values used in model at runtime.
|
|
virtual void | evaluateMapping (ParameterListPtr_Type params, double x, double &res) override=0 |
| Implements a functional description for evaluating res in dependence of given dependent variables and specified parameters.
|
|
virtual void | evaluateDerivative (ParameterListPtr_Type params, double x, double &res) override=0 |
| Computes value of derivative of defined function in evaluateMapping.
|
|
virtual void | updateParams (ParameterListPtr_Type params) |
| Set or update the parameters read from the ParameterList.
|
|
template<class SC = default_sc, class LO = default_lo, class GO = default_go, class NO = default_no>
class FEDD::DifferentiableFuncClass< SC, LO, GO, NO >
This abstract class is derived from the abstract class of general input to output mapping. It is defining the general concepts of a function and computing function evaluation and evaluation of its derivative.
- Template Parameters
-
SC | The scalar type. So far, this is always double, but having it as a template parameter would allow flexibily, e.g., for using complex instead |
LO | The local ordinal type. The is the index type for local indices |
GO | The global ordinal type. The is the index type for global indices |
- Todo
- This should actually be removed since the class should operate only on element level)
- Template Parameters
-
NO | The Kokkos Node type. This would allow for performance portibility when using Kokkos. Currently, this is not used. |
The material parameters can be provided through a Teuchos::ParameterList object which will contain all the parameters specified in the input file ABC.xml
. The structure of the input file and, hence, of the resulting parameter list can be chosen freely. The FEDDLib will take care of reading the parameters from the file and making them available.
template<class SC = default_sc, class LO = default_lo, class GO = default_go, class NO = default_no>
Print parameter values used in model at runtime.
Implements FEDD::InputToOutputMappingClass< default_sc, default_lo, default_go, default_no >.
Implemented in FEDD::CarreauYasuda< SC, LO, GO, NO >, FEDD::Dimless_Carreau< SC, LO, GO, NO >, and FEDD::PowerLaw< SC, LO, GO, NO >.
template<class SC = default_sc, class LO = default_lo, class GO = default_go, class NO = default_no>
Computes value of derivative of defined function in evaluateMapping.
- Parameters
-
[in] | params | Parameterlist as read from the xml file (maybe redundant) |
[in] | x | Independent variable |
[in,out] | res | Dependent variable |
Implements FEDD::InputToOutputMappingClass< default_sc, default_lo, default_go, default_no >.
Implemented in FEDD::CarreauYasuda< SC, LO, GO, NO >, FEDD::Dimless_Carreau< SC, LO, GO, NO >, and FEDD::PowerLaw< SC, LO, GO, NO >.
template<class SC = default_sc, class LO = default_lo, class GO = default_go, class NO = default_no>
Implements a functional description for evaluating res in dependence of given dependent variables and specified parameters.
- Parameters
-
[in] | params | Parameterlist as read from the xml file (maybe redundant) |
[in] | x | Independent variable |
[in,out] | res | Dependent variable |
Implements FEDD::InputToOutputMappingClass< default_sc, default_lo, default_go, default_no >.
Implemented in FEDD::CarreauYasuda< SC, LO, GO, NO >, FEDD::Dimless_Carreau< SC, LO, GO, NO >, and FEDD::PowerLaw< SC, LO, GO, NO >.
template<class SC = default_sc, class LO = default_lo, class GO = default_go, class NO = default_no>
virtual void FEDD::DifferentiableFuncClass< SC, LO, GO, NO >::evaluateMapping |
( |
ParameterListPtr_Type | params, |
|
|
MultiVectorConstPtr_Type | input, |
|
|
MultiVectorPtr_Type & | output ) |
|
inlineoverridevirtual |
template<class SC = default_sc, class LO = default_lo, class GO = default_go, class NO = default_no>
Function could include different parameters which will be specified in *.xml This function should set the needed parameters for defined function to the specified values.
- Parameters
-
[in] | ParameterList | as read from the xml file (maybe redundant) |
Implements FEDD::InputToOutputMappingClass< default_sc, default_lo, default_go, default_no >.
Implemented in FEDD::CarreauYasuda< SC, LO, GO, NO >, FEDD::Dimless_Carreau< SC, LO, GO, NO >, and FEDD::PowerLaw< SC, LO, GO, NO >.