Location: Model of excitation-contraction in uterine myocytes from a pregnant rat @ 1e8a68c9f921 / Components / IK1.cellml

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2021-09-14 17:32:05+12:00
Desc:
Add NS currents
Permanent Source URI:
https://models.physiomeproject.org/workspace/701/rawfile/1e8a68c9f92122aab2a28b05b34afe5aac611fdf/Components/IK1.cellml

<?xml version='1.0' encoding='UTF-8'?>
<model name="IK1" 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="../cellLib/Components/units.cellml">
        <units name="ms" units_ref="ms"/>
        <units name="pA_per_pF" units_ref="pA_per_pF"/>
        <units name="pA" units_ref="pA"/>
        <units name="nS" units_ref="nS"/>
        <units name="mV" units_ref="mV"/>
        <units name="mM" units_ref="mM"/>
        <units name="nS_per_pF" units_ref="nS_per_pF"/>
        <units name="J_per_K_mol" units_ref="J_per_K_mol"/>
        <units name="C_per_mmol" units_ref="C_per_mmol"/>
        <units name="pF_per_cmsq" units_ref="pF_per_cmsq"/>
        <units name="cmsq" units_ref="cmsq"/>
    </import>
    <import xlink:href="../cellLib/Components/Ionic_currents.cellml">
        <component component_ref="Ionic_currents" name="I_pA"/>
    </import>
    <import xlink:href="../cellLib/Components/E_Nernst.cellml">
        <component component_ref="E_K" name="E_K"/>
    </import>
    <import xlink:href="../cellLib/Components/gating_kinetics.cellml">
        <component component_ref="gating_kinetics" name="q_gate"/>
    </import>
    <import xlink:href="../cellLib/Components/gating_kinetics.cellml">
        <component component_ref="gating_kinetics" name="r1_gate"/>
    </import>
    <import xlink:href="../cellLib/Components/gating_kinetics.cellml">
        <component component_ref="gating_kinetics" name="r2_gate"/>
    </import>
    <import xlink:href="IK1_gating.cellml">
        <component component_ref="q_inf" name="q_inf"/>
        <component component_ref="r_inf" name="r_inf"/>
        <component component_ref="tau_q" name="tau_q"/>
        <component component_ref="tau_r1" name="tau_r1"/>
        <component component_ref="tau_r2" name="tau_r2"/>
    </import>
    <component name="IK1">
        <variable name="time" private_interface="out" public_interface="in" units="ms"/>
        <variable name="I_K1" private_interface="in" public_interface="out" units="pA_per_pF"/>
        <variable name="V" private_interface="out" public_interface="in" units="mV"/>
        <variable name="g_K1" private_interface="out" public_interface="in" units="nS_per_pF"/>
        <variable name="Cm" private_interface="out" public_interface="in" units="pF_per_cmsq"/>
        <variable name="Ac" private_interface="out" public_interface="in" units="cmsq"/>
        <variable name="R" private_interface="out" public_interface="in" units="J_per_K_mol"/>
        <variable name="F" private_interface="out" public_interface="in" units="C_per_mmol"/>
        <variable name="T" private_interface="out" public_interface="in" units="kelvin"/>
        <variable name="T0K" private_interface="out" public_interface="in" units="kelvin"/>
        <variable name="Q10K" private_interface="out" public_interface="in" units="dimensionless"/>
        <variable name="Ko" private_interface="out" public_interface="in" units="mM"/>
        <variable name="Ki" private_interface="out" public_interface="in" units="mM"/>
        <variable name="q_init" private_interface="out" public_interface="in" units="dimensionless"/>
        <variable name="q" private_interface="in" public_interface="out" units="dimensionless"/>
        <variable name="r1_init" private_interface="out" public_interface="in" units="dimensionless"/>
        <variable name="r_1" private_interface="in" public_interface="out" units="dimensionless"/>
        <variable name="r2_init" private_interface="out" public_interface="in" units="dimensionless"/>
        <variable name="r_2" private_interface="in" public_interface="out" units="dimensionless"/>
        <variable name="P_K1" private_interface="out" public_interface="out" units="dimensionless"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>P_K1</ci>
                <apply>
                    <times/>
                    <ci>q</ci>
                    <apply>
                        <plus/>
                        <apply>
                            <times/>
                            <cn cellml:units="dimensionless">0.38</cn>
                            <ci>r_1</ci>
                        </apply>
                        <apply>
                            <times/>
                            <cn cellml:units="dimensionless">0.62</cn>
                            <ci>r_2</ci>
                        </apply>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
    <component name="convert_I_pA">
        <variable name="I_K1" public_interface="out" units="pA_per_pF"/>
        <variable name="g_K1_ns" public_interface="out" units="nS"/>
        <variable name="I_pA" public_interface="in" units="pA"/>
        <variable name="g_K1" public_interface="in" units="nS_per_pF"/>
        <variable name="Cm" public_interface="in" units="pF_per_cmsq"/>
        <variable name="Ac" public_interface="in" units="cmsq"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>g_K1_ns</ci>
                <apply>
                    <times/>
                    <ci>g_K1</ci>
                    <ci>Cm</ci>
                    <ci>Ac</ci>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>I_K1</ci>
                <apply>
                    <divide/>
                    <ci>I_pA</ci>
                    <apply>
                        <times/>
                        <ci>Cm</ci>
                        <ci>Ac</ci>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
    <group>
        <relationship_ref relationship="encapsulation"/>
        <component_ref component="IK1">
            <component_ref component="I_pA"/>
            <component_ref component="convert_I_pA"/>
            <component_ref component="E_K"/>
            <component_ref component="q_gate"/>
            <component_ref component="r1_gate"/>
            <component_ref component="r2_gate"/>
            <component_ref component="q_inf"/>
            <component_ref component="r_inf"/>
            <component_ref component="tau_q"/>
            <component_ref component="tau_r1"/>
            <component_ref component="tau_r2"/>
        </component_ref>
    </group>
    <connection>
        <map_components component_1="IK1" component_2="q_inf"/>
        <map_variables variable_1="V" variable_2="V"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="r_inf"/>
        <map_variables variable_1="V" variable_2="V"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="tau_q"/>
        <map_variables variable_1="V" variable_2="V"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="tau_r1"/>
        <map_variables variable_1="V" variable_2="V"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="tau_r2"/>
        <map_variables variable_1="V" variable_2="V"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="q_gate"/>
        <map_variables variable_1="time" variable_2="time"/>
        <map_variables variable_1="T" variable_2="T"/>
        <map_variables variable_1="Q10K" variable_2="Q_10"/>
        <map_variables variable_1="T0K" variable_2="T_0"/>
        <map_variables variable_1="q_init" variable_2="X_init"/>
        <map_variables variable_1="q" variable_2="X"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="r1_gate"/>
        <map_variables variable_1="time" variable_2="time"/>
        <map_variables variable_1="T" variable_2="T"/>
        <map_variables variable_1="Q10K" variable_2="Q_10"/>
        <map_variables variable_1="T0K" variable_2="T_0"/>
        <map_variables variable_1="r1_init" variable_2="X_init"/>
        <map_variables variable_1="r_1" variable_2="X"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="r2_gate"/>
        <map_variables variable_1="time" variable_2="time"/>
        <map_variables variable_1="T" variable_2="T"/>
        <map_variables variable_1="Q10K" variable_2="Q_10"/>
        <map_variables variable_1="T0K" variable_2="T_0"/>
        <map_variables variable_1="r2_init" variable_2="X_init"/>
        <map_variables variable_1="r_2" variable_2="X"/>
    </connection>
    <connection>
        <map_components component_1="q_inf" component_2="q_gate"/>
        <map_variables variable_1="X_inf" variable_2="X_inf"/>
    </connection>
    <connection>
        <map_components component_1="r_inf" component_2="r1_gate"/>
        <map_variables variable_1="X_inf" variable_2="X_inf"/>
    </connection>
    <connection>
        <map_components component_1="r_inf" component_2="r2_gate"/>
        <map_variables variable_1="X_inf" variable_2="X_inf"/>
    </connection>
    <connection>
        <map_components component_1="tau_q" component_2="q_gate"/>
        <map_variables variable_1="tau" variable_2="tau_X"/>
    </connection>
    <connection>
        <map_components component_1="tau_r1" component_2="r1_gate"/>
        <map_variables variable_1="tau" variable_2="tau_X"/>
    </connection>
    <connection>
        <map_components component_1="tau_r2" component_2="r2_gate"/>
        <map_variables variable_1="tau" variable_2="tau_X"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="I_pA"/>
        <map_variables variable_1="V" variable_2="V"/>
        <map_variables variable_1="P_K1" variable_2="PO"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="E_K"/>
        <map_variables variable_1="R" variable_2="R"/>
        <map_variables variable_1="F" variable_2="F"/>
        <map_variables variable_1="T" variable_2="T"/>
        <map_variables variable_1="Ki" variable_2="Ki"/>
        <map_variables variable_1="Ko" variable_2="Ko"/>
    </connection>
    <connection>
        <map_components component_1="E_K" component_2="I_pA"/>
        <map_variables variable_1="E_K" variable_2="E"/>
    </connection>
    <connection>
        <map_components component_1="convert_I_pA" component_2="I_pA"/>
        <map_variables variable_1="I_pA" variable_2="I"/>
        <map_variables variable_1="g_K1_ns" variable_2="g_max"/>
    </connection>
    <connection>
        <map_components component_1="IK1" component_2="convert_I_pA"/>
        <map_variables variable_1="I_K1" variable_2="I_K1"/>
        <map_variables variable_1="g_K1" variable_2="g_K1"/>
        <map_variables variable_1="Cm" variable_2="Cm"/>
        <map_variables variable_1="Ac" variable_2="Ac"/>
    </connection>
</model>