00001 /* 00002 00003 Copyright (C) University of Oxford, 2005-2010 00004 00005 University of Oxford means the Chancellor, Masters and Scholars of the 00006 University of Oxford, having an administrative office at Wellington 00007 Square, Oxford OX1 2JD, UK. 00008 00009 This file is part of Chaste. 00010 00011 Chaste is free software: you can redistribute it and/or modify it 00012 under the terms of the GNU Lesser General Public License as published 00013 by the Free Software Foundation, either version 2.1 of the License, or 00014 (at your option) any later version. 00015 00016 Chaste is distributed in the hope that it will be useful, but WITHOUT 00017 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 00018 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 00019 License for more details. The offer of Chaste under the terms of the 00020 License is subject to the License being interpreted in accordance with 00021 English Law and subject to any action against the University of Oxford 00022 being under the jurisdiction of the English Courts. 00023 00024 You should have received a copy of the GNU Lesser General Public License 00025 along with Chaste. If not, see <http://www.gnu.org/licenses/>. 00026 00027 */ 00028 #ifndef _DIFRANCESCONOBLE1985ODESYSTEM_HPP_ 00029 #define _DIFRANCESCONOBLE1985ODESYSTEM_HPP_ 00030 00031 #include "AbstractCardiacCell.hpp" 00032 #include "AbstractStimulusFunction.hpp" 00033 #include <vector> 00034 00039 class DiFrancescoNoble1985OdeSystem : public AbstractCardiacCell 00040 { 00041 private: 00042 00043 /* Constants for the DifrancescoNoble1985 model */ 00044 static const double membrane_C; 00045 static const double radius; 00046 static const double length; 00047 static const double V_e_ratio; 00048 static const double R; 00049 static const double T; 00050 static const double F; 00052 // conductances and the like 00053 static const double g_fna; 00054 static const double g_fk; 00055 static const double g_na_b; 00056 static const double g_ca_b; 00057 static const double g_na; 00058 static const double g_k1; 00059 static const double g_to; 00060 static const double I_P; 00061 static const double i_kmax; 00062 static const double k_naca; 00063 static const double P_si; 00064 //concentrations 00065 static const double Nao; 00066 static const double Cao; 00067 static const double Kb; 00068 static const double Kmf; 00069 static const double Km1; 00070 static const double Kmto; 00071 static const double KmK; 00072 static const double KmNa; 00073 static const double Kmf2; 00074 static const double KmCa; 00075 static const double Km_Ca; 00076 //others 00077 static const double n_naca; 00078 static const double gamma; 00079 static const double d_naca; 00080 static const double rCa; 00081 static const double tau_up; 00082 static const double tau_rep; 00083 static const double tau_rel; 00084 static const double Ca_up_max; 00085 static const double pf; 00086 static const double Vecs; 00089 double Vi; 00091 double Vup; 00093 double Vrel; 00095 double Ve; 00097 double Vcell; 00099 double RToNF; 00105 void VerifyStateVariables(); 00106 00107 public: 00114 DiFrancescoNoble1985OdeSystem(boost::shared_ptr<AbstractIvpOdeSolver> pSolver, 00115 boost::shared_ptr<AbstractStimulusFunction> pIntracellularStimulus); 00116 00120 ~DiFrancescoNoble1985OdeSystem(); 00121 00131 void EvaluateYDerivatives(double time, const std::vector<double> &rY, std::vector<double> &rDY); 00132 00138 double GetIIonic(); 00139 00140 }; 00141 00142 #endif // _DIFRANCESCONOBLE_HPP_