- Author:
- Shelley Fong <sfon036@UoA.auckland.ac.nz>
- Date:
- 2022-05-24 13:18:50+12:00
- Desc:
- Rename kappa
- Permanent Source URI:
- http://models.cellml.org/workspace/886/rawfile/39a6ae0e37e725b3886b3492d7cfe620a722bbc9/parameter_finder/output/TEMP.cellml.txt
def model individual_CO2_hyd 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 fF using unit fF;
unit fC using unit fC;
unit per_second using unit per_second;
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 pL using unit pL;
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_CO2_i: fmol {init: 1e-888, pub: out};
var q_HCO3_i: fmol {init: 1e-888, pub: out};
var q_H_i: fmol {init: 1e-888, pub: out};
// From submodule
var v_Re_hyd: fmol_per_sec {pub: in};
ode(q_CO2_i, time) = vvv;
ode(q_HCO3_i, time) = vvv;
ode(q_H_i, time) = vvv;
enddef;
def comp CO2_hyd_parameters as
var kappa_Re_hyd: fmol_per_sec {init: 153.093, pub: out};
var K_CO2_i: per_fmol {init: 82.5092, pub: out};
var K_HCO3_i: per_fmol {init: 0.00128495, pub: out};
var K_H_i: per_fmol {init: 0.00128495, pub: out};
enddef;
def comp CO2_hyd as
var time: second {pub: in};
var R: J_per_K_per_mol {pub: in};
var T: kelvin {pub: in};
// parameters
var kappa_Re_hyd: fmol_per_sec {pub: in};
var K_CO2_i: per_fmol {pub: in};
var K_HCO3_i: per_fmol {pub: in};
var K_H_i: per_fmol {pub: in};
// Input from global environment
var q_CO2_i: fmol {pub: in};
var q_HCO3_i: fmol {pub: in};
var q_H_i: fmol {pub: in};
// Constitutive parameters
var mu_CO2_i: J_per_mol;
var mu_HCO3_i: J_per_mol;
var mu_H_i: J_per_mol;
var v_Re_hyd: fmol_per_sec {pub: out};
mu_CO2_i = R*T*ln(K_CO2_i*q_CO2_i);
mu_HCO3_i = R*T*ln(K_HCO3_i*q_HCO3_i);
mu_H_i = R*T*ln(K_H_i*q_H_i);
v_Re_hyd = kappa_Re_hyd*(ppp);
enddef;
def map between environment and CO2_hyd for
vars time and time;
vars q_CO2_i and q_CO2_i;
vars q_HCO3_i and q_HCO3_i;
vars q_H_i and q_H_i;
vars v_Re_hyd and v_Re_hyd;
enddef;
def map between CO2_hyd and CO2_hyd_parameters for
vars kappa_Re_hyd and kappa_Re_hyd;
vars K_CO2_i and K_CO2_i;
vars K_HCO3_i and K_HCO3_i;
vars K_H_i and K_H_i;
enddef;
def map between constants and CO2_hyd for
vars R and R;
vars T and T;
enddef;
enddef;