Handling time

The simulation time information is only available from the initializeRun , runStep , and finalizeRun methods. They are accessible through the openfluid::core::SimulationInfo and openfluid::core::SimulationStatus classes passed through methods parameters.
The information passed through these classes can be used to get the current time step, the value of the time step in second, the current real date and time, ...

bool MyFunc::runStep(const openfluid::base::SimulationStatus* SimStatus)
  int CurrentStep;
  openfluid::core::ScalarValue TmpValue;
  openfluid::core::Unit* SU;
  CurrentStep = SimStatus->getCurrentStep();  

The real time information is given through the openfluid::core::DateTime class.

Generated using Doxygen 1.6.3
Creative Commons License Creative Commons By-NC-ND license