Nektar++
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | List of all members
Nektar::LuoRudy91 Class Reference

#include <LuoRudy91.h>

Inheritance diagram for Nektar::LuoRudy91:
[legend]

Public Member Functions

 LuoRudy91 (const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField)
 Constructor. More...
 
 ~LuoRudy91 () override
 Destructor. More...
 
- Public Member Functions inherited from Nektar::CellModel
 CellModel (const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField)
 
virtual ~CellModel ()
 
void Initialise ()
 Initialise the cell model storage and set initial conditions. More...
 
void TimeIntegrate (const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
 Time integrate the cell model by one PDE timestep. More...
 
void Update (const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)
 Compute the derivatives of cell model variables. More...
 
void GenerateSummary (SummaryList &s)
 Print a summary of the cell model. More...
 
size_t GetNumCellVariables ()
 
std::string GetCellVarName (size_t idx)
 
Array< OneD, NekDoubleGetCellSolutionCoeffs (size_t idx)
 
Array< OneD, NekDoubleGetCellSolution (size_t idx)
 

Static Public Member Functions

static CellModelSharedPtr create (const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField)
 Creates an instance of this class. More...
 

Static Public Attributes

static std::string className
 Name of class. More...
 

Protected Member Functions

void v_Update (const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time) override
 Computes the reaction terms $f(u,v)$ and $g(u,v)$. More...
 
void v_GenerateSummary (SummaryList &s) override
 Prints a summary of the model parameters. More...
 
void v_SetInitialConditions () override
 Set initial conditions for the cell model. More...
 
- Protected Member Functions inherited from Nektar::CellModel
virtual void v_Update (const Array< OneD, const Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble time)=0
 
virtual void v_GenerateSummary (SummaryList &s)=0
 
virtual std::string v_GetCellVarName (size_t idx)
 
virtual void v_SetInitialConditions ()=0
 
void LoadCellModel ()
 

Additional Inherited Members

- Protected Attributes inherited from Nektar::CellModel
LibUtilities::SessionReaderSharedPtr m_session
 Session. More...
 
MultiRegions::ExpListSharedPtr m_field
 Transmembrane potential field from PDE system. More...
 
size_t m_nq
 Number of physical points. More...
 
size_t m_nvar
 Number of variables in cell model (inc. transmembrane voltage) More...
 
NekDouble m_lastTime
 Timestep for pde model. More...
 
size_t m_substeps
 Number of substeps to take. More...
 
Array< OneD, Array< OneD, NekDouble > > m_cellSol
 Cell model solution variables. More...
 
Array< OneD, Array< OneD, NekDouble > > m_wsp
 Cell model integration workspace. More...
 
bool m_useNodal
 Flag indicating whether nodal projection in use. More...
 
StdRegions::StdNodalTriExpSharedPtr m_nodalTri
 StdNodalTri for cell model calculations. More...
 
StdRegions::StdNodalTetExpSharedPtr m_nodalTet
 
Array< OneD, Array< OneD, NekDouble > > m_nodalTmp
 Temporary array for nodal projection. More...
 
std::vector< int > m_concentrations
 Indices of cell model variables which are concentrations. More...
 
std::vector< int > m_gates
 Indices of cell model variables which are gates. More...
 
Array< OneD, Array< OneD, NekDouble > > m_gates_tau
 Storage for gate tau values. More...
 

Detailed Description

Definition at line 41 of file LuoRudy91.h.

Constructor & Destructor Documentation

◆ LuoRudy91()

Nektar::LuoRudy91::LuoRudy91 ( const LibUtilities::SessionReaderSharedPtr pSession,
const MultiRegions::ExpListSharedPtr pField 
)

Constructor.

Definition at line 61 of file LuoRudy91.cpp.

63 : CellModel(pSession, pField)
64{
65 m_nq = pField->GetNpoints();
66
67 m_nvar = 8;
68 m_gates.push_back(1);
69 m_gates.push_back(2);
70 m_gates.push_back(3);
71 m_gates.push_back(4);
72 m_gates.push_back(5);
73 m_gates.push_back(6);
74 m_concentrations.push_back(7);
75}
std::vector< int > m_concentrations
Indices of cell model variables which are concentrations.
Definition: CellModel.h:139
std::vector< int > m_gates
Indices of cell model variables which are gates.
Definition: CellModel.h:141
size_t m_nq
Number of physical points.
Definition: CellModel.h:117
size_t m_nvar
Number of variables in cell model (inc. transmembrane voltage)
Definition: CellModel.h:119
CellModel(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField)
Definition: CellModel.cpp:66

References Nektar::CellModel::m_concentrations, Nektar::CellModel::m_gates, Nektar::CellModel::m_nq, and Nektar::CellModel::m_nvar.

◆ ~LuoRudy91()

Nektar::LuoRudy91::~LuoRudy91 ( )
inlineoverride

Destructor.

Definition at line 61 of file LuoRudy91.h.

62 {
63 }

Member Function Documentation

◆ create()

static CellModelSharedPtr Nektar::LuoRudy91::create ( const LibUtilities::SessionReaderSharedPtr pSession,
const MultiRegions::ExpListSharedPtr pField 
)
inlinestatic

Creates an instance of this class.

Definition at line 46 of file LuoRudy91.h.

49 {
50 return MemoryManager<LuoRudy91>::AllocateSharedPtr(pSession, pField);
51 }
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr().

◆ v_GenerateSummary()

void Nektar::LuoRudy91::v_GenerateSummary ( SummaryList s)
overrideprotectedvirtual

Prints a summary of the model parameters.

Implements Nektar::CellModel.

Definition at line 542 of file LuoRudy91.cpp.

543{
544 SolverUtils::AddSummaryItem(s, "Cell model", "Luo-Rudy 1991");
545}
void AddSummaryItem(SummaryList &l, const std::string &name, const std::string &value)
Adds a summary item to the summary info list.
Definition: Misc.cpp:47

References Nektar::SolverUtils::AddSummaryItem().

◆ v_SetInitialConditions()

void Nektar::LuoRudy91::v_SetInitialConditions ( )
overrideprotectedvirtual

Set initial conditions for the cell model.

Implements Nektar::CellModel.

Definition at line 550 of file LuoRudy91.cpp.

551{
552 Vmath::Fill(m_nq, -84.3801107371, m_cellSol[0], 1);
553 Vmath::Fill(m_nq, 0.00171338077730188, m_cellSol[1], 1);
554 Vmath::Fill(m_nq, 0.982660523699656, m_cellSol[2], 1);
555 Vmath::Fill(m_nq, 0.989108212766685, m_cellSol[3], 1);
556 Vmath::Fill(m_nq, 0.00017948816388306, m_cellSol[4], 1);
557 Vmath::Fill(m_nq, 0.00302126301779861, m_cellSol[5], 1);
558 Vmath::Fill(m_nq, 0.999967936476325, m_cellSol[6], 1);
559 Vmath::Fill(m_nq, 0.0417603108167287, m_cellSol[7], 1);
560}
Array< OneD, Array< OneD, NekDouble > > m_cellSol
Cell model solution variables.
Definition: CellModel.h:126
void Fill(int n, const T alpha, T *x, const int incx)
Fill a vector with a constant value.
Definition: Vmath.hpp:54

References Vmath::Fill(), Nektar::CellModel::m_cellSol, and Nektar::CellModel::m_nq.

◆ v_Update()

void Nektar::LuoRudy91::v_Update ( const Array< OneD, const Array< OneD, NekDouble > > &  inarray,
Array< OneD, Array< OneD, NekDouble > > &  outarray,
const NekDouble  time 
)
overrideprotectedvirtual

Computes the reaction terms $f(u,v)$ and $g(u,v)$.

Implements Nektar::CellModel.

Definition at line 77 of file LuoRudy91.cpp.

81{
82 for (size_t i = 0; i < m_nq; ++i)
83 {
84 // Inputs:
85 // Time units: millisecond
86 NekDouble var_chaste_interface__membrane__V = inarray[0][i];
87 // Units: millivolt; Initial value: -84.3801107371
88 NekDouble var_chaste_interface__fast_sodium_current_m_gate__m =
89 inarray[1][i];
90 // Units: dimensionless; Initial value: 0.00171338077730188
91 NekDouble var_chaste_interface__fast_sodium_current_h_gate__h =
92 inarray[2][i];
93 // Units: dimensionless; Initial value: 0.982660523699656
94 NekDouble var_chaste_interface__fast_sodium_current_j_gate__j =
95 inarray[3][i];
96 // Units: dimensionless; Initial value: 0.989108212766685
97 NekDouble var_chaste_interface__slow_inward_current_d_gate__d =
98 inarray[4][i];
99 // Units: dimensionless; Initial value: 0.00302126301779861
100 NekDouble var_chaste_interface__slow_inward_current_f_gate__f =
101 inarray[5][i];
102 // Units: dimensionless; Initial value: 0.999967936476325
104 var_chaste_interface__time_dependent_potassium_current_X_gate__X =
105 inarray[6][i];
106 // Units: dimensionless; Initial value: 0.0417603108167287
108 var_chaste_interface__intracellular_calcium_concentration__Cai =
109 inarray[7][i];
110 // Units: millimolar; Initial value: 0.00017948816388306
111
112 // Mathematics
113 NekDouble d_dt_chaste_interface__membrane__V;
114 const NekDouble var_fast_sodium_current__j =
115 var_chaste_interface__fast_sodium_current_j_gate__j; // dimensionless
116 const NekDouble var_fast_sodium_current__h =
117 var_chaste_interface__fast_sodium_current_h_gate__h; // dimensionless
118 const NekDouble var_fast_sodium_current__m =
119 var_chaste_interface__fast_sodium_current_m_gate__m; // dimensionless
120 const NekDouble var_fast_sodium_current__V =
121 var_chaste_interface__membrane__V; // millivolt
122 const NekDouble var_slow_inward_current__d =
123 var_chaste_interface__slow_inward_current_d_gate__d; // dimensionless
124 const NekDouble var_slow_inward_current__f =
125 var_chaste_interface__slow_inward_current_f_gate__f; // dimensionless
126 const NekDouble var_slow_inward_current__V =
127 var_chaste_interface__membrane__V; // millivolt
128 const NekDouble var_slow_inward_current__Cai =
129 var_chaste_interface__intracellular_calcium_concentration__Cai; // millimolar
130 const NekDouble var_slow_inward_current__E_si =
131 7.7 -
132 (13.0287 * log(var_slow_inward_current__Cai / 1.0)); // millivolt
133 const NekDouble var_slow_inward_current__i_si =
134 0.09 * var_slow_inward_current__d * var_slow_inward_current__f *
135 (var_slow_inward_current__V -
136 var_slow_inward_current__E_si); // microA_per_cm2
137 const NekDouble var_time_dependent_potassium_current__V =
138 var_chaste_interface__membrane__V; // millivolt
139 const NekDouble var_time_dependent_potassium_current__X =
140 var_chaste_interface__time_dependent_potassium_current_X_gate__X; // dimensionless
141#if 0
142 const NekDouble var_fast_sodium_current_m_gate__m = var_fast_sodium_current__m; // dimensionless
143#endif
144 const NekDouble var_fast_sodium_current_m_gate__V =
145 var_fast_sodium_current__V; // millivolt
146 const NekDouble var_fast_sodium_current_m_gate__alpha_m =
147 (0.32 * (var_fast_sodium_current_m_gate__V + 47.13)) /
148 (1.0 - exp((-0.1) * (var_fast_sodium_current_m_gate__V +
149 47.13))); // per_millisecond
150 const NekDouble var_fast_sodium_current_m_gate__beta_m =
151 0.08 *
152 exp((-var_fast_sodium_current_m_gate__V) / 11.0); // per_millisecond
153#if 0
154 const NekDouble var_fast_sodium_current_m_gate__d_m_d_environment__time = (var_fast_sodium_current_m_gate__alpha_m * (1.0 - var_fast_sodium_current_m_gate__m)) - (var_fast_sodium_current_m_gate__beta_m * var_fast_sodium_current_m_gate__m); // per_millisecond
155 const NekDouble var_fast_sodium_current__fast_sodium_current_m_gate__d_m_d_environment__time = var_fast_sodium_current_m_gate__d_m_d_environment__time; // per_millisecond
156#endif
157 const NekDouble var_fast_sodium_current_h_gate__V =
158 var_fast_sodium_current__V; // millivolt
159 const NekDouble var_fast_sodium_current_h_gate__beta_h =
160 (var_fast_sodium_current_h_gate__V < (-40.0))
161 ? ((3.56 * exp(0.079 * var_fast_sodium_current_h_gate__V)) +
162 (310000.0 * exp(0.35 * var_fast_sodium_current_h_gate__V)))
163 : (1.0 / (0.13 * (1.0 + exp((var_fast_sodium_current_h_gate__V +
164 10.66) /
165 (-11.1))))); // per_millisecond
166 const NekDouble var_fast_sodium_current_h_gate__alpha_h =
167 (var_fast_sodium_current_h_gate__V < (-40.0))
168 ? (0.135 *
169 exp((80.0 + var_fast_sodium_current_h_gate__V) / (-6.8)))
170 : 0.0; // per_millisecond
171#if 0
172 const NekDouble var_fast_sodium_current_h_gate__h = var_fast_sodium_current__h; // dimensionless
173 const NekDouble var_fast_sodium_current_h_gate__d_h_d_environment__time = (var_fast_sodium_current_h_gate__alpha_h * (1.0 - var_fast_sodium_current_h_gate__h)) - (var_fast_sodium_current_h_gate__beta_h * var_fast_sodium_current_h_gate__h); // per_millisecond
174 const NekDouble var_fast_sodium_current__fast_sodium_current_h_gate__d_h_d_environment__time = var_fast_sodium_current_h_gate__d_h_d_environment__time; // per_millisecond
175#endif
176 const NekDouble var_fast_sodium_current_j_gate__V =
177 var_fast_sodium_current__V; // millivolt
178 const NekDouble var_fast_sodium_current_j_gate__alpha_j =
179 (var_fast_sodium_current_j_gate__V < (-40.0))
180 ? (((((-127140.0) *
181 exp(0.2444 * var_fast_sodium_current_j_gate__V)) -
182 (3.474e-05 *
183 exp((-0.04391) * var_fast_sodium_current_j_gate__V))) *
184 (var_fast_sodium_current_j_gate__V + 37.78)) /
185 (1.0 +
186 exp(0.311 * (var_fast_sodium_current_j_gate__V + 79.23))))
187 : 0.0; // per_millisecond
188 const NekDouble var_fast_sodium_current_j_gate__beta_j =
189 (var_fast_sodium_current_j_gate__V < (-40.0))
190 ? ((0.1212 *
191 exp((-0.01052) * var_fast_sodium_current_j_gate__V)) /
192 (1.0 + exp((-0.1378) *
193 (var_fast_sodium_current_j_gate__V + 40.14))))
194 : ((0.3 *
195 exp((-2.535e-07) * var_fast_sodium_current_j_gate__V)) /
196 (1.0 + exp((-0.1) * (var_fast_sodium_current_j_gate__V +
197 32.0)))); // per_millisecond
198#if 0
199 const NekDouble var_fast_sodium_current_j_gate__j = var_fast_sodium_current__j; // dimensionless
200 const NekDouble var_fast_sodium_current_j_gate__d_j_d_environment__time = (var_fast_sodium_current_j_gate__alpha_j * (1.0 - var_fast_sodium_current_j_gate__j)) - (var_fast_sodium_current_j_gate__beta_j * var_fast_sodium_current_j_gate__j); // per_millisecond
201 const NekDouble var_fast_sodium_current__fast_sodium_current_j_gate__d_j_d_environment__time = var_fast_sodium_current_j_gate__d_j_d_environment__time; // per_millisecond
202#endif
203 const NekDouble var_slow_inward_current_d_gate__V =
204 var_slow_inward_current__V; // millivolt
205 const NekDouble var_slow_inward_current_d_gate__alpha_d =
206 (0.095 * exp((-0.01) * (var_slow_inward_current_d_gate__V - 5.0))) /
207 (1.0 + exp((-0.072) * (var_slow_inward_current_d_gate__V -
208 5.0))); // per_millisecond
209#if 0
210 const NekDouble var_slow_inward_current_d_gate__d = var_slow_inward_current__d; // dimensionless
211#endif
212 const NekDouble var_slow_inward_current_d_gate__beta_d =
213 (0.07 *
214 exp((-0.017) * (var_slow_inward_current_d_gate__V + 44.0))) /
215 (1.0 + exp(0.05 * (var_slow_inward_current_d_gate__V +
216 44.0))); // per_millisecond
217#if 0
218 const NekDouble var_slow_inward_current_d_gate__d_d_d_environment__time = (var_slow_inward_current_d_gate__alpha_d * (1.0 - var_slow_inward_current_d_gate__d)) - (var_slow_inward_current_d_gate__beta_d * var_slow_inward_current_d_gate__d); // per_millisecond
219 const NekDouble var_slow_inward_current__slow_inward_current_d_gate__d_d_d_environment__time = var_slow_inward_current_d_gate__d_d_d_environment__time; // per_millisecond
220 const NekDouble var_slow_inward_current_f_gate__f = var_slow_inward_current__f; // dimensionless
221#endif
222 const NekDouble var_slow_inward_current_f_gate__V =
223 var_slow_inward_current__V; // millivolt
224 const NekDouble var_slow_inward_current_f_gate__alpha_f =
225 (0.012 *
226 exp((-0.008) * (var_slow_inward_current_f_gate__V + 28.0))) /
227 (1.0 + exp(0.15 * (var_slow_inward_current_f_gate__V +
228 28.0))); // per_millisecond
229 const NekDouble var_slow_inward_current_f_gate__beta_f =
230 (0.0065 *
231 exp((-0.02) * (var_slow_inward_current_f_gate__V + 30.0))) /
232 (1.0 + exp((-0.2) * (var_slow_inward_current_f_gate__V +
233 30.0))); // per_millisecond
234#if 0
235 const NekDouble var_slow_inward_current_f_gate__d_f_d_environment__time = (var_slow_inward_current_f_gate__alpha_f * (1.0 - var_slow_inward_current_f_gate__f)) - (var_slow_inward_current_f_gate__beta_f * var_slow_inward_current_f_gate__f); // per_millisecond
236 const NekDouble var_slow_inward_current__slow_inward_current_f_gate__d_f_d_environment__time = var_slow_inward_current_f_gate__d_f_d_environment__time; // per_millisecond
237 const NekDouble var_time_dependent_potassium_current_X_gate__X = var_time_dependent_potassium_current__X; // dimensionless
238#endif
239 const NekDouble var_time_dependent_potassium_current_X_gate__V =
240 var_time_dependent_potassium_current__V; // millivolt
241 const NekDouble var_time_dependent_potassium_current_X_gate__beta_X =
242 (0.0013 *
243 exp((-0.06) *
244 (var_time_dependent_potassium_current_X_gate__V + 20.0))) /
245 (1.0 +
246 exp((-0.04) * (var_time_dependent_potassium_current_X_gate__V +
247 20.0))); // per_millisecond
248 const NekDouble var_time_dependent_potassium_current_X_gate__alpha_X =
249 (0.0005 *
250 exp(0.083 *
251 (var_time_dependent_potassium_current_X_gate__V + 50.0))) /
252 (1.0 + exp(0.057 * (var_time_dependent_potassium_current_X_gate__V +
253 50.0))); // per_millisecond
254#if 0
255 const NekDouble var_time_dependent_potassium_current_X_gate__d_X_d_environment__time = (var_time_dependent_potassium_current_X_gate__alpha_X * (1.0 - var_time_dependent_potassium_current_X_gate__X)) - (var_time_dependent_potassium_current_X_gate__beta_X * var_time_dependent_potassium_current_X_gate__X); // per_millisecond
256 const NekDouble var_time_dependent_potassium_current__time_dependent_potassium_current_X_gate__d_X_d_environment__time = var_time_dependent_potassium_current_X_gate__d_X_d_environment__time; // per_millisecond
257#endif
258 const NekDouble var_intracellular_calcium_concentration__Cai =
259 var_chaste_interface__intracellular_calcium_concentration__Cai; // millimolar
260 const NekDouble var_intracellular_calcium_concentration__i_si =
261 var_slow_inward_current__i_si; // microA_per_cm2
262 const NekDouble
263 var_intracellular_calcium_concentration__d_Cai_d_environment__time =
264 (((-0.0001) / 1.0) *
265 var_intracellular_calcium_concentration__i_si) +
266 (0.07 *
267 (0.0001 -
268 var_intracellular_calcium_concentration__Cai)); // 'millimole
269 // per litre
270 // per
271 // millisecond'
272#if 0
273 const NekDouble var_chaste_interface__fast_sodium_current_m_gate__d_m_d_environment__time = var_fast_sodium_current__fast_sodium_current_m_gate__d_m_d_environment__time; // per_millisecond
274 const NekDouble var_chaste_interface__fast_sodium_current_h_gate__d_h_d_environment__time = var_fast_sodium_current__fast_sodium_current_h_gate__d_h_d_environment__time; // per_millisecond
275 const NekDouble var_chaste_interface__fast_sodium_current_j_gate__d_j_d_environment__time = var_fast_sodium_current__fast_sodium_current_j_gate__d_j_d_environment__time; // per_millisecond
276 const NekDouble var_chaste_interface__slow_inward_current_d_gate__d_d_d_environment__time = var_slow_inward_current__slow_inward_current_d_gate__d_d_d_environment__time; // per_millisecond
277 const NekDouble var_chaste_interface__slow_inward_current_f_gate__d_f_d_environment__time = var_slow_inward_current__slow_inward_current_f_gate__d_f_d_environment__time; // per_millisecond
278 const NekDouble var_chaste_interface__time_dependent_potassium_current_X_gate__d_X_d_environment__time = var_time_dependent_potassium_current__time_dependent_potassium_current_X_gate__d_X_d_environment__time; // per_millisecond
279#endif
280 const NekDouble
281 var_chaste_interface__intracellular_calcium_concentration__d_Cai_d_environment__time =
282 var_intracellular_calcium_concentration__d_Cai_d_environment__time; // ___units_16
283#if 0
284 const NekDouble d_dt_chaste_interface__fast_sodium_current_m_gate__m = var_chaste_interface__fast_sodium_current_m_gate__d_m_d_environment__time; // per_millisecond
285 const NekDouble d_dt_chaste_interface__fast_sodium_current_h_gate__h = var_chaste_interface__fast_sodium_current_h_gate__d_h_d_environment__time; // per_millisecond
286 const NekDouble d_dt_chaste_interface__fast_sodium_current_j_gate__j = var_chaste_interface__fast_sodium_current_j_gate__d_j_d_environment__time; // per_millisecond
287 const NekDouble d_dt_chaste_interface__slow_inward_current_d_gate__d = var_chaste_interface__slow_inward_current_d_gate__d_d_d_environment__time; // per_millisecond
288 const NekDouble d_dt_chaste_interface__slow_inward_current_f_gate__f = var_chaste_interface__slow_inward_current_f_gate__d_f_d_environment__time; // per_millisecond
289 const NekDouble d_dt_chaste_interface__time_dependent_potassium_current_X_gate__X = var_chaste_interface__time_dependent_potassium_current_X_gate__d_X_d_environment__time; // per_millisecond
290#endif
291 const NekDouble
292 d_dt_chaste_interface__intracellular_calcium_concentration__Cai =
293 var_chaste_interface__intracellular_calcium_concentration__d_Cai_d_environment__time; // 'millimole per litre per millisecond'
294
295 const NekDouble var_membrane__R = 8314.0; // joule_per_kilomole_kelvin
296 const NekDouble var_membrane__T = 310.0; // kelvin
297 const NekDouble var_membrane__F = 96484.6; // coulomb_per_mole
298 const NekDouble var_membrane__C = 1.0; // microF_per_cm2
299 const NekDouble var_chaste_interface__membrane__I_stim = 0.0;
300 const NekDouble var_membrane__I_stim =
301 var_chaste_interface__membrane__I_stim; // microA_per_cm2
302 const NekDouble var_fast_sodium_current__g_Na = 23.0; // milliS_per_cm2
303 const NekDouble var_fast_sodium_current__R =
304 var_membrane__R; // joule_per_kilomole_kelvin
305 const NekDouble var_fast_sodium_current__F =
306 var_membrane__F; // coulomb_per_mole
307 const NekDouble var_ionic_concentrations__Nao = 140.0; // millimolar
308 const NekDouble var_fast_sodium_current__Nao =
309 var_ionic_concentrations__Nao; // millimolar
310 const NekDouble var_ionic_concentrations__Nai = 18.0; // millimolar
311 const NekDouble var_fast_sodium_current__Nai =
312 var_ionic_concentrations__Nai; // millimolar
313 const NekDouble var_fast_sodium_current__T = var_membrane__T; // kelvin
314 const NekDouble var_fast_sodium_current__E_Na =
315 ((var_fast_sodium_current__R * var_fast_sodium_current__T) /
316 var_fast_sodium_current__F) *
317 log(var_fast_sodium_current__Nao /
318 var_fast_sodium_current__Nai); // millivolt
319 const NekDouble var_fast_sodium_current__i_Na =
320 var_fast_sodium_current__g_Na *
321 pow(var_fast_sodium_current__m, 3.0) * var_fast_sodium_current__h *
322 var_fast_sodium_current__j *
323 (var_fast_sodium_current__V -
324 var_fast_sodium_current__E_Na); // microA_per_cm2
325 const NekDouble var_membrane__i_Na =
326 var_fast_sodium_current__i_Na; // microA_per_cm2
327 const NekDouble var_membrane__i_si =
328 var_slow_inward_current__i_si; // microA_per_cm2
329 const NekDouble var_time_dependent_potassium_current_Xi_gate__V =
330 var_time_dependent_potassium_current__V; // millivolt
331 const NekDouble var_time_dependent_potassium_current_Xi_gate__Xi =
332 (var_time_dependent_potassium_current_Xi_gate__V > (-100.0))
333 ? ((2.837 *
334 (exp(0.04 *
335 (var_time_dependent_potassium_current_Xi_gate__V +
336 77.0)) -
337 1.0)) /
338 ((var_time_dependent_potassium_current_Xi_gate__V + 77.0) *
339 exp(0.04 *
340 (var_time_dependent_potassium_current_Xi_gate__V +
341 35.0))))
342 : 1.0; // dimensionless
343 const NekDouble var_time_dependent_potassium_current__Xi =
344 var_time_dependent_potassium_current_Xi_gate__Xi; // dimensionless
345 const NekDouble var_ionic_concentrations__Ko = 5.4; // millimolar
346 const NekDouble var_time_dependent_potassium_current__Ko =
347 var_ionic_concentrations__Ko; // millimolar
348 const NekDouble var_time_dependent_potassium_current__g_K =
349 0.282 * sqrt(var_time_dependent_potassium_current__Ko /
350 5.4); // milliS_per_cm2
351 const NekDouble var_time_dependent_potassium_current__PR_NaK =
352 0.01833; // dimensionless
353 const NekDouble var_time_dependent_potassium_current__F =
354 var_membrane__F; // coulomb_per_mole
355 const NekDouble var_time_dependent_potassium_current__Nao =
356 var_ionic_concentrations__Nao; // millimolar
357 const NekDouble var_ionic_concentrations__Ki = 145.0; // millimolar
358 const NekDouble var_time_dependent_potassium_current__Ki =
359 var_ionic_concentrations__Ki; // millimolar
360 const NekDouble var_time_dependent_potassium_current__Nai =
361 var_ionic_concentrations__Nai; // millimolar
362 const NekDouble var_time_dependent_potassium_current__T =
363 var_membrane__T; // kelvin
364 const NekDouble var_time_dependent_potassium_current__R =
365 var_membrane__R; // joule_per_kilomole_kelvin
366 const NekDouble var_time_dependent_potassium_current__E_K =
367 ((var_time_dependent_potassium_current__R *
368 var_time_dependent_potassium_current__T) /
369 var_time_dependent_potassium_current__F) *
370 log((var_time_dependent_potassium_current__Ko +
371 (var_time_dependent_potassium_current__PR_NaK *
372 var_time_dependent_potassium_current__Nao)) /
373 (var_time_dependent_potassium_current__Ki +
374 (var_time_dependent_potassium_current__PR_NaK *
375 var_time_dependent_potassium_current__Nai))); // millivolt
376 const NekDouble var_time_dependent_potassium_current__i_K =
377 var_time_dependent_potassium_current__g_K *
378 var_time_dependent_potassium_current__X *
379 var_time_dependent_potassium_current__Xi *
380 (var_time_dependent_potassium_current__V -
381 var_time_dependent_potassium_current__E_K); // microA_per_cm2
382 const NekDouble var_membrane__i_K =
383 var_time_dependent_potassium_current__i_K; // microA_per_cm2
384 const NekDouble var_time_independent_potassium_current__V =
385 var_chaste_interface__membrane__V; // millivolt
386 const NekDouble var_time_independent_potassium_current_K1_gate__V =
387 var_time_independent_potassium_current__V; // millivolt
388 const NekDouble var_time_independent_potassium_current__Ki =
389 var_ionic_concentrations__Ki; // millimolar
390 const NekDouble var_time_independent_potassium_current__R =
391 var_membrane__R; // joule_per_kilomole_kelvin
392 const NekDouble var_time_independent_potassium_current__F =
393 var_membrane__F; // coulomb_per_mole
394 const NekDouble var_time_independent_potassium_current__Ko =
395 var_ionic_concentrations__Ko; // millimolar
396 const NekDouble var_time_independent_potassium_current__T =
397 var_membrane__T; // kelvin
398 const NekDouble var_time_independent_potassium_current__E_K1 =
399 ((var_time_independent_potassium_current__R *
400 var_time_independent_potassium_current__T) /
401 var_time_independent_potassium_current__F) *
402 log(var_time_independent_potassium_current__Ko /
403 var_time_independent_potassium_current__Ki); // millivolt
404 const NekDouble var_time_independent_potassium_current_K1_gate__E_K1 =
405 var_time_independent_potassium_current__E_K1; // millivolt
406 const NekDouble
407 var_time_independent_potassium_current_K1_gate__beta_K1 =
408 ((0.49124 *
409 exp(0.08032 *
410 ((var_time_independent_potassium_current_K1_gate__V +
411 5.476) -
412 var_time_independent_potassium_current_K1_gate__E_K1))) +
413 (1.0 *
414 exp(0.06175 *
415 (var_time_independent_potassium_current_K1_gate__V -
416 (var_time_independent_potassium_current_K1_gate__E_K1 +
417 594.31))))) /
418 (1.0 +
419 exp((-0.5143) *
420 ((var_time_independent_potassium_current_K1_gate__V -
421 var_time_independent_potassium_current_K1_gate__E_K1) +
422 4.753))); // per_millisecond
423 const NekDouble
424 var_time_independent_potassium_current_K1_gate__alpha_K1 =
425 1.02 /
426 (1.0 +
427 exp(0.2385 *
428 ((var_time_independent_potassium_current_K1_gate__V -
429 var_time_independent_potassium_current_K1_gate__E_K1) -
430 59.215))); // per_millisecond
431 const NekDouble
432 var_time_independent_potassium_current_K1_gate__K1_infinity =
433 var_time_independent_potassium_current_K1_gate__alpha_K1 /
434 (var_time_independent_potassium_current_K1_gate__alpha_K1 +
435 var_time_independent_potassium_current_K1_gate__beta_K1); // dimensionless
436 const NekDouble var_time_independent_potassium_current__K1_infinity =
437 var_time_independent_potassium_current_K1_gate__K1_infinity; // dimensionless
438 const NekDouble var_time_independent_potassium_current__g_K1 =
439 0.6047 * sqrt(var_time_independent_potassium_current__Ko /
440 5.4); // milliS_per_cm2
441 const NekDouble var_time_independent_potassium_current__i_K1 =
442 var_time_independent_potassium_current__g_K1 *
443 var_time_independent_potassium_current__K1_infinity *
444 (var_time_independent_potassium_current__V -
445 var_time_independent_potassium_current__E_K1); // microA_per_cm2
446 const NekDouble var_membrane__i_K1 =
447 var_time_independent_potassium_current__i_K1; // microA_per_cm2
448 const NekDouble var_plateau_potassium_current__g_Kp =
449 0.0183; // milliS_per_cm2
450 const NekDouble var_plateau_potassium_current__V =
451 var_chaste_interface__membrane__V; // millivolt
452 const NekDouble var_plateau_potassium_current__Kp =
453 1.0 / (1.0 + exp((7.488 - var_plateau_potassium_current__V) /
454 5.98)); // dimensionless
455 const NekDouble var_plateau_potassium_current__E_K1 =
456 var_time_independent_potassium_current__E_K1; // millivolt
457 const NekDouble var_plateau_potassium_current__E_Kp =
458 var_plateau_potassium_current__E_K1; // millivolt
459 const NekDouble var_plateau_potassium_current__i_Kp =
460 var_plateau_potassium_current__g_Kp *
461 var_plateau_potassium_current__Kp *
462 (var_plateau_potassium_current__V -
463 var_plateau_potassium_current__E_Kp); // microA_per_cm2
464 const NekDouble var_membrane__i_Kp =
465 var_plateau_potassium_current__i_Kp; // microA_per_cm2
466 const NekDouble var_background_current__E_b = -59.87; // millivolt
467 const NekDouble var_background_current__g_b = 0.03921; // milliS_per_cm2
468 const NekDouble var_background_current__V =
469 var_chaste_interface__membrane__V; // millivolt
470 const NekDouble var_background_current__i_b =
471 var_background_current__g_b *
472 (var_background_current__V -
473 var_background_current__E_b); // microA_per_cm2
474 const NekDouble var_membrane__i_b =
475 var_background_current__i_b; // microA_per_cm2
476 const NekDouble var_membrane__d_V_d_environment__time =
477 ((-1.0) / var_membrane__C) *
478 (var_membrane__I_stim + var_membrane__i_Na + var_membrane__i_si +
479 var_membrane__i_K + var_membrane__i_K1 + var_membrane__i_Kp +
480 var_membrane__i_b); // 'millivolt per millisecond'
481 const NekDouble
482 var_chaste_interface__membrane__d_V_d_environment__time =
483 var_membrane__d_V_d_environment__time; // ___units_1
484 d_dt_chaste_interface__membrane__V =
485 var_chaste_interface__membrane__d_V_d_environment__time; // 'millivolt
486 // per
487 // millisecond'
488 const NekDouble m_inf = var_fast_sodium_current_m_gate__alpha_m /
489 (var_fast_sodium_current_m_gate__alpha_m +
490 var_fast_sodium_current_m_gate__beta_m);
491 const NekDouble m_tau = 1.0 / (var_fast_sodium_current_m_gate__alpha_m +
492 var_fast_sodium_current_m_gate__beta_m);
493 const NekDouble h_inf = var_fast_sodium_current_h_gate__alpha_h /
494 (var_fast_sodium_current_h_gate__alpha_h +
495 var_fast_sodium_current_h_gate__beta_h);
496 const NekDouble h_tau = 1.0 / (var_fast_sodium_current_h_gate__alpha_h +
497 var_fast_sodium_current_h_gate__beta_h);
498 const NekDouble j_inf = var_fast_sodium_current_j_gate__alpha_j /
499 (var_fast_sodium_current_j_gate__alpha_j +
500 var_fast_sodium_current_j_gate__beta_j);
501 const NekDouble j_tau = 1.0 / (var_fast_sodium_current_j_gate__alpha_j +
502 var_fast_sodium_current_j_gate__beta_j);
503 const NekDouble d_inf = var_slow_inward_current_d_gate__alpha_d /
504 (var_slow_inward_current_d_gate__alpha_d +
505 var_slow_inward_current_d_gate__beta_d);
506 const NekDouble d_tau = 1.0 / (var_slow_inward_current_d_gate__alpha_d +
507 var_slow_inward_current_d_gate__beta_d);
508 const NekDouble f_inf = var_slow_inward_current_f_gate__alpha_f /
509 (var_slow_inward_current_f_gate__alpha_f +
510 var_slow_inward_current_f_gate__beta_f);
511 const NekDouble f_tau = 1.0 / (var_slow_inward_current_f_gate__alpha_f +
512 var_slow_inward_current_f_gate__beta_f);
513 const NekDouble X_inf =
514 var_time_dependent_potassium_current_X_gate__alpha_X /
515 (var_time_dependent_potassium_current_X_gate__alpha_X +
516 var_time_dependent_potassium_current_X_gate__beta_X);
517 const NekDouble X_tau =
518 1.0 / (var_time_dependent_potassium_current_X_gate__alpha_X +
519 var_time_dependent_potassium_current_X_gate__beta_X);
520
521 outarray[0][i] = d_dt_chaste_interface__membrane__V;
522 outarray[1][i] = m_inf;
523 m_gates_tau[0][i] = m_tau;
524 outarray[2][i] = h_inf;
525 m_gates_tau[1][i] = h_tau;
526 outarray[3][i] = j_inf;
527 m_gates_tau[2][i] = j_tau;
528 outarray[4][i] = d_inf;
529 m_gates_tau[3][i] = d_tau;
530 outarray[5][i] = f_inf;
531 m_gates_tau[4][i] = f_tau;
532 outarray[6][i] = X_inf;
533 m_gates_tau[5][i] = X_tau;
534 outarray[7][i] =
535 d_dt_chaste_interface__intracellular_calcium_concentration__Cai;
536 }
537}
Array< OneD, Array< OneD, NekDouble > > m_gates_tau
Storage for gate tau values.
Definition: CellModel.h:143
double NekDouble
scalarT< T > log(scalarT< T > in)
Definition: scalar.hpp:303
scalarT< T > sqrt(scalarT< T > in)
Definition: scalar.hpp:294

References tinysimd::log(), Nektar::CellModel::m_gates_tau, Nektar::CellModel::m_nq, and tinysimd::sqrt().

Member Data Documentation

◆ className

std::string Nektar::LuoRudy91::className
static
Initial value:
=
"LuoRudy91", LuoRudy91::create, "Luo Rudy 1991 model.")
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
Definition: NekFactory.hpp:197
static CellModelSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const MultiRegions::ExpListSharedPtr &pField)
Creates an instance of this class.
Definition: LuoRudy91.h:46
CellModelFactory & GetCellModelFactory()
Definition: CellModel.cpp:46

Name of class.

Definition at line 54 of file LuoRudy91.h.