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