Location: Acid-Base Physiology @ 5c6d2c520a9f / BG / Boron-CO2.cellml

Author:
Soroush <ssaf006@aucklanduni.ac.nz>
Date:
2020-05-10 21:27:00+12:00
Desc:
added new sedml
Permanent Source URI:
https://models.fieldml.org/workspace/297/rawfile/5c6d2c520a9faad399fd954401d658362d25ef03/BG/Boron-CO2.cellml

<?xml version='1.0'?>
<model name="Boron_CO2" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#">
    <units name="per_s">
        <unit exponent="-1" units="second"/>
    </units>
    <units name="per_m">
        <unit exponent="-1" units="metre"/>
    </units>
    <units name="m_per_s">
        <unit units="metre"/>
        <unit exponent="-1" units="second"/>
    </units>
    <units name="mol_per_m3">
        <unit units="mole"/>
        <unit exponent="-3" units="metre"/>
    </units>
    <units name="mol_per_m2_s">
        <unit exponent="1" units="mole"/>
        <unit exponent="-2" units="metre"/>
        <unit exponent="-1" units="second"/>
    </units>
    <units name="mol_per_m3_s">
        <unit exponent="1" units="mole"/>
        <unit exponent="-3" units="metre"/>
        <unit exponent="-1" units="second"/>
    </units>
    <units name="J_per_C">
        <unit units="joule"/>
        <unit exponent="-1" units="coulomb"/>
    </units>
    <units name="C_per_mol">
        <unit units="coulomb"/>
        <unit exponent="-1" units="mole"/>
    </units>
    <units name="J_per_mol_K">
        <unit units="joule"/>
        <unit exponent="-1" units="mole"/>
        <unit exponent="-1" units="kelvin"/>
    </units>
    <units name="m3_per_mol">
        <unit exponent="3" units="metre"/>
        <unit exponent="-1" units="mole"/>
    </units>
    <component name="main">
        <variable name="t" units="second"/>
        <variable name="CO2_o" units="mol_per_m3"/>
        <variable name="CO2_i" units="mol_per_m3"/>
        <variable name="HCO3_i" units="mol_per_m3"/>
        <variable name="HCO3_o" units="mol_per_m3"/>
        <variable initial_value="0.0" name="TA_i" units="mol_per_m3"/>
        <variable initial_value="3.981071705534970e-05" name="H_i" units="mol_per_m3"/>
        <variable initial_value="1.995262314968879e-05" name="H_o" units="mol_per_m3"/>
        <variable initial_value="5.011872336272725e-05" name="H_Lim" units="mol_per_m3"/>
        <!-- Note: 5.0119e-05 mM (pH=7.3); 3.9811e-05 mM (pH=7.4)-->
        <variable name="J_CO2" units="mol_per_m2_s"/>
        <variable name="J_HCO3" units="mol_per_m2_s"/>
        <variable name="J_H" units="mol_per_m2_s"/>
        <variable name="pH_i" units="dimensionless"/>
        <variable name="pH_o" units="dimensionless"/>
        <variable name="pH_Lim" units="dimensionless"/>
        <variable name="alpha" units="dimensionless"/>
        <variable name="epsilon" units="dimensionless"/>
        <variable initial_value="296.15" name="T" units="kelvin"/>
        <variable initial_value="8.314" name="R" units="J_per_mol_K"/>
        <variable initial_value="96485" name="F" units="C_per_mol"/>
        <variable initial_value="0.00025" name="r" units="metre"/>
        <variable name="rho" units="per_m"/>
        <variable initial_value="26" name="beta" units="mol_per_m3"/>
        <variable initial_value="6e-5" name="P_CO2" units="m_per_s"/>
        <variable initial_value="5e-9" name="P_HCO3" units="m_per_s"/>
        <variable initial_value="1e-3" name="K_HA" units="mol_per_m3"/>
        <!-- Note: equivalent to pK=6.0-->
        <variable initial_value="-0.057" name="V_m" public_interface="out" units="J_per_C"/>
        <variable initial_value="300" name="k" units="per_s"/>
        <!-- Note: k varies from 0, 10, 75, 150, 300-->
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>CO2_o</ci>
                <piecewise>
                    <piece>
                        <cn cellml:units="mol_per_m3">0.0</cn>
                        <apply>
                            <lt/>
                            <ci>t</ci>
                            <cn cellml:units="second">100</cn>
                        </apply>
                    </piece>
                    <piece>
                        <cn cellml:units="mol_per_m3">1.1877</cn>
                        <apply>
                            <lt/>
                            <ci>t</ci>
                            <cn cellml:units="second">2800</cn>
                        </apply>
                    </piece>
                    <otherwise>
                        <cn cellml:units="mol_per_m3">0.0</cn>
                    </otherwise>
                </piecewise>
            </apply>
            <apply>
                <eq/>
                <ci>rho</ci>
                <apply>
                    <divide/>
                    <cn cellml:units="dimensionless">2</cn>
                    <ci>r</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>HCO3_o</ci>
                <apply>
                    <divide/>
                    <apply>
                        <times/>
                        <ci>K_HA</ci>
                        <ci>CO2_o</ci>
                    </apply>
                    <ci>H_o</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>epsilon</ci>
                <apply>
                    <exp/>
                    <apply>
                        <divide/>
                        <apply>
                            <times/>
                            <apply>
                                <minus/>
                                <ci>V_m</ci>
                            </apply>
                            <ci>F</ci>
                        </apply>
                        <apply>
                            <times/>
                            <ci>R</ci>
                            <ci>T</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>pH_Lim</ci>
                <apply>
                    <minus/>
                    <apply>
                        <log/>
                        <apply>
                            <times/>
                            <cn cellml:units="m3_per_mol" type="e-notation">1<sep/>-3</cn>
                            <ci>H_Lim</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>pH_i</ci>
                <apply>
                    <minus/>
                    <apply>
                        <log/>
                        <apply>
                            <times/>
                            <cn cellml:units="m3_per_mol" type="e-notation">1<sep/>-3</cn>
                            <ci>H_i</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>pH_o</ci>
                <apply>
                    <minus/>
                    <apply>
                        <log/>
                        <apply>
                            <times/>
                            <cn cellml:units="m3_per_mol" type="e-notation">1<sep/>-3</cn>
                            <ci>H_o</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>J_CO2</ci>
                <apply>
                    <times/>
                    <ci>P_CO2</ci>
                    <apply>
                        <minus/>
                        <ci>CO2_o</ci>
                        <ci>CO2_i</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>J_HCO3</ci>
                <apply>
                    <divide/>
                    <apply>
                        <times/>
                        <apply>
                            <divide/>
                            <apply>
                                <times/>
                                <ci>P_HCO3</ci>
                                <ci>V_m</ci>
                                <ci>F</ci>
                            </apply>
                            <apply>
                                <times/>
                                <ci>R</ci>
                                <ci>T</ci>
                            </apply>
                        </apply>
                        <apply>
                            <minus/>
                            <ci>HCO3_o</ci>
                            <apply>
                                <times/>
                                <ci>HCO3_i</ci>
                                <ci>epsilon</ci>
                            </apply>
                        </apply>
                    </apply>
                    <apply>
                        <minus/>
                        <cn cellml:units="dimensionless">1</cn>
                        <ci>epsilon</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>J_H</ci>
                <piecewise>
                    <piece>
                        <apply>
                            <times/>
                            <apply>
                                <divide/>
                                <ci>k</ci>
                                <ci>rho</ci>
                            </apply>
                            <apply>
                                <minus/>
                                <ci>H_i</ci>
                                <ci>H_Lim</ci>
                            </apply>
                        </apply>
                        <apply>
                            <lt/>
                            <ci>pH_i</ci>
                            <ci>pH_Lim</ci>
                        </apply>
                    </piece>
                    <otherwise>
                        <cn cellml:units="mol_per_m2_s">0.0</cn>
                    </otherwise>
                </piecewise>
            </apply>
            <apply>
                <eq/>
                <ci>alpha</ci>
                <apply>
                    <divide/>
                    <ci>H_i</ci>
                    <apply>
                        <plus/>
                        <ci>H_i</ci>
                        <ci>K_HA</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>CO2_i</ci>
                <apply>
                    <times/>
                    <ci>alpha</ci>
                    <ci>TA_i</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>HCO3_i</ci>
                <apply>
                    <times/>
                    <apply>
                        <minus/>
                        <cn cellml:units="dimensionless">1</cn>
                        <ci>alpha</ci>
                    </apply>
                    <ci>TA_i</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>TA_i</ci>
                </apply>
                <apply>
                    <times/>
                    <ci>rho</ci>
                    <apply>
                        <plus/>
                        <ci>J_CO2</ci>
                        <ci>J_HCO3</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>H_i</ci>
                </apply>
                <apply>
                    <times/>
                    <apply>
                        <divide/>
                        <apply>
                            <times/>
                            <cn cellml:units="dimensionless">2.303</cn>
                            <ci>H_i</ci>
                        </apply>
                        <ci>beta</ci>
                    </apply>
                    <ci>rho</ci>
                    <apply>
                        <minus/>
                        <apply>
                            <minus/>
                            <apply>
                                <times/>
                                <apply>
                                    <minus/>
                                    <cn cellml:units="dimensionless">1</cn>
                                    <ci>alpha</ci>
                                </apply>
                                <ci>J_CO2</ci>
                            </apply>
                            <apply>
                                <times/>
                                <ci>alpha</ci>
                                <ci>J_HCO3</ci>
                            </apply>
                        </apply>
                        <ci>J_H</ci>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
</model>