37 #ifndef _ABSTRACTCVODECELL_HPP_ 38 #define _ABSTRACTCVODECELL_HPP_ 43 #include <boost/serialization/base_object.hpp> 44 #include <boost/shared_ptr.hpp> 45 #include <boost/serialization/shared_ptr.hpp> 48 #include "AbstractOdeSystemInformation.hpp" 49 #include "AbstractStimulusFunction.hpp" 50 #include "AbstractIvpOdeSolver.hpp" 51 #include "AbstractCvodeSystem.hpp" 52 #include "AbstractCardiacCellInterface.hpp" 89 template<
class Archive>
90 void serialize(Archive & archive,
const unsigned int version)
93 archive & boost::serialization::base_object<AbstractCvodeSystem>(*this);
94 archive & boost::serialization::base_object<AbstractCardiacCellInterface>(*this);
114 unsigned numberOfStateVariables,
115 unsigned voltageIndex,
116 boost::shared_ptr<AbstractStimulusFunction> pIntracellularStimulus);
331 void SetParameter(
const std::string& rParameterName,
double value);
336 #endif // _ABSTRACTCVODECELL_HPP_ 337 #endif // CHASTE_CVODE void SetStateVariable(unsigned index, double newValue)
void SetVoltage(double voltage)
friend class boost::serialization::access
void SetMaxTimestep(double maxDt)
void SetTimestep(double maxDt)
const std::vector< std::string > & rGetStateVariableNames() const
OdeSolution Compute(double tStart, double tEnd, double tSamp=0.0)
#define CLASS_IS_ABSTRACT(T)
void SetParameter(const std::string &rParameterName, double value)
unsigned GetNumberOfParameters() const
AbstractCvodeCell(boost::shared_ptr< AbstractIvpOdeSolver > pSolver, unsigned numberOfStateVariables, unsigned voltageIndex, boost::shared_ptr< AbstractStimulusFunction > pIntracellularStimulus)
void serialize(Archive &archive, const unsigned int version)
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)
std::vector< double > GetStdVecStateVariables()
unsigned GetNumberOfStateVariables() const
virtual void SolveAndUpdateState(double tStart, double tEnd)
double GetAnyVariable(const std::string &rName, double time=0.0)