49 #include <lifev/core/filter/GetPot.hpp> 50 #include <lifev/core/LifeV.hpp> 76 TimeData (
const GetPot& dataFile,
const std::string& section =
"time_discretization" );
98 void setup (
const GetPot& dfile,
const std::string& section =
"time_discretization" );
138 void showMe ( std::ostream& output = std::cout )
const;
const Real & time() const
Get the present time.
void setTimeStep(const Real &timeStep)
Set the initial time step.
Real M_periodTime
period time
TimeData(const TimeData &TimeData)
Copy constructor.
void setTime(const Real &time)
Set the present time of the simulation.
Real M_initialTime
initial time
int32_type Int
Generic integer data.
bool isLastTimeStep()
Return if it is the last time step.
void updateInverseJacobian(const UInt &iQuadPt)
virtual ~TimeData()
Virtual destructor.
const Real & initialTime() const
Get the initial time step.
bool isFirstTimeStep()
Return if it is the initial time step.
Real leftTime() const
Get the time left.
void setTimeStepNumber(const UInt &timeStepNumber)
Set the time step number.
const Real & timeStep() const
Get the time step used for advancing.
UInt M_timeStepNumber
iteration number
const Real & periodTime() const
Get the period.
const Real & endTime() const
Get the final time step.
void updateTime()
Update the time by a timestep.
double Real
Generic real data.
void showMe(std::ostream &output=std::cout) const
Display general information about the content of the class.
void setEndTime(const Real &endTime)
Set the final time step.
Real elapsedTime() const
Get the elapsed time.
Real inCycleTime() const
Get the present time shifted inside the first cycle (i.e.
Real round(const Real &n, const Int &decimal=10) const
TimeData()
Empty Constructor.
bool canAdvance()
Return if we can make a new timestep.
Real previousTime() const
Get the previous time.
void setInitialTime(const Real &initialTime)
Set the initial time step.
const UInt & timeStepNumber() const
Get the number of time step performed.
uint32_type UInt
generic unsigned integer (used mainly for addressing)
Real nextTime() const
Get the next time.
TimeData - Class for handling temporal discretization.