Location: Diffusion @ 3b3c9e5bebde / Passive / Passive_Diffusion_module.cellml

Author:
Soroush <ssaf006@aucklanduni.ac.nz>
Date:
2017-03-03 13:29:27+13:00
Desc:
test
Permanent Source URI:
https://models.cellml.org/workspace/2b8/rawfile/3b3c9e5bebde7745385a86a63705ab3744c0d4e0/Passive/Passive_Diffusion_module.cellml

<?xml version='1.0'?>
<model name="Diffusion_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.cellml">
        <units name="mol_per_m3" units_ref="mol_per_m3"/>
        <units name="mol_per_m3_s" units_ref="mol_per_m3_s"/>
        <units name="per_m" units_ref="per_m"/>
        <units name="m_per_s" units_ref="m_per_s"/>
    </import>
    <component name="Diffusion">
        <variable initial_value="0.5" name="q_Na_o" public_interface="out" units="mol_per_m3"/>
        <variable initial_value="0.0" name="q_Na_i" public_interface="out" units="mol_per_m3"/>
        <variable name="v_Re" public_interface="in" units="mol_per_m3_s"/>
        <variable initial_value="10.0" name="K_Re" public_interface="out" units="m_per_s"/>
        <variable initial_value="0.1" name="rho" public_interface="out" units="per_m"/>
        <variable name="t" public_interface="out" units="second"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_Na_o</ci>
                </apply>
                <apply>
                    <minus/>
                    <ci>v_Re</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>t</ci>
                    </bvar>
                    <ci>q_Na_i</ci>
                </apply>
                <ci>v_Re</ci>
            </apply>
        </math>
    </component>
    <component name="module">
        <variable name="q_o" public_interface="in" units="mol_per_m3"/>
        <variable name="q_i" public_interface="in" units="mol_per_m3"/>
        <variable name="v_Re" public_interface="out" units="mol_per_m3_s"/>
        <variable name="K_Re" public_interface="in" units="m_per_s"/>
        <variable name="rho" public_interface="in" units="per_m"/>
        <variable name="t" public_interface="in" units="second"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>v_Re</ci>
                <apply>
                    <times/>
                    <ci>K_Re</ci>
                    <ci>rho</ci>
                    <apply>
                        <minus/>
                        <ci>q_o</ci>
                        <ci>q_i</ci>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
    <connection>
        <map_components component_1="module" component_2="Diffusion"/>
        <map_variables variable_1="t" variable_2="t"/>
        <map_variables variable_1="q_o" variable_2="q_Na_o"/>
        <map_variables variable_1="q_i" variable_2="q_Na_i"/>
        <map_variables variable_1="v_Re" variable_2="v_Re"/>
        <map_variables variable_1="K_Re" variable_2="K_Re"/>
        <map_variables variable_1="rho" variable_2="rho"/>
    </connection>
</model>