|
dune-fem 2.12-git
|
Loading...
Searching...
No Matches
timeprovider.hh
Go to the documentation of this file.
53 inline explicit TimeProviderBase ( const double startTime, const ParameterReader ¶meter = Parameter::container() )
256 : BaseType( parameter.getValue< double>( "fem.timeprovider.starttime", 0.0 ), parameter ), comm_( MPIManager::comm() )
258 dt_ = parameter.getValidValue< double >("fem.timeprovider.fixedtimestep", [] ( double v ) { return v > 0.0;} );
264 : BaseType( parameter.getValue< double>( "fem.timeprovider.starttime", 0.0 ), parameter ), comm_( comm )
266 dt_ = parameter.getValidValue< double >("fem.timeprovider.fixedtimestep", [] ( double v ) { return v > 0.0;} );
441 explicit TimeProvider ( const CommunicationType &comm, const ParameterReader ¶meter = Parameter::container() )
#define DUNE_THROW(E,...)
int sequence() const
return number of sequence, if dofmanagers memory was changed by calling some method like resize,...
Definition dofmanager.hh:1007
T min(const T &in) const
static void backupValue(const std::string &token, const T &value)
Definition persistencemanager.hh:395
static void restoreValue(const std::string &token, T &value)
Definition persistencemanager.hh:401
base class for auto persistent objects
Definition persistencemanager.hh:580
static ParameterContainer & container()
Definition io/parameter.hh:199
T getValidValue(const std::string &key, const Validator &validator) const
get optional parameter
Definition reader.hh:199
Definition mpimanager.hh:353
double timeStepEstimate() const
obtain current estimate on time step
Definition timeprovider.hh:133
TimeProviderBase(const ParameterReader ¶meter=Parameter::container())
Definition timeprovider.hh:40
TimeProviderBase(const double startTime, const ParameterReader ¶meter=Parameter::container())
Definition timeprovider.hh:53
void restore()
restore persistent object
Definition timeprovider.hh:75
virtual ~TimeProviderBase()
Definition timeprovider.hh:65
TimeProviderBase(const ThisType &)=delete
ThisType & operator=(const ThisType &)=delete
double time() const
obtain the current time
Definition timeprovider.hh:94
int timeStep() const
obtain number of the current time step
Definition timeprovider.hh:103
void provideTimeStepEstimate(const double dtEstimate)
set time step estimate to minimum of given value and internal time step estiamte
Definition timeprovider.hh:142
void initTimeStepEstimate()
Definition timeprovider.hh:189
bool timeStepValid() const
return if this time step should be used
Definition timeprovider.hh:164
double deltaT() const
obtain the size of the current time step
Definition timeprovider.hh:113
void provideTimeStepUpperBound(const double upperBound)
set upper bound for time step to minimum of given value and internal bound
Definition timeprovider.hh:151
double inverseDeltaT() const
obtain the size of the inverse of the current time step
Definition timeprovider.hh:123
void backup() const
backup persistent object
Definition timeprovider.hh:68
void invalidateTimeStep()
count current time step a not valid
Definition timeprovider.hh:158
Definition timeprovider.hh:218
virtual ~FixedStepTimeProvider()
Definition timeprovider.hh:269
ThisType & operator=(const ThisType &)=delete
FixedStepTimeProvider(const double startTime, const double timeStepSize, const CommunicationType &comm, const ParameterReader ¶meter=Parameter::container())
constructor
Definition timeprovider.hh:231
FixedStepTimeProvider(const ParameterReader ¶meter=Parameter::container())
constructor
Definition timeprovider.hh:255
const CommunicationType & comm_
Definition timeprovider.hh:298
FixedStepTimeProvider(ThisType &&)=delete
void initTimeStepEstimate()
Definition timeprovider.hh:189
FixedStepTimeProvider(const CommunicationType &comm, const ParameterReader ¶meter=Parameter::container())
Definition timeprovider.hh:262
FixedStepTimeProvider(const ThisType &)=delete
Communication CommunicationType
Definition timeprovider.hh:223
FixedStepTimeProvider(const double startTime, const double timeStepSize, const ParameterReader ¶meter=Parameter::container())
Definition timeprovider.hh:240
manager for global simulation time of time-dependent solutions
Definition timeprovider.hh:405
void init()
init dt with time step estimate
Definition timeprovider.hh:488
TimeProvider(const CommunicationType &comm, const ParameterReader ¶meter=Parameter::container())
Definition timeprovider.hh:441
void init(const double timeStep)
init dt with provided time step
Definition timeprovider.hh:498
TimeProvider(const double startTime, const double cfl, const CommunicationType &comm=MPIManager::comm())
constructor taking start time and CFL constant
Definition timeprovider.hh:469
TimeProvider(const ParameterReader ¶meter=Parameter::container())
default constructor
Definition timeprovider.hh:433
ThisType & operator=(const ThisType &)=delete
void initTimeStep(const double dtEstimate)
Definition timeprovider.hh:541
TimeProvider(const double startTime, const CommunicationType &comm=MPIManager::comm())
constructor taking start time
Definition timeprovider.hh:454
void initTimeStepEstimate()
Definition timeprovider.hh:189
TimeProvider(const ThisType &)=delete
virtual void restore()
restore persistent object
Definition timeprovider.hh:577
void restore(const double time, const int timeStep)
restore time and timestep from outside (i.e. from former calculation)
Definition timeprovider.hh:566
Communication CommunicationType
Definition timeprovider.hh:410
void next(const double timeStep)
goto next time step
Definition timeprovider.hh:523
virtual void backup() const
backup persistent object
Definition timeprovider.hh:572
double factor() const
return the global factor number
Definition timeprovider.hh:532
the same functionality as the Dune::TimeProvider.
Definition timeprovider.hh:609
GridTimeProvider(const double startTime, const double cfl, const Grid &grid)
Definition timeprovider.hh:632
GridTimeProvider(const Grid &grid)
Definition timeprovider.hh:619
Grid::Traits::Communication CommunicationType
Definition timeprovider.hh:617
void initTimeStep(const double dtEstimate)
Definition timeprovider.hh:648
virtual ~GridTimeProvider()
Definition timeprovider.hh:640
GridTimeProvider(const double startTime, const Grid &grid)
Definition timeprovider.hh:625
Definition dofmanager.hh:786
T max(T... args)
T min(T... args)
Legal Statements / Impressum | Hosted by TU Dresden & Uni Heidelberg | Generated by
1.9.8