Base class for ProblemInstat. More...
#include <ProblemInstatBase.hpp>
Inherits ProblemTimeInterface.
Inherited by ProblemInstat< Traits >.
Public Member Functions | |
ProblemInstatBase (std::string const &name) | |
Constructor. | |
ProblemInstatBase (std::string const &name, ProblemStatBase &initialProblem) | |
Constructor. Stores a pointer to the provided initialProblem. | |
~ProblemInstatBase () override=default | |
Destructor. | |
void | setTime (AdaptInfo &adaptInfo) override |
Implementation of ProblemTimeInterface::setTime(). More... | |
void | solveInitialProblem (AdaptInfo &adaptInfo) override |
Implementation of ProblemTimeInterface::solveInitialProblem(). More... | |
virtual std::string const & | name () const |
Return the name of the instationary problem name_. | |
double const & | time () const |
double const & | tau () const & |
double const & | invTau () const |
Public Member Functions inherited from ProblemTimeInterface | |
virtual void | initTimeInterface () |
Called at the beginning of the adaption loop before any other call. | |
virtual void | setTime (AdaptInfo &adaptInfo)=0 |
Executes all needed operations when the simulation time changes. More... | |
virtual void | initTimestep (AdaptInfo &adaptInfo)=0 |
Called at the beginning of each timestep. More... | |
virtual void | closeTimestep (AdaptInfo &adaptInfo)=0 |
Called at the end of each timestep. More... | |
virtual void | solveInitialProblem (AdaptInfo &adaptInfo)=0 |
Solves the initial problem. More... | |
virtual void | transferInitialSolution (AdaptInfo &adaptInfo)=0 |
Transfer the initial problem. More... | |
Protected Attributes | |
std::string | name_ |
Name of the instationary problem. | |
ProblemStatBase * | initialProblem_ = nullptr |
An initialization problem solved in solveInitialProblem(). non-owning pointer. | |
double | time_ = 0.0 |
The current time, set from adaptInfo.time() | |
double | tau_ = 1.0 |
Timestep, set from adaptInfo.timestep() | |
double | invTau_ = 1.0 |
1 / timestep, calculated after timestep is set | |
Base class for ProblemInstat.
|
inline |
Return reference to current simulation 1.0/timestep invTau_ set in setTime from 1.0 / AdaptInfo::timestep()
.
References ProblemInstatBase::invTau_.
|
overridevirtual |
Implementation of ProblemTimeInterface::setTime().
Implements ProblemTimeInterface.
References ProblemInstatBase::invTau_, ProblemInstatBase::tau_, AdaptInfo::time(), ProblemInstatBase::time_, and AdaptInfo::timestep().
|
overridevirtual |
Implementation of ProblemTimeInterface::solveInitialProblem().
Implements ProblemTimeInterface.
References AdaptStationary::adapt(), ProblemInstatBase::initialProblem_, and ProblemInstatBase::name_.
|
inline |
Return reference to current simulation timestep tau_ set in setTime from AdaptInfo::timestep()
.
References ProblemInstatBase::tau_.
|
inline |
Return reference to current simulation time time_ set in setTime from AdaptInfo::time()
.
References ProblemInstatBase::time_.