CEPS
24.01
Cardiac ElectroPhysiology Simulator
|
Class managing computations from potential to outputs.
Not only this class outputs the solution vector (one scalar field per component), it also handles the computation of activation times.
Activation times are defined by Depolarization times are defined by where is a depolarization threshold than can be set multiple times.
AP peaks are detected as the first time the AP decreases after activation time.
Definition at line 59 of file ActivationTracker.hpp.
#include <ActivationTracker.hpp>
Public Member Functions | |
ActivationTracker (CardiacSolver *solver) | |
Constructor. More... | |
~ActivationTracker () | |
Destructor. More... | |
void | update (CepsInt iter, CepsReal time, DHVecPtr solution, DHVecPtr prevSolution) |
Writes the solution (optionnally currents) every m_nbIterSnapshot steps only. Also updates activation times. More... | |
void | writeActivationMap () |
Writes activation times and probe points data. More... | |
CepsBool | allPointsHaveBeenActivated () const |
Tells if all points have seen AP start (checked with activation threshold) More... | |
CepsBool | allPointsHaveBeenRepolarized () const |
Tells if all points have seen AP end (checked with APD percentage) More... | |
CepsString | getByeByeMessage () const |
Message to be displayed at the end of computation. More... | |
CepsVector< CepsReal > & | getActivatedVolume () |
Returns reference to data, so it can be linked to a TimeWriter. More... | |
Public Member Functions inherited from CepsObject | |
CepsObject ()=default | |
default constructor More... | |
CepsObject (const CepsObject &)=default | |
Copy constructor. More... | |
virtual | ~CepsObject ()=default |
Destructor. More... | |
CepsObject & | operator= (const CepsObject &)=default |
Assignment operator. More... | |
CepsObject * | toBaseObject () |
Returns a pointer to CepsObject class. More... | |
const CepsObject * | toBaseObject () const |
Returns a pointer to CepsObject class, const version. More... | |
Profiler * | getProfiler () const |
Access to profiler. More... | |
Protected Member Functions | |
void | setupWithParameters (InputParameters *params) |
Initializes attributes from text input. More... | |
void | initializeActivationMap () |
Allocates arrays for activation detection. More... | |
CepsBool | allSeen (const CepsMap< CepsUnknownIndex, CepsSet< CepsDofGlobalIndex >> &) const |
Check not nans for given array. More... | |
Static Protected Attributes | |
static constexpr CepsUInt | _threshold = 0 |
Index in activation data. More... | |
static constexpr CepsUInt | _apdpctg = 1 |
Index in activation data. More... | |
static constexpr CepsUInt | _minV4Peak = 2 |
Index in activation data. More... | |
Static Protected Attributes inherited from CepsObject | |
static Profiler | m_profiler |
The same profiler for each big object. More... | |
ActivationTracker::ActivationTracker | ( | CardiacSolver * | solver | ) |
Constructor.
[in] | solver | link to CardiacSolver structure |
Definition at line 36 of file ActivationTracker.cpp.
ActivationTracker::~ActivationTracker | ( | ) |
Destructor.
Definition at line 67 of file ActivationTracker.cpp.
CepsBool ActivationTracker::allPointsHaveBeenActivated | ( | ) | const |
Tells if all points have seen AP start (checked with activation threshold)
Definition at line 231 of file ActivationTracker.cpp.
CepsBool ActivationTracker::allPointsHaveBeenRepolarized | ( | ) | const |
Tells if all points have seen AP end (checked with APD percentage)
Definition at line 239 of file ActivationTracker.cpp.
|
protected |
Check not nans for given array.
Definition at line 357 of file ActivationTracker.cpp.
CepsVector< CepsReal > & ActivationTracker::getActivatedVolume | ( | ) |
Returns reference to data, so it can be linked to a TimeWriter.
Definition at line 253 of file ActivationTracker.cpp.
CepsString ActivationTracker::getByeByeMessage | ( | ) | const |
Message to be displayed at the end of computation.
Definition at line 247 of file ActivationTracker.cpp.
|
protected |
Allocates arrays for activation detection.
Definition at line 286 of file ActivationTracker.cpp.
|
protected |
Initializes attributes from text input.
Definition at line 259 of file ActivationTracker.cpp.
void ActivationTracker::update | ( | CepsInt | iter, |
CepsReal | time, | ||
DHVecPtr | solution, | ||
DHVecPtr | prevSolution | ||
) |
Writes the solution (optionnally currents) every m_nbIterSnapshot steps only. Also updates activation times.
Definition at line 75 of file ActivationTracker.cpp.
void ActivationTracker::writeActivationMap | ( | ) |
Writes activation times and probe points data.
Definition at line 193 of file ActivationTracker.cpp.
|
staticconstexprprotected |
Index in activation data.
Definition at line 121 of file ActivationTracker.hpp.
|
staticconstexprprotected |
Index in activation data.
Definition at line 122 of file ActivationTracker.hpp.
|
staticconstexprprotected |
Index in activation data.
Definition at line 120 of file ActivationTracker.hpp.
|
protected |
1/0 status of point (above/below threshold)
Definition at line 125 of file ActivationTracker.hpp.
|
protected |
Size of tissue that is above activation threshold.
Definition at line 137 of file ActivationTracker.hpp.
|
protected |
Flag map.
Definition at line 131 of file ActivationTracker.hpp.
|
protected |
Flag map.
Definition at line 132 of file ActivationTracker.hpp.
|
protected |
AP analysis.
Definition at line 119 of file ActivationTracker.hpp.
|
protected |
Values of activation times at each point.
Definition at line 124 of file ActivationTracker.hpp.
|
protected |
length of AP (?)
Definition at line 129 of file ActivationTracker.hpp.
|
protected |
length of AP to get to 50% depol
Definition at line 128 of file ActivationTracker.hpp.
|
protected |
Flag map.
Definition at line 135 of file ActivationTracker.hpp.
|
protected |
Flag map.
Definition at line 134 of file ActivationTracker.hpp.
|
protected |
Flag map.
Definition at line 133 of file ActivationTracker.hpp.
|
protected |
Definition at line 114 of file ActivationTracker.hpp.
|
protected |
Output periodicity.
Definition at line 117 of file ActivationTracker.hpp.
|
protected |
Number of dofs in tissue for each activation time data.
Definition at line 140 of file ActivationTracker.hpp.
|
protected |
Times of max potential.
Definition at line 127 of file ActivationTracker.hpp.
|
protected |
Value of max potential.
Definition at line 126 of file ActivationTracker.hpp.
|
protected |
Link to problem structure.
Definition at line 113 of file ActivationTracker.hpp.
|
protected |
Link to the solver's time writer, if needed...
Definition at line 115 of file ActivationTracker.hpp.
|
protected |
Reference volume.
Definition at line 138 of file ActivationTracker.hpp.