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 00029 #ifndef _TENTUSSCHER2006ODESYSTEM_HPP_ 00030 #define _TENTUSSCHER2006ODESYSTEM_HPP_ 00031 00032 #include "AbstractCardiacCell.hpp" 00033 #include "AbstractStimulusFunction.hpp" 00034 #include <vector> 00035 00039 class TenTusscher2006OdeSystem : public AbstractCardiacCell 00040 { 00041 private: 00042 00043 00044 double mScaleFactorGks; 00045 double mScaleFactorIto; 00046 double mScaleFactorGkr; 00048 00049 //Constants for the TenTusscher2006 model, values for epicardial cell. 00051 static const double L_type_Ca_current_g_CaL; 00052 static const double calcium_background_current_g_bca; 00053 static const double calcium_dynamics_Buf_c; 00054 static const double calcium_dynamics_Buf_sr; 00055 static const double calcium_dynamics_Buf_ss; 00056 static const double calcium_dynamics_Ca_o; 00057 static const double calcium_dynamics_EC; 00058 static const double calcium_dynamics_K_buf_c; 00059 static const double calcium_dynamics_K_buf_sr; 00060 static const double calcium_dynamics_K_buf_ss; 00061 static const double calcium_dynamics_K_up; 00062 static const double calcium_dynamics_V_leak; 00063 static const double calcium_dynamics_V_rel; 00064 static const double calcium_dynamics_V_sr; 00065 static const double calcium_dynamics_V_ss; 00066 static const double calcium_dynamics_V_xfer; 00067 static const double calcium_dynamics_Vmax_up; 00068 static const double calcium_dynamics_k1_prime; 00069 static const double calcium_dynamics_k2_prime; 00070 static const double calcium_dynamics_k3; 00071 static const double calcium_dynamics_k4; 00072 static const double calcium_dynamics_max_sr; 00073 static const double calcium_dynamics_min_sr; 00074 static const double calcium_pump_current_K_pCa; 00075 static const double calcium_pump_current_g_pCa; 00076 static const double fast_sodium_current_g_Na; 00077 static const double inward_rectifier_potassium_current_g_K1; 00078 static const double membrane_Cm; 00079 static const double membrane_F; 00080 static const double membrane_R; 00081 static const double membrane_T; 00082 static const double membrane_V_c; 00083 static const double potassium_dynamics_K_o; 00084 static const double potassium_pump_current_g_pK; 00085 static const double rapid_time_dependent_potassium_current_g_Kr; 00086 static const double reversal_potentials_P_kna; 00087 static const double slow_time_dependent_potassium_current_g_Ks; 00088 static const double sodium_background_current_g_bna; 00089 static const double sodium_calcium_exchanger_current_K_NaCa; 00090 static const double sodium_calcium_exchanger_current_K_sat; 00091 static const double sodium_calcium_exchanger_current_Km_Ca; 00092 static const double sodium_calcium_exchanger_current_Km_Nai; 00093 static const double sodium_calcium_exchanger_current_alpha; 00094 static const double sodium_calcium_exchanger_current_gamma; 00095 static const double sodium_dynamics_Na_o; 00096 static const double sodium_potassium_pump_current_K_mNa; 00097 static const double sodium_potassium_pump_current_K_mk; 00098 static const double sodium_potassium_pump_current_P_NaK; 00099 static const double transient_outward_current_g_to; 00104 void VerifyStateVariables(); 00105 00106 public: 00113 TenTusscher2006OdeSystem(boost::shared_ptr<AbstractIvpOdeSolver> pSolver, 00114 boost::shared_ptr<AbstractStimulusFunction> pIntracellularStimulus); 00115 00119 ~TenTusscher2006OdeSystem(); 00120 00130 void EvaluateYDerivatives(double time, const std::vector<double> &rY, std::vector<double> &rDY); 00131 00137 void SetScaleFactorGks(double sfgks); 00138 00144 void SetScaleFactorIto(double sfito); 00145 00151 void SetScaleFactorGkr(double sfgkr); 00152 00158 double GetIIonic(); 00159 00160 }; 00161 00162 #endif // _TENTUSSCHER2006_HPP_