Location: 12 L Platform 1 model codes @ 9ac5ec0fe3f8 / Airway_FTU / wang2010 / ca2.cellml

Author:
aram148 <a.rampadarath@auckland.ac.nz>
Date:
2021-12-17 11:46:34+13:00
Desc:
Added the Matlab 7 airway code
Permanent Source URI:
https://staging.physiomeproject.org/workspace/6b0/rawfile/9ac5ec0fe3f8ae60e6020b99146573defeb5a5e9/Airway_FTU/wang2010/ca2.cellml

<?xml version='1.0'?>
<model name="ca2" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <!--    def import using "units.cellml" for
        unit per_mM_per_sec using unit per_mM_per_sec;
        unit mV using unit mV;
        unit per_sec using unit per_sec;
        unit mM using unit mM;
        unit nS_per_mM using unit nS_per_mM;
        unit C_per_mol using unit C_per_mol;
        unit per_mM using unit per_mM;
        unit mM_per_sec using unit mM_per_sec;
        unit mJ_per_K_per_mol using unit mJ_per_K_per_mol;
        unit uA_per_cmsq using unit uA_per_cmsq;
    enddef;-->
    <import xlink:href="wang2010.cellml">
        <component component_ref="asm_ca" name="asm_ca"/>
        <component component_ref="ca_parameters" name="ca_parameters"/>
    </import>
    <units name="per_sec">
        <unit exponent="-1" units="second"/>
    </units>
    <units name="mM">
        <unit prefix="micro" units="mole"/>
        <unit exponent="-1" units="litre"/>
    </units>
    <!--    def comp environment as
        var time: second {pub: out};
    enddef;-->
    <component name="calcium">
        <variable name="time" public_interface="in" units="second"/>
        <variable name="k1" public_interface="out" units="per_sec"/>
        <variable name="k2" public_interface="out" units="per_sec"/>
        <variable initial_value="0.5962" name="k1a" units="per_sec"/>
        <variable name="c" public_interface="in" units="mM"/>
        <variable initial_value="1.35" name="k1b" units="mM"/>
        <variable initial_value="156.9" name="tau" units="second"/>
        <variable initial_value="0" name="P" units="dimensionless"/>
        <variable name="kon" units="dimensionless"/>
        <variable name="koff" units="dimensionless"/>
        <variable initial_value="242.14" name="k2b" units="per_sec"/>
        <variable initial_value="0.000125" name="kon1" units="dimensionless"/>
        <variable initial_value="0.8988" name="kon2" units="mM"/>
        <variable initial_value="0.4629" name="koff1" units="dimensionless"/>
        <variable initial_value="20.035" name="koff2" units="dimensionless"/>
        <variable name="p" public_interface="in" units="mM"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>kon</ci>
                <apply>
                    <plus/>
                    <ci>kon1</ci>
                    <apply>
                        <divide/>
                        <apply>
                            <power/>
                            <ci>c</ci>
                            <cn cellml:units="dimensionless">2</cn>
                        </apply>
                        <apply>
                            <plus/>
                            <apply>
                                <power/>
                                <ci>kon2</ci>
                                <cn cellml:units="dimensionless">2</cn>
                            </apply>
                            <apply>
                                <power/>
                                <ci>c</ci>
                                <cn cellml:units="dimensionless">2</cn>
                            </apply>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>koff</ci>
                <apply>
                    <plus/>
                    <ci>koff1</ci>
                    <apply>
                        <divide/>
                        <apply>
                            <times/>
                            <ci>koff2</ci>
                            <ci>p</ci>
                        </apply>
                        <apply>
                            <plus/>
                            <cn cellml:units="dimensionless">1</cn>
                            <ci>p</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>P</ci>
                </apply>
                <apply>
                    <minus/>
                    <apply>
                        <times/>
                        <apply>
                            <divide/>
                            <cn cellml:units="dimensionless">1</cn>
                            <ci>tau</ci>
                        </apply>
                        <ci>kon</ci>
                        <apply>
                            <minus/>
                            <cn cellml:units="dimensionless">1</cn>
                            <ci>P</ci>
                        </apply>
                    </apply>
                    <apply>
                        <times/>
                        <ci>koff</ci>
                        <ci>P</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>k2</ci>
                <apply>
                    <times/>
                    <ci>k2b</ci>
                    <apply>
                        <power/>
                        <ci>P</ci>
                        <cn cellml:units="dimensionless">2</cn>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>k1</ci>
                <apply>
                    <divide/>
                    <apply>
                        <times/>
                        <ci>k1a</ci>
                        <apply>
                            <power/>
                            <ci>c</ci>
                            <cn cellml:units="dimensionless">4</cn>
                        </apply>
                    </apply>
                    <apply>
                        <plus/>
                        <apply>
                            <power/>
                            <ci>k1b</ci>
                            <cn cellml:units="dimensionless">4</cn>
                        </apply>
                        <apply>
                            <power/>
                            <ci>c</ci>
                            <cn cellml:units="dimensionless">4</cn>
                        </apply>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
    <!--    def map between calcium and asm_ca for
        vars c and c;
        vars p and p;
    enddef;-->
    <!--    def map between environment and asm_ca for
        vars time and time;
    enddef;-->
    <!--    def map between environment and calcium for
        vars time and time;
    enddef;-->
</model>