Chaste Commit::ca8ccdedf819b6e02855bc0e8e6f50bdecbc5208
SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM > Class Template Reference

#include <SpaceConvergenceTester.hpp>

+ Inheritance diagram for SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >:
+ Collaboration diagram for SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >:

Public Member Functions

void SetInitialConvergenceParameters ()
 
void UpdateConvergenceParameters ()
 
bool GiveUpConvergence ()
 
double Abscissa ()
 
int GetMeshNum ()
 
double GetSpaceStep ()
 
- Public Member Functions inherited from AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >
void Converge (std::string nameOfTest)
 
void DisplayRun ()
 
virtual void PopulateStandardResult (std::vector< double > &result, std::vector< double > &times)
 
bool IsConverged ()
 
void SetMeshWidth (double meshWidth)
 

Additional Inherited Members

- Public Attributes inherited from AbstractUntemplatedConvergenceTester
double OdeTimeStep
 
double PdeTimeStep
 
unsigned MeshNum
 
double RelativeConvergenceCriterion
 
double LastDifference
 
double Apd90FirstQn
 
double Apd90ThirdQn
 
double ConductionVelocity
 
bool PopulatedResult
 
bool FixedResult
 
double AbsoluteStimulus
 
bool SimulateFullActionPotential
 
bool Converged
 
StimulusType Stimulus
 
double NeumannStimulus
 
- Protected Attributes inherited from AbstractUntemplatedConvergenceTester
double mMeshWidth
 

Detailed Description

template<class CELL, class CARDIAC_PROBLEM, unsigned DIM, unsigned PROBLEM_DIM>
class SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >

Run the same simulation on cuboid meshes at progressively finer scales until some convergence criterion is met.

Definition at line 48 of file SpaceConvergenceTester.hpp.

Member Function Documentation

◆ Abscissa()

template<class CELL , class CARDIAC_PROBLEM , unsigned DIM, unsigned PROBLEM_DIM>
double SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::Abscissa ( )
inlinevirtual

◆ GetMeshNum()

template<class CELL , class CARDIAC_PROBLEM , unsigned DIM, unsigned PROBLEM_DIM>
int SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::GetMeshNum ( )
inline
Returns
the number of the current mesh (cast to int).

Definition at line 108 of file SpaceConvergenceTester.hpp.

References AbstractUntemplatedConvergenceTester::MeshNum.

◆ GetSpaceStep()

template<class CELL , class CARDIAC_PROBLEM , unsigned DIM, unsigned PROBLEM_DIM>
double SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::GetSpaceStep ( )
inline
Returns
the space step in the Cartesian directions

Definition at line 115 of file SpaceConvergenceTester.hpp.

References AbstractUntemplatedConvergenceTester::MeshNum, and AbstractUntemplatedConvergenceTester::mMeshWidth.

◆ GiveUpConvergence()

template<class CELL , class CARDIAC_PROBLEM , unsigned DIM, unsigned PROBLEM_DIM>
bool SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::GiveUpConvergence ( )
inlinevirtual
Returns
true to give up convergence when the number of unknowns becomes too high (either from memory or CPU perspective).

Implements AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >.

Definition at line 71 of file SpaceConvergenceTester.hpp.

References AbstractUntemplatedConvergenceTester::MeshNum, and NEVER_REACHED.

◆ SetInitialConvergenceParameters()

template<class CELL , class CARDIAC_PROBLEM , unsigned DIM, unsigned PROBLEM_DIM>
void SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::SetInitialConvergenceParameters ( )
inlinevirtual

The intial mesh is mesh 0 which has a space-step of 0.05cm on a 0.2cm mesh

Implements AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >.

Definition at line 54 of file SpaceConvergenceTester.hpp.

References AbstractUntemplatedConvergenceTester::MeshNum.

◆ UpdateConvergenceParameters()

template<class CELL , class CARDIAC_PROBLEM , unsigned DIM, unsigned PROBLEM_DIM>
void SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >::UpdateConvergenceParameters ( )
inlinevirtual

Each new run has an increased the mesh number. This halves the space step and increased the complexity of the simulation by 2^DIM

Implements AbstractConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >.

Definition at line 62 of file SpaceConvergenceTester.hpp.

References AbstractUntemplatedConvergenceTester::MeshNum.


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