Stores an ODE solution and its independent-variable level. Generalization of experimental/common/variables which are tailored to time as the independent variable.
#include <dumux/experimental/ode/odesolver.hh>
Public Types | |
| using | SolutionVector = X |
| using | Scalar = Detail::ODE::Scalar<X> |
| using | Level = IndependentVariableLevel<Scalar> |
Public Member Functions | |
| ODEVariables () | |
| Constructs default-initialized ODE variables. | |
| ODEVariables (const SolutionVector &solution, const Level &level=Level{0.0}) | |
| Constructs ODE variables from a solution. | |
| ODEVariables (SolutionVector &&solution, const Level &level=Level{0.0}) | |
| Constructs ODE variables by moving a solution. | |
| const Level & | independentVariableLevel () const |
| Returns the independent-variable level. | |
| const SolutionVector & | dofs () const |
| Returns the solution degrees of freedom. | |
| SolutionVector & | dofs () |
| Returns the solution degrees of freedom. | |
| void | update (const SolutionVector &solution) |
| Updates the solution. | |
| void | updateIndependentVariable (const Level &level) |
| Updates the independent-variable level. | |
| void | update (const SolutionVector &solution, const Level &level) |
| Updates the solution and independent-variable level. | |
| using Dumux::Experimental::ODEVariables< X >::Level = IndependentVariableLevel<Scalar> |
| using Dumux::Experimental::ODEVariables< X >::Scalar = Detail::ODE::Scalar<X> |
| using Dumux::Experimental::ODEVariables< X >::SolutionVector = X |
|
inline |
|
inlineexplicit |
| solution | initial solution |
| level | initial independent-variable level |
|
inlineexplicit |
| solution | initial solution |
| level | initial independent-variable level |
|
inline |
|
inline |
|
inline |
|
inline |
| solution | the new solution |
|
inline |
| solution | new solution |
| level | new independent-variable level |
|
inline |
| level | the new independent-variable level |