Location: cellLib @ 0f94d0bdf02a / BG / gate_BG.cellml

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-05-16 13:04:54+12:00
Desc:
Add a merge script and update accordingly
Permanent Source URI:
https://models.fieldml.org/workspace/6bc/rawfile/0f94d0bdf02afd16ebe8651a92628c98334ddb1f/BG/gate_BG.cellml

<?xml version='1.0' encoding='UTF-8'?>
<!-- The BG of a single gate transition-->
<model name="gate_BG" 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">
    <import xlink:href="units_BG.cellml">
        <units name="J_per_K_per_mol" units_ref="J_per_K_per_mol"/>
        <units name="J_per_mol" units_ref="J_per_mol"/>
        <units name="fmol" units_ref="fmol"/>
        <units name="fmol_per_sec" units_ref="fmol_per_sec"/>
        <units name="per_fmol" units_ref="per_fmol"/>
    </import>
    <import xlink:href="constants_BG.cellml">
        <component component_ref="constants_BG" name="constants_BG"/>
    </import>
    <component name="gate_BG">
        <!--Parameters-->
        <variable name="R" private_interface="in" units="J_per_K_per_mol"/>
        <variable name="T" public_interface="in" units="kelvin"/>
        <variable name="kappa_g" public_interface="in" units="fmol_per_sec"/>
        <variable name="z_g_f" public_interface="in" units="dimensionless"/>
        <variable name="z_g_r" public_interface="in" units="dimensionless"/>
        <!--Inputs-->
        <variable name="mu_p" public_interface="in" units="J_per_mol"/>
        <variable name="mu_C" public_interface="in" units="J_per_mol"/>
        <variable name="mu_O" public_interface="in" units="J_per_mol"/>
        <!--Outputs-->
        <variable name="v_g_X" public_interface="out" units="fmol_per_sec"/>
        <variable name="v_g" public_interface="out" units="fmol_per_sec"/>
        <!--Intermediate variables-->
        <variable name="mu_g_zf" units="J_per_mol"/>
        <variable name="mu_g_zr" units="J_per_mol"/>
        <variable name="A_g_f" units="J_per_mol"/>
        <variable name="A_g_r" units="J_per_mol"/>
        <variable name="v_g_zf" units="fmol_per_sec"/>
        <variable name="v_g_zr" units="fmol_per_sec"/>
        <!-- Constitutive relation of the TF:z_f, TF:z_r and Re:re-->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>mu_g_zf</ci>
                <apply>
                    <times/>
                    <ci>z_g_f</ci>
                    <ci>mu_p</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_g_zf</ci>
                <apply>
                    <times/>
                    <ci>z_g_f</ci>
                    <ci>v_g</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>mu_g_zr</ci>
                <apply>
                    <times/>
                    <ci>z_g_r</ci>
                    <ci>mu_p</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_g_zr</ci>
                <apply>
                    <times/>
                    <ci>z_g_r</ci>
                    <ci>v_g</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_g</ci>
                <apply>
                    <times/>
                    <ci>kappa_g</ci>
                    <apply>
                        <minus/>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>A_g_f</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>A_g_r</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <!--Conservation laws-->
            <apply>
                <eq/>
                <ci>A_g_f</ci>
                <apply>
                    <plus/>
                    <ci>mu_g_zf</ci>
                    <ci>mu_C</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>A_g_r</ci>
                <apply>
                    <plus/>
                    <ci>mu_g_zr</ci>
                    <ci>mu_O</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>v_g_X</ci>
                <apply>
                    <minus/>
                    <ci>v_g_zr</ci>
                    <ci>v_g_zf</ci>
                </apply>
            </apply>
        </math>
    </component>
    <group>
        <relationship_ref relationship="encapsulation"/>
        <component_ref component="gate_BG">
            <component_ref component="constants_BG"/>
        </component_ref>
    </group>
    <connection>
        <map_components component_1="gate_BG" component_2="constants_BG"/>
        <map_variables variable_1="R" variable_2="R"/>
    </connection>
</model>