Location: Respiratory System @ cc002e29d036 / Ammonia_test.cellml

Author:
Soroush Safaei <ssaf006@aucklanduni.ac.nz>
Date:
2016-08-06 17:12:25+12:00
Desc:
adding ammonia
Permanent Source URI:
https://models.physiomeproject.org/workspace/3a4/rawfile/cc002e29d03685abf3742f3d05d4f0b3733b2749/Ammonia_test.cellml

<?xml version='1.0'?>
<model cmeta:id="NH3_hydration" name="NH3_hydration" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:cmeta="http://www.cellml.org/metadata/1.0#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <import xlink:href="Units/Units.cellml">
        <units name="M" units_ref="M"/>
        <units name="umol_per_s_per_cm2" units_ref="umol_per_s_per_cm2"/>
    </import>
    <import xlink:href="Ammonia.cellml">
        <component component_ref="Hydration" name="Hydration"/>
    </import>
    <component name="environment">
        <variable name="time" public_interface="out" units="second"/>
    </component>
    <component name="concentrations">
        <variable name="time" public_interface="in" units="second"/>
        <variable initial_value="0.00282e-3" name="NH3" public_interface="out" units="M"/>
        <variable initial_value="0.2e-3" name="NH4" public_interface="out" units="M"/>
        <variable initial_value="4.95e-8" name="H" public_interface="out" units="M"/>
        <variable name="pH" public_interface="out" units="dimensionless"/>
        <variable name="J_hyd" public_interface="in" units="dimensionless"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>pH</ci>
                <apply>
                    <minus/>
                    <apply>
                        <log/>
                        <ci>H</ci>
                    </apply>
                </apply>
            </apply>
            <!-- ode(H, time) = 1.0{M};-->
            <!--        ode(NH4, time) = J_hyd;-->
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>NH3</ci>
                </apply>
                <cn cellml:units="M">100.0</cn>
            </apply>
        </math>
    </component>
    <connection>
        <map_components component_1="concentrations" component_2="Hydration"/>
        <map_variables variable_1="NH3" variable_2="NH3"/>
        <map_variables variable_1="NH4" variable_2="NH4"/>
        <map_variables variable_1="pH" variable_2="pH"/>
        <map_variables variable_1="J_hyd" variable_2="J_hyd"/>
    </connection>
    <connection>
        <map_components component_1="concentrations" component_2="environment"/>
        <map_variables variable_1="time" variable_2="time"/>
    </connection>
</model>