Location: BG_pCa @ 79b426309c76 / parameter_finder / output / TEMP.cellml.txt

Author:
Shelley Fong <sfon036@UoA.auckland.ac.nz>
Date:
2024-09-05 14:31:00+12:00
Desc:
Add readme
Permanent Source URI:
https://models.fieldml.org/workspace/833/rawfile/79b426309c76162154ebcdf4a77a7b64609a147b/parameter_finder/output/TEMP.cellml.txt

def model individual_pCa as
 def import using "units_and_constants/units_BG.cellml" for
        unit mM using unit mM;
unit fmol using unit fmol;
unit per_fmol using unit per_fmol;
        unit J_per_mol using unit J_per_mol;
unit fmol_per_sec using unit fmol_per_sec;
        unit C_per_mol using unit C_per_mol;
  unit J_per_C using unit J_per_C;
        unit microm3 using unit microm3;
  unit fF using unit fF;
        unit fC using unit fC;
  unit fA using unit fA;
        unit per_second using unit per_second;
  unit millivolt using unit millivolt;
        unit per_sec using unit per_sec;
  unit J_per_K_per_mol using unit J_per_K_per_mol;
        unit fmol_per_L using unit fmol_per_L;
  unit fmol_per_L_per_sec using unit fmol_per_L_per_sec;
        unit per_sec_per_fmol_per_L using unit per_sec_per_fmol_per_L;
  unit uM using unit uM;
        unit mM_per_sec using unit mM_per_sec;
  unit uM_per_sec using unit uM_per_sec;
        unit pL using unit pL;
  unit m_to_u using unit m_to_u;
 enddef;
def import using "units_and_constants/constants_BG.cellml" for
            comp constants using comp constants;
enddef;

    def comp environment as
    var time: second {pub: out};
    // initial values
var q_Ca_i: fmol {init: 1e-888, pub: out};
var q_Ca_o: fmol {init: 1e-888, pub: out};
var q_pCa: fmol {init: 1e-888, pub: out};
var q_pCa_Ca: fmol {init: 1e-888, pub: out};
// From submodule
var v_pCa_R1: fmol_per_sec {pub: in};
var v_pCa_R2: fmol_per_sec {pub: in};
ode(q_Ca_i, time) = vvv;
ode(q_Ca_o, time) = vvv;
ode(q_pCa, time) = vvv;
ode(q_pCa_Ca, time) = vvv;
enddef;

def comp pCa_parameters as
var kappa_pCa_R1: fmol_per_sec {init: 1451.43, pub: out};
var kappa_pCa_R2: fmol_per_sec {init: 0.00014695, pub: out};
var K_Ca_i: per_fmol {init: 32.3484, pub: out};
var K_Ca_o: per_fmol {init: 0.00010737, pub: out};
var K_pCa: per_fmol {init: 0.0179984, pub: out};
var K_pCa_Ca: per_fmol {init: 0.0100142, pub: out};
enddef;
def comp pCa as
        var time: second {pub: in};
        var R: J_per_K_per_mol {pub: in};
        var T: kelvin {pub: in};
        // parameters
var kappa_pCa_R1: fmol_per_sec {pub: in};
var kappa_pCa_R2: fmol_per_sec {pub: in};
var K_Ca_i: per_fmol {pub: in};
var K_Ca_o: per_fmol {pub: in};
var K_pCa: per_fmol {pub: in};
var K_pCa_Ca: per_fmol {pub: in};
// Input from global environment
var q_Ca_i: fmol {pub: in};
var q_Ca_o: fmol {pub: in};
var q_pCa: fmol {pub: in};
var q_pCa_Ca: fmol {pub: in};
// Constitutive parameters
var mu_Ca_i: J_per_mol;
var mu_Ca_o: J_per_mol;
var mu_pCa: J_per_mol;
var mu_pCa_Ca: J_per_mol;
var v_pCa_R1: fmol_per_sec {pub: out};
var v_pCa_R2: fmol_per_sec {pub: out};
mu_Ca_i = R*T*ln(K_Ca_i*q_Ca_i);
mu_Ca_o = R*T*ln(K_Ca_o*q_Ca_o);
mu_pCa = R*T*ln(K_pCa*q_pCa);
mu_pCa_Ca = R*T*ln(K_pCa_Ca*q_pCa_Ca);
v_pCa_R1 = ppp;
v_pCa_R2 = ppp;
enddef;
def map between environment and pCa for
vars time and time;
vars q_Ca_i and q_Ca_i;
vars q_Ca_o and q_Ca_o;
vars q_pCa and q_pCa;
vars q_pCa_Ca and q_pCa_Ca;
vars v_pCa_R1 and v_pCa_R1;
vars v_pCa_R2 and v_pCa_R2;
enddef;
def map between pCa and pCa_parameters for
vars kappa_pCa_R1 and kappa_pCa_R1;
vars kappa_pCa_R2 and kappa_pCa_R2;
vars K_Ca_i and K_Ca_i;
vars K_Ca_o and K_Ca_o;
vars K_pCa and K_pCa;
vars K_pCa_Ca and K_pCa_Ca;
enddef;
def map between constants and pCa for
vars R and R;
 vars T and T;
enddef;
enddef;