Lr91Cvode.hpp

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 #ifdef CHASTE_CVODE
00030 
00031 #ifndef _LR91CVODE_HPP_
00032 #define _LR91CVODE_HPP_
00033 
00034 #include "AbstractCvodeCell.hpp"
00035 #include "AbstractStimulusFunction.hpp"
00036 #include <vector>
00037 
00041 class Lr91Cvode : public AbstractCvodeCell
00042 {
00043 private:
00044 
00048     static const double membrane_C;
00050     static const double membrane_F;
00052     static const double membrane_R;
00054     static const double membrane_T;
00056     static const double background_current_E_b;
00058     static const double background_current_g_b;
00060     static const double fast_sodium_current_g_Na;
00062     static const double ionic_concentrations_Ki;
00064     static const double ionic_concentrations_Ko;
00066     static const double ionic_concentrations_Nai;
00068     static const double ionic_concentrations_Nao;
00070     static const double plateau_potassium_current_g_Kp;
00072     static const double time_dependent_potassium_current_PR_NaK;
00073 
00075     double fast_sodium_current_E_Na;
00076 
00082     void VerifyStateVariables();
00083 
00084 public:
00091     Lr91Cvode(boost::shared_ptr<AbstractIvpOdeSolver> pOdeSolver,
00092               boost::shared_ptr<AbstractStimulusFunction> pIntracellularStimulus);
00093 
00097     ~Lr91Cvode();
00098 
00108     void EvaluateRhs(double time, N_Vector y, N_Vector ydot);
00109 
00115     double GetIIonic();
00116 
00122     double GetIntracellularCalciumConcentration();
00123 };
00124 
00125 
00126 
00127 #endif // _LR91CVODE_HPP_
00128 
00129 #endif // CHASTE_CVODE

Generated by  doxygen 1.6.2