Chaste Release::3.1
PdeSimulationTime Class Reference

#include <PdeSimulationTime.hpp>

Collaboration diagram for PdeSimulationTime:

List of all members.

Static Public Member Functions

static void SetTime (double time)
static double GetTime ()
static void SetPdeTimeStep (double timestep)
static double GetPdeTimeStep ()
static double GetPdeTimeStepInverse ()

Static Private Attributes

static double mTime
static double mPdeTimeStep
static double mPdeTimeStepInverse

Detailed Description

A small convenience class providing a consistent global time to the PDE solver classes.

This isn't technically a singleton, as it's implemented with static data and methods.

Definition at line 46 of file PdeSimulationTime.hpp.


Member Function Documentation

void PdeSimulationTime::SetPdeTimeStep ( double  timestep) [static]

Set the current PDE timestep.

Parameters:
timestepthe current timestep

Definition at line 52 of file PdeSimulationTime.cpp.

References mPdeTimeStep, and mPdeTimeStepInverse.

Referenced by AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve().

void PdeSimulationTime::SetTime ( double  time) [static]

Set the current time.

Parameters:
timethe current time

Definition at line 42 of file PdeSimulationTime.cpp.

References mTime.

Referenced by AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve().


Member Data Documentation

The timestep used in the PDE solve.

Definition at line 79 of file PdeSimulationTime.hpp.

Referenced by GetPdeTimeStep(), and SetPdeTimeStep().

1/dt.

Definition at line 82 of file PdeSimulationTime.hpp.

Referenced by GetPdeTimeStepInverse(), and SetPdeTimeStep().

double PdeSimulationTime::mTime [static, private]

The current time.

Definition at line 76 of file PdeSimulationTime.hpp.

Referenced by GetTime(), and SetTime().


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