Location: BG_TRPN_buffer @ bfbac3fe8aed / parameter_finder / output / TEMP.cellml.txt

Author:
Shelley Fong <s.fong@auckland.ac.nz>
Date:
2022-03-08 11:41:13+13:00
Desc:
Removing F
Permanent Source URI:
https://models.physiomeproject.org/workspace/829/rawfile/bfbac3fe8aed9d3cff6e3ed1d41a0393a3d5ae47/parameter_finder/output/TEMP.cellml.txt

def model individual_TRPN_buffer 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_TRPN: fmol {init: 1e-888, pub: out};
var q_TRPN_Ca: fmol {init: 1e-888, pub: out};
// From submodule
var v_b1: fmol_per_sec {pub: in};
ode(q_Ca_i, time) = vvv;
ode(q_TRPN, time) = vvv;
ode(q_TRPN_Ca, time) = vvv;
enddef;

def comp TRPN_buffer_parameters as
var kappa_b1: fmol_per_sec {init: 190.365, pub: out};
var K_Ca_i: per_fmol {init: 2.10692, pub: out};
var K_TRPN: per_fmol {init: 2.10692, pub: out};
var K_TRPN_Ca: per_fmol {init: 0.0763526, pub: out};
enddef;
def comp TRPN_buffer as
        var time: second {pub: in};
        var R: J_per_K_per_mol {pub: in};
        var T: kelvin {pub: in};
        // parameters
var kappa_b1: fmol_per_sec {pub: in};
var K_Ca_i: per_fmol {pub: in};
var K_TRPN: per_fmol {pub: in};
var K_TRPN_Ca: per_fmol {pub: in};
// Input from global environment
var q_Ca_i: fmol {pub: in};
var q_TRPN: fmol {pub: in};
var q_TRPN_Ca: fmol {pub: in};
// Constitutive parameters
var mu_Ca_i: J_per_mol;
var mu_TRPN: J_per_mol;
var mu_TRPN_Ca: J_per_mol;
var v_b1: fmol_per_sec {pub: out};
mu_Ca_i = R*T*ln(K_Ca_i*q_Ca_i);
mu_TRPN = R*T*ln(K_TRPN*q_TRPN);
mu_TRPN_Ca = R*T*ln(K_TRPN_Ca*q_TRPN_Ca);
v_b1 = ppp;
enddef;
def map between environment and TRPN_buffer for
vars time and time;
vars q_Ca_i and q_Ca_i;
vars q_TRPN and q_TRPN;
vars q_TRPN_Ca and q_TRPN_Ca;
vars v_b1 and v_b1;
enddef;
def map between TRPN_buffer and TRPN_buffer_parameters for
vars kappa_b1 and kappa_b1;
vars K_Ca_i and K_Ca_i;
vars K_TRPN and K_TRPN;
vars K_TRPN_Ca and K_TRPN_Ca;
enddef;
def map between constants and TRPN_buffer for
vars R and R;
 vars T and T;
enddef;
enddef;