5#include "ProblemTimeInterface.hpp"
11 class ProblemStatBase;
47 virtual std::string
const&
name()
const
61 double const&
tau() const&
Holds adapt parameters and infos about the problem.
Definition: AdaptInfo.hpp:26
Base class for ProblemInstat.
Definition: ProblemInstatBase.hpp:21
ProblemInstatBase(std::string const &name, ProblemStatBase &initialProblem)
Constructor. Stores a pointer to the provided initialProblem.
Definition: ProblemInstatBase.hpp:30
double tau_
Timestep, set from adaptInfo.timestep()
Definition: ProblemInstatBase.hpp:84
double const & tau() const &
Definition: ProblemInstatBase.hpp:61
double time_
The current time, set from adaptInfo.time()
Definition: ProblemInstatBase.hpp:81
double invTau_
1 / timestep, calculated after timestep is set
Definition: ProblemInstatBase.hpp:87
std::string name_
Name of the instationary problem.
Definition: ProblemInstatBase.hpp:75
void solveInitialProblem(AdaptInfo &adaptInfo) override
Implementation of ProblemTimeInterface::solveInitialProblem().
Definition: ProblemInstatBase.cpp:20
~ProblemInstatBase() override=default
Destructor.
virtual std::string const & name() const
Return the name of the instationary problem name_.
Definition: ProblemInstatBase.hpp:47
void setTime(AdaptInfo &adaptInfo) override
Implementation of ProblemTimeInterface::setTime().
Definition: ProblemInstatBase.cpp:12
double const & time() const
Definition: ProblemInstatBase.hpp:54
ProblemInstatBase(std::string const &name)
Constructor.
Definition: ProblemInstatBase.hpp:24
double const & invTau() const
Definition: ProblemInstatBase.hpp:68
ProblemStatBase * initialProblem_
An initialization problem solved in solveInitialProblem(). non-owning pointer.
Definition: ProblemInstatBase.hpp:78
Interface for time independent problems. Concrete problems must override all pure virtual methods....
Definition: ProblemStatBase.hpp:59
Interface for time dependent problems. Concrete problems must override all pure virtual methods.
Definition: ProblemTimeInterface.hpp:15