#include <OdeSolution.hpp>
Public Member Functions | |
unsigned | GetNumberOfTimeSteps (void) |
void | SetNumberOfTimeSteps (unsigned num_timesteps) |
std::vector< double > | GetVariableAtIndex (unsigned index) |
std::vector< double > & | rGetTimes () |
std::vector< std::vector < double > > & | rGetSolutions () |
void | WriteToFile (std::string directoryName, std::string baseResultsFilename, AbstractOdeSystem *pOdeSystem, std::string timeUnits, unsigned stepPerRow=1, bool cleanDirectory=true) |
Private Attributes | |
unsigned | mNumberOfTimeSteps |
std::vector< double > | mTimes |
std::vector< std::vector < double > > | mSolutions |
Definition at line 44 of file OdeSolution.hpp.
void OdeSolution::WriteToFile | ( | std::string | directoryName, | |
std::string | baseResultsFilename, | |||
AbstractOdeSystem * | pOdeSystem, | |||
std::string | timeUnits, | |||
unsigned | stepPerRow = 1 , |
|||
bool | cleanDirectory = true | |||
) | [inline] |
Write the data to a file.
pOdeSystem | The ode system solved to obtain these results (needed for variable names and units). |
Definition at line 93 of file OdeSolution.hpp.
References mSolutions, mTimes, AbstractOdeSystem::rGetVariableNames(), and AbstractOdeSystem::rGetVariableUnits().
unsigned OdeSolution::mNumberOfTimeSteps [private] |
Variable for the number of timesteps
Definition at line 47 of file OdeSolution.hpp.
std::vector<double> OdeSolution::mTimes [private] |
A vector of times at each timestep.
Definition at line 49 of file OdeSolution.hpp.
Referenced by WriteToFile().
std::vector<std::vector<double> > OdeSolution::mSolutions [private] |
Solutions for each variable at each timestep.
Definition at line 50 of file OdeSolution.hpp.
Referenced by WriteToFile().