Location: cellLib @ 4d87e24edb37 / BG / Re_BG.cellml

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-08-02 19:00:05+12:00
Desc:
Add BG paras_conv.m
Permanent Source URI:
https://models.fieldml.org/workspace/6bc/rawfile/4d87e24edb3731b3379a42ab58e90c4c1c0a7f7b/BG/Re_BG.cellml

<?xml version='1.0' encoding='UTF-8'?>
<!-- The BG of a chemical reaction-->
<model name="Re_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_per_sec" units_ref="fmol_per_sec"/>
    </import>
    <import xlink:href="constants_BG.cellml">
        <component component_ref="constants_BG" name="constants_BG"/>
    </import>
    <component name="Re_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" public_interface="in" units="fmol_per_sec"/>
        <!--Inputs-->
        <variable name="A_f" public_interface="in" units="J_per_mol"/>
        <variable name="A_r" public_interface="in" units="J_per_mol"/>
        <!--Outputs-->
        <variable name="v" public_interface="out" units="fmol_per_sec"/>
        <!-- Constitutive relation of the reaction-->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>v</ci>
                <apply>
                    <times/>
                    <ci>kappa</ci>
                    <apply>
                        <minus/>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>A_f</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <exp/>
                            <apply>
                                <divide/>
                                <ci>A_r</ci>
                                <apply>
                                    <times/>
                                    <ci>R</ci>
                                    <ci>T</ci>
                                </apply>
                            </apply>
                        </apply>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
    <group>
        <relationship_ref relationship="encapsulation"/>
        <component_ref component="Re_BG">
            <component_ref component="constants_BG"/>
        </component_ref>
    </group>
    <connection>
        <map_components component_1="Re_BG" component_2="constants_BG"/>
        <map_variables variable_1="R" variable_2="R"/>
    </connection>
</model>