|
dune-fem 2.12-git
|
the same functionality as the Dune::TimeProvider. More...
#include <dune/fem/solver/timeprovider.hh>

Public Types | |
| typedef Grid::Traits::Communication | CommunicationType |
Public Member Functions | |
| GridTimeProvider (const Grid &grid) | |
| GridTimeProvider (const double startTime, const Grid &grid) | |
| GridTimeProvider (const double startTime, const double cfl, const Grid &grid) | |
| virtual | ~GridTimeProvider () |
| void | init () |
| init dt with time step estimate | |
| void | init (const double timeStep) |
| init dt with provided time step | |
| void | next () |
| goto next time step | |
| void | next (const double timeStep) |
| goto next time step | |
| double | factor () const |
| return the global factor number | |
| void | restore (const double time, const int timeStep) |
| restore time and timestep from outside (i.e. from former calculation) | |
| virtual void | restore () |
| restore persistent object | |
| virtual void | backup () const |
| backup persistent object | |
| 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 | initTimeStep (const double dtEstimate) |
| double | getCflFactor () const |
| int | getUpdateStep () const |
| 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 | |
| const DofManagerType & | dm_ |
| int | sequence_ |
| const CommunicationType & | comm_ |
| const double | cfl_ |
| const int | updateStep_ |
| int | counter_ |
| ParameterReader | parameter_ |
| double | dt_ |
| double | invdt_ |
| double | dtEstimate_ |
| double | dtUpperBound_ |
| bool | valid_ |
| int | timeStep_ |
| double | time_ |
| bool | dtEstimateValid_ |
Detailed Description
class Dune::Fem::GridTimeProvider< Grid >
the same functionality as the Dune::TimeProvider.
This implementation of a timeprovider takes the Communication from a Dune::Grid instance.
Member Typedef Documentation
◆ CommunicationType
| typedef Grid::Traits::Communication Dune::Fem::GridTimeProvider< Grid >::CommunicationType |
Constructor & Destructor Documentation
◆ GridTimeProvider() [1/3]
|
inlineexplicit |
◆ GridTimeProvider() [2/3]
|
inline |
◆ GridTimeProvider() [3/3]
|
inline |
◆ ~GridTimeProvider()
|
inlinevirtual |
Member Function Documentation
◆ advance()
|
inlineprotectedinherited |
◆ backup()
|
inlinevirtualinherited |
backup persistent object
Implements Dune::Fem::PersistentObject.
◆ deltaT()
|
inlineinherited |
obtain the size of the current time step
- Returns
- the size of the current time step
◆ factor()
|
inlineinherited |
return the global factor number
- Returns
- time step factor
◆ getCflFactor()
|
inlineprotectedinherited |
◆ getUpdateStep()
|
inlineprotectedinherited |
◆ init() [1/2]
|
inlineinherited |
init dt with time step estimate
◆ init() [2/2]
|
inlineinherited |
init dt with provided time step
- Parameters
-
[in] timeStep value of the first time step (is multiplied with factor)
◆ initTimeStep()
|
inlineprotected |
◆ initTimeStepEstimate()
|
inlineprotectedinherited |
◆ 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()
|
inlineinherited |
count current time step a not valid
◆ inverseDeltaT()
|
inlineinherited |
obtain the size of the inverse of the current time step
- Returns
- the size of the inverse of the current time step
◆ next() [1/2]
|
inlineinherited |
goto next time step
Sets the size of the next time step to the current time step estimate and sets the estimate to infinity.
◆ next() [2/2]
|
inlineinherited |
goto next time step
Sets the size of the next time step to the provided time step value and sets the estimate to infinity.
- Parameters
-
[in] timeStep value of the next time step (is multiplied with factor)
◆ pointer()
|
inlineprotectedvirtualinherited |
Reimplemented in Dune::Fem::PersistenceManager::WrapObject< ObjectType, false >.
◆ provideTimeStepEstimate()
|
inlineinherited |
set time step estimate to minimum of given value and internal time step estiamte
- Parameters
-
[in] dtEstimate time step size estimate
◆ provideTimeStepUpperBound()
|
inlineinherited |
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() [1/2]
|
inlinevirtualinherited |
restore persistent object
Implements Dune::Fem::PersistentObject.
◆ restore() [2/2]
|
inlineinherited |
restore time and timestep from outside (i.e. from former calculation)
- Parameters
-
[in] time new time [in] timeStep new time step counter
◆ time()
|
inlineinherited |
obtain the current time
- Returns
- the current time
◆ timeStep()
|
inlineinherited |
obtain number of the current time step
- Returns
- the current time step counter
◆ timeStepEstimate()
|
inlineinherited |
obtain current estimate on time step
- Returns
- the current estimate for the time step
◆ timeStepValid()
|
inlineinherited |
return if this time step should be used
Member Data Documentation
◆ cfl_
|
protectedinherited |
◆ comm_
|
protectedinherited |
◆ counter_
|
protectedinherited |
◆ dm_
|
protected |
◆ dt_
|
protectedinherited |
◆ dtEstimate_
|
protectedinherited |
◆ dtEstimateValid_
|
protectedinherited |
◆ dtUpperBound_
|
protectedinherited |
◆ invdt_
|
protectedinherited |
◆ parameter_
|
protectedinherited |
◆ sequence_
|
protected |
◆ time_
|
protectedinherited |
◆ timeStep_
|
protectedinherited |
◆ updateStep_
|
protectedinherited |
◆ valid_
|
protectedinherited |
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