42 #include "AbstractCvodeCell.hpp"
44 #include "HeartConfig.hpp"
49 unsigned numberOfStateVariables,
50 unsigned voltageIndex,
51 boost::shared_ptr<AbstractStimulusFunction> pIntracellularStimulus)
157 return state_variables;
207 #endif // CHASTE_CVODE
void SetStateVariable(unsigned index, double newValue)
void SetVoltage(double voltage)
void SetFixedVoltage(double voltage)
void SetMaxTimestep(double maxDt)
void SetTimestep(double maxDt)
unsigned GetNumberOfParameters() const
const std::vector< std::string > & rGetStateVariableNames() const
OdeSolution Compute(double tStart, double tEnd, double tSamp=0.0)
bool mSetVoltageDerivativeToZero
void SetParameter(const std::string &rParameterName, double value)
N_Vector & rGetStateVariables()
N_Vector MakeNVector(const std::vector< double > &rSrc)
unsigned GetNumberOfParameters() const
double GetPrintingTimeStep() const
AbstractCvodeCell(boost::shared_ptr< AbstractIvpOdeSolver > pSolver, unsigned numberOfStateVariables, unsigned voltageIndex, boost::shared_ptr< AbstractStimulusFunction > pIntracellularStimulus)
void SetStateVariables(const N_Vector &rStateVariables)
const std::vector< std::string > & rGetStateVariableNames() const
double GetParameter(unsigned index) const
const double DOUBLE_UNSET
unsigned GetNumberOfStateVariables() const
virtual ~AbstractCvodeCell()
void SetStateVariables(const std::vector< double > &rVariables)
void SetVoltageDerivativeToZero(bool clamp=true)
double GetParameter(const std::string &rParameterName)
void ComputeExceptVoltage(double tStart, double tEnd)
void SetAnyVariable(unsigned index, double value)
std::vector< double > GetStdVecStateVariables()
virtual void VerifyStateVariables()
void SetParameter(const std::string &rName, double value)
virtual void SetVoltageDerivativeToZero(bool clamp=true)
unsigned GetNumberOfStateVariables() const
OdeSolution Solve(realtype tStart, realtype tEnd, realtype maxDt, realtype tSamp)
virtual void SolveAndUpdateState(double tStart, double tEnd)
void SetStateVariable(unsigned index, double newValue)
void CopyToStdVector(const VECTOR &rSrc, std::vector< double > &rDest)
static HeartConfig * Instance()
void DeleteVector(VECTOR &rVec)
double GetAnyVariable(unsigned index, double time=0.0, N_Vector *pDerivedQuantities=NULL)
double GetAnyVariable(const std::string &rName, double time=0.0)