#include <PdeSimulationTime.hpp>
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 |
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 39 of file PdeSimulationTime.hpp.
double PdeSimulationTime::GetPdeTimeStep | ( | ) | [static] |
Get the current PDE timestep.
Definition at line 51 of file PdeSimulationTime.cpp.
References mPdeTimeStep.
Referenced by ExtendedBidomainAssembler< ELEMENT_DIM, SPACE_DIM >::ComputeMatrixTerm(), OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::FollowingSolveLinearSystem(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::PrepareForSetupLinearSystem(), OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), MonodomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), AbstractExtendedBidomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), and ExtendedBidomainSolver< ELEM_DIM, SPACE_DIM >::SetupLinearSystem().
double PdeSimulationTime::GetPdeTimeStepInverse | ( | ) | [static] |
Get 1/dt.
Definition at line 56 of file PdeSimulationTime.cpp.
References mPdeTimeStepInverse.
Referenced by SimpleLinearParabolicSolver< ELEMENT_DIM, SPACE_DIM >::ComputeMatrixTerm(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::ComputeMatrixTerm(), MonodomainAssembler< ELEMENT_DIM, SPACE_DIM >::ComputeMatrixTerm(), BidomainAssembler< ELEMENT_DIM, SPACE_DIM >::ComputeMatrixTerm(), SimpleLinearParabolicSolver< ELEMENT_DIM, SPACE_DIM >::ComputeVectorTerm(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::ComputeVectorTerm(), OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem(), MonodomainSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem(), and BidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem().
double PdeSimulationTime::GetTime | ( | ) | [static] |
Get the current time.
Definition at line 40 of file PdeSimulationTime.cpp.
References mTime.
Referenced by OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::FollowingSolveLinearSystem(), StimulusBoundaryCondition< SPACE_DIM >::GetValue(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::PrepareForSetupLinearSystem(), OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), MonodomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), AbstractExtendedBidomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), and AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem().
void PdeSimulationTime::SetPdeTimeStep | ( | double | timestep | ) | [static] |
Set the current PDE timestep.
timestep | the current timestep |
Definition at line 45 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.
time | the current time |
Definition at line 35 of file PdeSimulationTime.cpp.
References mTime.
Referenced by AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve().
double PdeSimulationTime::mPdeTimeStep [static, private] |
The timestep used in the PDE solve.
Definition at line 72 of file PdeSimulationTime.hpp.
Referenced by GetPdeTimeStep(), and SetPdeTimeStep().
double PdeSimulationTime::mPdeTimeStepInverse [static, private] |
1/dt.
Definition at line 75 of file PdeSimulationTime.hpp.
Referenced by GetPdeTimeStepInverse(), and SetPdeTimeStep().
double PdeSimulationTime::mTime [static, private] |
The current time.
Definition at line 69 of file PdeSimulationTime.hpp.