35 #include "AbstractCardiacCell.hpp" 40 #include "HeartConfig.hpp" 44 unsigned numberOfStateVariables,
45 unsigned voltageIndex,
46 boost::shared_ptr<AbstractStimulusFunction> pIntracellularStimulus)
167 #include "LuoRudy1991.hpp" 168 #include "LuoRudy1991BackwardEuler.hpp" 171 if (dynamic_cast<CellLuoRudy1991FromCellML*>(
this) || dynamic_cast<CellLuoRudy1991FromCellMLBackwardEuler*>(
this))
200 EXCEPTION(
"Non fast-slow cell model being used in a fast-slow problem.");
205 EXCEPTION(
"Non fast-slow cell model being used in a fast-slow problem.");
210 EXCEPTION(
"Non fast-slow cell model being used in a fast-slow problem.");
215 EXCEPTION(
"Non fast-slow cell model being used in a fast-slow problem.");
220 EXCEPTION(
"Non fast-slow cell model being used in a fast-slow problem.");
225 EXCEPTION(
"Non fast-slow cell model being used in a fast-slow problem.");
virtual void SetSlowValues(const std::vector< double > &rSlowValues)
virtual unsigned GetNumSlowValues()
void SetFixedVoltage(double voltage)
void CheckForArchiveFix()
unsigned GetNumberOfParameters() const
AbstractCardiacCell(boost::shared_ptr< AbstractIvpOdeSolver > pOdeSolver, unsigned numberOfStateVariables, unsigned voltageIndex, boost::shared_ptr< AbstractStimulusFunction > pIntracellularStimulus)
#define EXCEPTION(message)
std::vector< double > & rGetStateVariables()
void ResetToInitialConditions()
double GetParameter(const std::string &rParameterName)
std::vector< double > GetStdVecStateVariables()
const std::vector< std::string > & rGetStateVariableNames() const
void SetStateVariables(const std::vector< double > &rStateVariables)
const std::vector< std::string > & rGetStateVariableNames() const
double GetParameter(unsigned index) const
unsigned GetNumberOfStateVariables() const
double GetAnyVariable(const std::string &rName, double time=0.0)
std::vector< double > GetStateVariables()
virtual void SetState(CellModelState state)
virtual ~AbstractCardiacCell()
virtual OdeSolution Compute(double tStart, double tEnd, double tSamp=0.0)
void SetAnyVariable(unsigned index, double value)
virtual void VerifyStateVariables()
void SetParameter(const std::string &rName, double value)
void SetStateVariables(const std::vector< double > &rVariables)
virtual void SolveAndUpdateState(double tStart, double tEnd)
void SetParameter(const std::string &rParameterName, double value)
unsigned GetNumberOfParameters() const
void SetStateVariable(unsigned index, double newValue)
void SetTimestep(double dt)
virtual void GetSlowValues(std::vector< double > &rSlowValues)
virtual void SetVoltageDerivativeToZero(bool clamp=true)
std::vector< double > mParameters
boost::shared_ptr< AbstractIvpOdeSolver > mpOdeSolver
void SetStateVariable(unsigned index, double newValue)
unsigned mNumberOfStateVariables
void SetVoltage(double voltage)
virtual void AdjustOutOfRangeSlowValues(std::vector< double > &rSlowValues)
unsigned GetNumberOfStateVariables() const
virtual bool IsFastOnly()
virtual void ComputeExceptVoltage(double tStart, double tEnd)
const std::vector< std::string > & rGetParameterNames() const
double GetAnyVariable(unsigned index, double time=0.0, std::vector< double > *pDerivedQuantities=NULL)