Location: cellLib @ a83ba60c2977 / Components / Nernst_potential.cellml

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2021-09-21 17:30:16+12:00
Desc:
Add a unit
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/a83ba60c2977050357348be13f402be53fc91725/Components/Nernst_potential.cellml

<?xml version='1.0' encoding='UTF-8'?>
<model name="Nernst_potential" 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.cellml">
        <units name="J_per_K_mol" units_ref="J_per_K_mol"/>
        <units name="C_per_mmol" units_ref="C_per_mmol"/>
        <units name="mM" units_ref="mM"/>
        <units name="mV" units_ref="mV"/>
    </import>
    <component name="Nernst_potential">
        <variable name="R" public_interface="in" units="J_per_K_mol"/>
        <variable name="F" public_interface="in" units="C_per_mmol"/>
        <variable name="T" public_interface="in" units="kelvin"/>
        <variable name="z" public_interface="in" units="dimensionless"/>
        <variable name="X_i" public_interface="in" units="mM"/>
        <variable name="X_o" public_interface="in" units="mM"/>
        <variable cmeta:id="Nernst_potentials_E" name="E" public_interface="out" units="mV"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>E</ci>
                <apply>
                    <times/>
                    <apply>
                        <divide/>
                        <apply>
                            <times/>
                            <ci>R</ci>
                            <ci>T</ci>
                        </apply>
                        <apply>
                            <times/>
                            <ci>z</ci>
                            <ci>F</ci>
                        </apply>
                    </apply>
                    <apply>
                        <ln/>
                        <apply>
                            <divide/>
                            <ci>X_o</ci>
                            <ci>X_i</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
</model>