OdeSolution Class Reference

#include <OdeSolution.hpp>

Collaboration diagram for OdeSolution:

Collaboration graph
[legend]

List of all members.

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


Detailed Description

OdeSolution. Sets us the class of ODE solutions, including a function that allows us to save the output data to file.

Definition at line 44 of file OdeSolution.hpp.


Member Function Documentation

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.

Parameters:
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().


Member Data Documentation

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().


The documentation for this class was generated from the following file:

Generated on Wed Mar 18 12:52:46 2009 for Chaste by  doxygen 1.5.5