#include <Maleckar2009OdeSystem.hpp>
Inherits AbstractCardiacCell.
This class implements the Maleckar 2009 atrial cell model The code has been translated by PyCml. Some scale factors have been manually added to be used to simulate the effect of some drug. By default, it behaves in a 'control' situation i.e., like the file downloaded from the CellML repository. State variables are initialised as to be at steady state for 1Hz.
Definition at line 31 of file Maleckar2009OdeSystem.hpp.
Maleckar2009OdeSystem::Maleckar2009OdeSystem | ( | boost::shared_ptr< AbstractIvpOdeSolver > | pSolver, | |
boost::shared_ptr< AbstractStimulusFunction > | pIntracellularStimulus | |||
) |
Constructor
pSolver | is a pointer to the ODE solver | |
pIntracellularStimulus | is a pointer to the intracellular stimulus |
Definition at line 19 of file Maleckar2009OdeSystem.cpp.
References AbstractCardiacCell::Init(), AbstractOdeSystem::mpSystemInfo, mScaleFactorAch, mScaleFactorAZD, mScaleFactorGCaL, mScaleFactorGK1, mScaleFactorGkr, mScaleFactorGks, mScaleFactorGKur, mScaleFactorGna, mScaleFactorGNaCa, mScaleFactorGNaK, and mScaleFactorIto.
Maleckar2009OdeSystem::~Maleckar2009OdeSystem | ( | void | ) |
Destructor
Definition at line 41 of file Maleckar2009OdeSystem.cpp.
void Maleckar2009OdeSystem::EvaluateYDerivatives | ( | double | var_environment__time, | |
const std::vector< double > & | rY, | |||
std::vector< double > & | rDY | |||
) | [virtual] |
Fill in a vector representing the RHS of the TenTusscher2006 system of Odes at each time step, y' = [y1' ... yn']. Some ODE solver will call this function repeatedly to solve for y = [y1 ... yn].
time | the current time, in milliseconds | |
rY | current values of the state variables | |
rDY | to be filled in with derivatives |
Implements AbstractOdeSystem.
Definition at line 272 of file Maleckar2009OdeSystem.cpp.
References AbstractCardiacCell::GetStimulus(), mScaleFactorAch, mScaleFactorAZD, mScaleFactorGCaL, mScaleFactorGK1, mScaleFactorGkr, mScaleFactorGks, mScaleFactorGKur, mScaleFactorGna, mScaleFactorGNaCa, mScaleFactorGNaK, mScaleFactorIto, AbstractCardiacCell::mSetVoltageDerivativeToZero, and VerifyStateVariables().
double Maleckar2009OdeSystem::GetIIonic | ( | ) | [virtual] |
Returns the ionic current
Implements AbstractCardiacCell.
Definition at line 93 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorAch, mScaleFactorAZD, mScaleFactorGCaL, mScaleFactorGK1, mScaleFactorGkr, mScaleFactorGks, mScaleFactorGKur, mScaleFactorGna, mScaleFactorGNaCa, mScaleFactorGNaK, mScaleFactorIto, and AbstractOdeSystem::rGetStateVariables().
void Maleckar2009OdeSystem::serialize | ( | Archive & | archive, | |
const unsigned int | version | |||
) | [inline, private] |
Archive the member variables.
archive | ||
version |
Reimplemented from AbstractCardiacCell.
Definition at line 77 of file Maleckar2009OdeSystem.hpp.
void Maleckar2009OdeSystem::SetScaleFactorAch | ( | double | sfach | ) |
Set the scale factor for Ach, acetilcholine concentration
sfach |
Definition at line 61 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorAch.
void Maleckar2009OdeSystem::SetScaleFactorAZD | ( | double | sfazd | ) |
Set the scale factor for concentration of AZD compound (fom AstraZeneca)
sfazd |
Definition at line 85 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorAZD.
void Maleckar2009OdeSystem::SetScaleFactorGCaL | ( | double | sfgcal | ) |
Set the scale factor for L-type current
sfgcal |
Definition at line 73 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorGCaL.
void Maleckar2009OdeSystem::SetScaleFactorGK1 | ( | double | sfgk1 | ) |
Set the scale factor for the K1 current
sfgk1 |
Definition at line 81 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorGK1.
void Maleckar2009OdeSystem::SetScaleFactorGkr | ( | double | sfgkr | ) |
Set the scale factor for GKr
sfgkr |
Definition at line 53 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorGkr.
Referenced by HeartConfigRelatedCellFactory< SPACE_DIM >::CreateCellWithIntracellularStimulus().
void Maleckar2009OdeSystem::SetScaleFactorGks | ( | double | sfgks | ) |
Set the scale factor for Gks
sfgks |
Definition at line 45 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorGks.
Referenced by HeartConfigRelatedCellFactory< SPACE_DIM >::CreateCellWithIntracellularStimulus().
void Maleckar2009OdeSystem::SetScaleFactorGKur | ( | double | sfgkur | ) |
Set the scale factor for the Kur current
sfgkur |
Definition at line 77 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorGKur.
void Maleckar2009OdeSystem::SetScaleFactorGna | ( | double | sfgna | ) |
Set the scale factor for GNa
sfgna |
Definition at line 57 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorGna.
void Maleckar2009OdeSystem::SetScaleFactorGNaCa | ( | double | sfgnaca | ) |
Set the scale factor for Na/Ca exchanger
sfgnaca |
Definition at line 69 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorGNaCa.
void Maleckar2009OdeSystem::SetScaleFactorGNaK | ( | double | sfgnak | ) |
Set the scale factor for Na/K exchanger
sfgnak |
Definition at line 65 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorGNaK.
void Maleckar2009OdeSystem::SetScaleFactorIto | ( | double | sfito | ) |
Set the scale factor for Ito
sfito |
Definition at line 49 of file Maleckar2009OdeSystem.cpp.
References mScaleFactorIto.
Referenced by HeartConfigRelatedCellFactory< SPACE_DIM >::CreateCellWithIntracellularStimulus().
void Maleckar2009OdeSystem::VerifyStateVariables | ( | ) | [private, virtual] |
Range-checking on the current values of the state variables. Make sure all gating variables have are within zero and one, and all concentrations are positive.
///\ TODO : implement this!
Reimplemented from AbstractCardiacCell.
Definition at line 90 of file Maleckar2009OdeSystem.cpp.
Referenced by EvaluateYDerivatives().
friend class boost::serialization::access [friend] |
Needed for serialization.
Reimplemented from AbstractCardiacCell.
Definition at line 68 of file Maleckar2009OdeSystem.hpp.
double Maleckar2009OdeSystem::mScaleFactorAch [private] |
Scale factor for Ach, set to 1e-24 by the constructor
Definition at line 44 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorAch().
double Maleckar2009OdeSystem::mScaleFactorAZD [private] |
Scale factor for AZD, set to 0 by the constructor
Definition at line 56 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorAZD().
Scale factor for GCaL, set to 1 by the constructor
Definition at line 50 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorGCaL().
double Maleckar2009OdeSystem::mScaleFactorGK1 [private] |
Scale factor for GK1, set to 1 by the constructor
Definition at line 54 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorGK1().
double Maleckar2009OdeSystem::mScaleFactorGkr [private] |
Scale factor for Gkr, set to 1 by the constructor
Definition at line 40 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorGkr().
double Maleckar2009OdeSystem::mScaleFactorGks [private] |
Scale factor for Gks, set to 1 by the constructor
Definition at line 36 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorGks().
Scale factor for GKur, set to 1 by the constructor
Definition at line 52 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorGKur().
double Maleckar2009OdeSystem::mScaleFactorGna [private] |
Scale factor for Gna, set to 1 by the constructor
Definition at line 42 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorGna().
Scale factor for GNaCa, set to 1 by the constructor
Definition at line 48 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorGNaCa().
Scale factor for GNaK, set to 1 by the constructor
Definition at line 46 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorGNaK().
double Maleckar2009OdeSystem::mScaleFactorIto [private] |
Scale factor for Gto, set to 1 by the constructor
Definition at line 38 of file Maleckar2009OdeSystem.hpp.
Referenced by EvaluateYDerivatives(), GetIIonic(), Maleckar2009OdeSystem(), and SetScaleFactorIto().