Chaste
Release::2017.1
|
#include <AbstractConvergenceTester.hpp>
Public Member Functions | |
void | Converge (std::string nameOfTest) |
void | DisplayRun () |
virtual void | SetInitialConvergenceParameters ()=0 |
virtual void | UpdateConvergenceParameters ()=0 |
virtual bool | GiveUpConvergence ()=0 |
virtual double | Abscissa ()=0 |
virtual void | PopulateStandardResult (std::vector< double > &result, std::vector< double > ×) |
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 |
AbstractConvergenceTester Run convergence for a particular cell type, mono/bidomain and dimension
Definition at line 235 of file AbstractConvergenceTester.hpp.
|
pure virtual |
Implemented in SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, OdePdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, PdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, and OdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >.
|
inlinevirtual |
Run the same test at different levels of refinement until some convergence criterion is met.
nameOfTest | The name of the convergence test (typically the name in the suite) for use in naming files. |
Implements AbstractUntemplatedConvergenceTester.
Definition at line 243 of file AbstractConvergenceTester.hpp.
References PetscTools::AmMaster(), PropagationPropertiesCalculator::CalculateActionPotentialDuration(), PropagationPropertiesCalculator::CalculateConductionVelocity(), CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::Construct(), OutputFileHandler::FindFile(), FileFinder::GetAbsolutePath(), Timer::GetElapsedTime(), Exception::GetMessage(), CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::GetNumElements(), Hdf5DataReader::GetUnlimitedDimensionValues(), Hdf5DataReader::GetVariableOverTime(), CuboidMeshConstructor< ELEMENT_DIM, SPACE_DIM >::GetWidth(), HeartConfig::Instance(), RampedQuarterStimulusCellFactory< CELL, DIM >::mMeshWidth, NEVER_REACHED, OutputFileHandler::OpenOutputFile(), Timer::Reset(), HeartConfig::SetOdePdeAndPrintingTimeSteps(), HeartConfig::SetOutputDirectory(), HeartConfig::SetOutputFilenamePrefix(), HeartConfig::SetSimulationDuration(), and SmallPow().
|
inline |
Show convergence details relevant to this run in std::cout
Definition at line 628 of file AbstractConvergenceTester.hpp.
References PetscTools::AmMaster(), HeartConfig::GetAbsoluteTolerance(), HeartConfig::GetRelativeTolerance(), HeartConfig::GetUseAbsoluteTolerance(), HeartConfig::Instance(), RampedQuarterStimulusCellFactory< CELL, DIM >::mMeshWidth, and SmallPow().
|
pure virtual |
Implemented in SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, PdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, OdePdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, and OdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >.
|
inline |
Definition at line 702 of file AbstractConvergenceTester.hpp.
|
inlinevirtual |
This is currently used as stub for convergence testers which need to converge to a known standardised result (the StimulusConvergence tester in projects/jmpf).
result | a standard vector to be sized and filled with V_m values by this method (in subclass) |
times | a standard vector to be sized and filled with times values by this method (in subclass) |
Definition at line 692 of file AbstractConvergenceTester.hpp.
|
pure virtual |
Initial values of parameters at the beginning of the convergence test (the parameter to be varied will be larger than the expected value at convergence)
Implemented in SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, PdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, OdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, and OdePdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >.
|
inline |
meshWidth | set the dimension of the cuboid mesh (default value is 0.2cm) |
Definition at line 710 of file AbstractConvergenceTester.hpp.
References RampedQuarterStimulusCellFactory< CELL, DIM >::mMeshWidth.
|
pure virtual |
Update the parameter which is being varied
Implemented in SpaceConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, PdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, OdePdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >, and OdeConvergenceTester< CELL, CARDIAC_PROBLEM, DIM, PROBLEM_DIM >.