Location: cellLib @ 4ff19c3f257b / Components / gating_kinetics.cellml

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-04-20 20:26:31+12:00
Desc:
Add concentration clamp; Check interface IO when mapping; Add init in the csv to allow building a model with init:
Permanent Source URI:
https://models.fieldml.org/workspace/6bc/rawfile/4ff19c3f257b33704e3c001e62550111f4ed828a/Components/gating_kinetics.cellml

<?xml version='1.0' encoding='UTF-8'?>
<model name="gating_kinetics" 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="ms" units_ref="ms"/>
    </import>
    <import xlink:href="phiT.cellml">
        <component component_ref="phiT" name="phiT"/>
    </import>
    <component name="gating_kinetics">
        <variable name="time" public_interface="in" units="ms"/>
        <variable name="X_init" public_interface="in" units="dimensionless"/>
        <variable name="X_inf" public_interface="in" units="dimensionless"/>
        <variable name="tau_X" public_interface="in" units="ms"/>
        <variable name="Q_10" private_interface="out" public_interface="in" units="dimensionless"/>
        <variable name="T" private_interface="out" public_interface="in" units="kelvin"/>
        <variable name="T_0" private_interface="out" public_interface="in" units="kelvin"/>
        <variable name="phi_T" private_interface="in" units="dimensionless"/>
        <variable initial_value="X_init" name="X" public_interface="out" units="dimensionless"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>X</ci>
                </apply>
                <apply>
                    <times/>
                    <apply>
                        <divide/>
                        <apply>
                            <minus/>
                            <ci>X_inf</ci>
                            <ci>X</ci>
                        </apply>
                        <ci>tau_X</ci>
                    </apply>
                    <ci>phi_T</ci>
                </apply>
            </apply>
        </math>
    </component>
    <group>
        <relationship_ref relationship="encapsulation"/>
        <component_ref component="gating_kinetics">
            <component_ref component="phiT"/>
        </component_ref>
    </group>
    <connection>
        <map_components component_1="gating_kinetics" component_2="phiT"/>
        <map_variables variable_1="T" variable_2="T"/>
        <map_variables variable_1="T_0" variable_2="T_0"/>
        <map_variables variable_1="Q_10" variable_2="Q_10"/>
        <map_variables variable_1="phi_T" variable_2="phi_T"/>
    </connection>
</model>