Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
|
#include <PdeSimulationTime.hpp>
Static Public Member Functions | |
static void | SetTime (double time) |
static double | GetTime () |
static void | SetPdeTimeStepAndNextTime (double timestep, double next_time) |
static double | GetPdeTimeStep () |
static double | GetNextTime () |
static double | GetPdeTimeStepInverse () |
Static Private Attributes | |
static double | mTime |
static double | mPdeTimeStep |
static double | mNextTime |
static double | mPdeTimeStepInverse |
This isn't technically a singleton, as it's implemented with static data and methods.
Definition at line 47 of file PdeSimulationTime.hpp.
|
static |
Definition at line 74 of file PdeSimulationTime.cpp.
References mNextTime.
Referenced by OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::FollowingSolveLinearSystem(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::PrepareForSetupLinearSystem(), MonodomainPurkinjeSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), MonodomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), and AbstractExtendedBidomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem().
|
static |
Definition at line 64 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(), and ExtendedBidomainSolver< ELEM_DIM, SPACE_DIM >::SetupLinearSystem().
|
static |
Definition at line 69 of file PdeSimulationTime.cpp.
References mPdeTimeStepInverse.
Referenced by MonodomainPurkinjeCableAssembler< ELEMENT_DIM, SPACE_DIM >::ComputeCableMatrixTerm(), CellBasedParabolicPdeSolver< DIM >::ComputeMatrixTerm(), MonodomainAssembler< ELEMENT_DIM, SPACE_DIM >::ComputeMatrixTerm(), SimpleLinearParabolicSolver< ELEMENT_DIM, SPACE_DIM >::ComputeMatrixTerm(), BidomainAssembler< ELEMENT_DIM, SPACE_DIM >::ComputeMatrixTerm(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::ComputeMatrixTerm(), CellBasedParabolicPdeSolver< DIM >::ComputeVectorTerm(), SimpleLinearParabolicSolver< ELEMENT_DIM, SPACE_DIM >::ComputeVectorTerm(), LinearParabolicPdeSystemWithCoupledOdeSystemSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::ComputeVectorTerm(), BidomainSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem(), MonodomainPurkinjeSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem(), MonodomainSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem(), and OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::SetupLinearSystem().
|
static |
Definition at line 51 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(), MonodomainPurkinjeSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), MonodomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), OperatorSplittingMonodomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), AbstractBidomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem(), and AbstractExtendedBidomainSolver< ELEMENT_DIM, SPACE_DIM >::PrepareForSetupLinearSystem().
Set the current PDE timestep.
The method checks that next_time ~= mTime + timestep
timestep | the current timestep |
next_time | the next time (as given by the PDE time stepper). |
Definition at line 56 of file PdeSimulationTime.cpp.
References mNextTime, mPdeTimeStep, mPdeTimeStepInverse, and mTime.
Referenced by AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve().
|
static |
Set the current time.
time | the current time |
Definition at line 46 of file PdeSimulationTime.cpp.
References mTime.
Referenced by AbstractDynamicLinearPdeSolver< ELEMENT_DIM, SPACE_DIM, PROBLEM_DIM >::Solve().
|
staticprivate |
The next time (from the original PDE time-stepper). mNextTime ~= mTime + mPdeTimeStep. Note that this is stored explicitly because if we do the addition then the answer will be off by mTime*DBL_EPSILON.
Definition at line 92 of file PdeSimulationTime.hpp.
Referenced by GetNextTime(), and SetPdeTimeStepAndNextTime().
|
staticprivate |
The timestep used in the PDE solve.
Definition at line 85 of file PdeSimulationTime.hpp.
Referenced by GetPdeTimeStep(), and SetPdeTimeStepAndNextTime().
|
staticprivate |
1/dt.
Definition at line 95 of file PdeSimulationTime.hpp.
Referenced by GetPdeTimeStepInverse(), and SetPdeTimeStepAndNextTime().
|
staticprivate |
The current time.
Definition at line 82 of file PdeSimulationTime.hpp.
Referenced by GetTime(), SetPdeTimeStepAndNextTime(), and SetTime().