35 #include "FitzHughNagumo1961OdeSystem.hpp"
36 #include "OdeSystemInformation.hpp"
48 boost::shared_ptr<AbstractIvpOdeSolver> pOdeSolver,
49 boost::shared_ptr<AbstractStimulusFunction> pIntracellularStimulus)
63 double membrane_V = rY[0];
64 double recovery_variable = rY[1];
69 double membrane_V_prime = 0;
73 membrane_V_prime = membrane_V*(membrane_V-
mAlpha)*(1-membrane_V)-recovery_variable+i_stim;
77 double recovery_variable_prime =
mEpsilon*(membrane_V-
mGamma*recovery_variable);
79 rDY[0] = membrane_V_prime;
80 rDY[1] = recovery_variable_prime;
87 double recovery_variable = (*pStateVariables)[1];
88 double fake_ionic_current = membrane_V*(membrane_V-
mAlpha)*(1-membrane_V)-recovery_variable;
89 return fake_ionic_current;
101 this->mVariableNames.push_back(
"V");
102 this->mVariableUnits.push_back(
"mV");
103 this->mInitialConditions.push_back(0.0);
105 this->mVariableNames.push_back(
"w");
106 this->mVariableUnits.push_back(
"");
107 this->mInitialConditions.push_back(0.0);
109 this->mInitialised =
true;
static const double mAlpha
static const double mGamma
std::vector< double > mStateVariables
bool mSetVoltageDerivativeToZero
double GetIntracellularAreaStimulus(double time)
FitzHughNagumo1961OdeSystem(boost::shared_ptr< AbstractIvpOdeSolver > pOdeSolver, boost::shared_ptr< AbstractStimulusFunction > pIntracellularStimulus)
~FitzHughNagumo1961OdeSystem()
static const double mEpsilon
void EvaluateYDerivatives(double time, const std::vector< double > &rY, std::vector< double > &rDY)
boost::shared_ptr< AbstractOdeSystemInformation > mpSystemInfo
double GetIIonic(const std::vector< double > *pStateVariables=NULL)