|
dune-fem 2.12-git
|
general base for time providers More...
#include <dune/fem/solver/timeprovider.hh>

Public Member Functions | |
| TimeProviderBase (const ParameterReader ¶meter=Parameter::container()) | |
| TimeProviderBase (const double startTime, const ParameterReader ¶meter=Parameter::container()) | |
| virtual | ~TimeProviderBase () |
| void | backup () const |
| backup persistent object | |
| void | restore () |
| restore persistent object | |
| TimeProviderBase (const ThisType &)=delete | |
| ThisType & | operator= (const ThisType &)=delete |
| double | time () const |
| obtain the current time | |
| int | timeStep () const |
| obtain number of the current time step | |
| double | deltaT () const |
| obtain the size of the current time step | |
| double | inverseDeltaT () const |
| obtain the size of the inverse of the current time step | |
| double | timeStepEstimate () const |
| obtain current estimate on time step | |
| void | provideTimeStepEstimate (const double dtEstimate) |
| set time step estimate to minimum of given value and internal time step estiamte | |
| void | provideTimeStepUpperBound (const double upperBound) |
| set upper bound for time step to minimum of given value and internal bound | |
| void | invalidateTimeStep () |
| count current time step a not valid | |
| bool | timeStepValid () const |
| return if this time step should be used | |
Protected Member Functions | |
| void | advance () |
| void | initTimeStepEstimate () |
| virtual void | insertSubData () |
| insert possible sub data of object | |
| virtual void | removeSubData () |
| remove possible sub data of object | |
| virtual void * | pointer () |
Protected Attributes | |
| double | time_ |
| int | timeStep_ |
| double | dt_ |
| double | invdt_ |
| bool | valid_ |
| bool | dtEstimateValid_ |
| double | dtEstimate_ |
| double | dtUpperBound_ |
| ParameterReader | parameter_ |
Detailed Description
general base for time providers
This class consists of the methods required for example in the ODE Solvers, e.g., provideTimeStepEstimate and provideTimeStepUpperBound. InvalidateTimeStep can be used to mark this time step as invalid. Furthermore, method for accessing the simulation time, the time step counter and the time step size are provided.
The derived class TimeProvider provides the additional method required for implementing a time loop.
Constructor & Destructor Documentation
◆ TimeProviderBase() [1/3]
|
inline |
◆ TimeProviderBase() [2/3]
|
inlineexplicit |
◆ ~TimeProviderBase()
|
inlinevirtual |
◆ TimeProviderBase() [3/3]
|
delete |
Member Function Documentation
◆ advance()
|
inlineprotected |
◆ backup()
|
inlinevirtual |
backup persistent object
Implements Dune::Fem::PersistentObject.
◆ deltaT()
|
inline |
obtain the size of the current time step
- Returns
- the size of the current time step
◆ initTimeStepEstimate()
|
inlineprotected |
◆ insertSubData()
|
inlineprotectedvirtualinherited |
insert possible sub data of object
Reimplemented in Dune::Fem::DiscreteFunctionDefault< Impl >, Dune::Fem::DiscreteFunctionDefault< AdaptiveDiscreteFunction< DiscreteFunctionSpace > >, Dune::Fem::DiscreteFunctionDefault< BlockVectorDiscreteFunction< DiscreteFunctionSpace, BlockVector > >, Dune::Fem::DiscreteFunctionDefault< CombinedDiscreteFunction< ContainedDiscreteFunctionImp, N > >, Dune::Fem::DiscreteFunctionDefault< HierarchicalDiscreteFunction< DiscreteFunctionSpace > >, Dune::Fem::DiscreteFunctionDefault< ISTLBlockVectorDiscreteFunction< DiscreteFunctionSpace, Block > >, Dune::Fem::DiscreteFunctionDefault< TupleDiscreteFunction< DiscreteFunctions ... > >, and Dune::Fem::DiscreteFunctionDefault< VectorDiscreteFunction< DiscreteFunctionSpace, Vector > >.
◆ invalidateTimeStep()
|
inline |
count current time step a not valid
◆ inverseDeltaT()
|
inline |
obtain the size of the inverse of the current time step
- Returns
- the size of the inverse of the current time step
◆ operator=()
◆ pointer()
|
inlineprotectedvirtualinherited |
Reimplemented in Dune::Fem::PersistenceManager::WrapObject< ObjectType, false >.
◆ provideTimeStepEstimate()
|
inline |
set time step estimate to minimum of given value and internal time step estiamte
- Parameters
-
[in] dtEstimate time step size estimate
◆ provideTimeStepUpperBound()
|
inline |
set upper bound for time step to minimum of given value and internal bound
- Parameters
-
[in] upperBound time step size estimate
◆ removeSubData()
|
inlineprotectedvirtualinherited |
remove possible sub data of object
Reimplemented in Dune::Fem::DiscreteFunctionDefault< Impl >, Dune::Fem::DiscreteFunctionDefault< AdaptiveDiscreteFunction< DiscreteFunctionSpace > >, Dune::Fem::DiscreteFunctionDefault< BlockVectorDiscreteFunction< DiscreteFunctionSpace, BlockVector > >, Dune::Fem::DiscreteFunctionDefault< CombinedDiscreteFunction< ContainedDiscreteFunctionImp, N > >, Dune::Fem::DiscreteFunctionDefault< HierarchicalDiscreteFunction< DiscreteFunctionSpace > >, Dune::Fem::DiscreteFunctionDefault< ISTLBlockVectorDiscreteFunction< DiscreteFunctionSpace, Block > >, Dune::Fem::DiscreteFunctionDefault< TupleDiscreteFunction< DiscreteFunctions ... > >, and Dune::Fem::DiscreteFunctionDefault< VectorDiscreteFunction< DiscreteFunctionSpace, Vector > >.
◆ restore()
|
inlinevirtual |
restore persistent object
Implements Dune::Fem::PersistentObject.
◆ time()
|
inline |
obtain the current time
- Returns
- the current time
◆ timeStep()
|
inline |
obtain number of the current time step
- Returns
- the current time step counter
◆ timeStepEstimate()
|
inline |
obtain current estimate on time step
- Returns
- the current estimate for the time step
◆ timeStepValid()
|
inline |
return if this time step should be used
Member Data Documentation
◆ dt_
|
protected |
◆ dtEstimate_
|
protected |
◆ dtEstimateValid_
|
protected |
◆ dtUpperBound_
|
protected |
◆ invdt_
|
protected |
◆ parameter_
|
protected |
◆ time_
|
protected |
◆ timeStep_
|
protected |
◆ valid_
|
protected |
The documentation for this class was generated from the following file:
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8