Skip to content
Snippets Groups Projects
Commit d1fdfd42 authored by Klaus Mosthaf's avatar Klaus Mosthaf
Browse files

Corrected and slightly improved docu of the time manager.

Reviewed by Martin

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@11589 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent e362a1a2
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
*****************************************************************************/ *****************************************************************************/
/*! /*!
* \file * \file
* \brief Simplify the handling of time dependent problems * \brief Manages the handling of time dependent problems
*/ */
#ifndef DUMUX_TIME_MANAGER_HH #ifndef DUMUX_TIME_MANAGER_HH
#define DUMUX_TIME_MANAGER_HH #define DUMUX_TIME_MANAGER_HH
...@@ -45,19 +45,23 @@ NEW_PROP_TAG(TimeManagerMaxTimeStepSize); ...@@ -45,19 +45,23 @@ NEW_PROP_TAG(TimeManagerMaxTimeStepSize);
/*! /*!
* \ingroup SimControl * \ingroup SimControl
* \brief Simplify the handling of time dependent problems. * \brief Manages the handling of time dependent problems.
* *
* This class manages a sequence of "episodes" which determine the * This class facilitates the time management of the simulation.
* boundary conditions of a problem. This approach is handy if the * It doesn't manage any user data, but keeps track of what the
* problem is not static, i.e. that boundary conditions change * current time, time step size and "episode" of the
* over time. * simulation is. It triggers the initialization of the problem and
* is responsible for the time control of a simulation run.
* *
* This class is a low level way to simplify time management for the * The time manager allows to specify a sequence of "episodes" which
* simulation. It doesn't manage any user data, but only keeps track * determine the boundary conditions of a problem. This approach
* about what the current "episode" of the simulation is. An episode * is handy if the problem is not static, i.e. the boundary
* is a span of simulated time at which the problem behaves in a * conditions change over time.
* specific way. It is characerized by the (simulation) time it *
* starts, its length and a consecutive index starting at 0. * An episode is a span of simulated time in which
* the problem behaves in a specific way. It is characterized by
* the (simulation) time it starts, its length and a consecutive
* index starting at 0.
*/ */
template <class TypeTag> template <class TypeTag>
class TimeManager class TimeManager
...@@ -198,7 +202,7 @@ public: ...@@ -198,7 +202,7 @@ public:
/*! /*!
* \brief Returns the suggested time step length \f$\mathrm{[s]}\f$ so that we * \brief Returns the suggested time step length \f$\mathrm{[s]}\f$ so that we
* don't miss the beginning of the next episode or cross * don't miss the beginning of the next episode or cross
* the end of the simlation. * the end of the simulation.
*/ */
Scalar timeStepSize() const Scalar timeStepSize() const
{ return timeStepSize_; } { return timeStepSize_; }
...@@ -361,7 +365,7 @@ public: ...@@ -361,7 +365,7 @@ public:
/*! /*!
* \brief Runs the simulation using a given problem class. * \brief Runs the simulation using a given problem class.
* *
* This method makes sure that time steps sizes are aligned to * This method makes sure that time step sizes are aligned to
* episode boundaries, amongst other stuff. * episode boundaries, amongst other stuff.
*/ */
void run() void run()
...@@ -421,8 +425,8 @@ public: ...@@ -421,8 +425,8 @@ public:
} }
else else
{ {
// notify the problem that the timestep is done and ask it // notify the problem that the time step is done and ask it
// for a suggestion for the next timestep size // for a suggestion for the next time step size
// set the time step size for the next step // set the time step size for the next step
previousTimeStepSize_ = timeStepSize(); previousTimeStepSize_ = timeStepSize();
setTimeStepSize(problem_->nextTimeStepSize(dt)); setTimeStepSize(problem_->nextTimeStepSize(dt));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment