Location: cellLib @ 4ff19c3f257b / Components / gate_steady.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/gate_steady.cellml

<?xml version='1.0' encoding='UTF-8'?>
<model name="gate_steady" 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">
    <!-- Compute steady state values of a gate-->
    <import xlink:href="units.cellml">
        <units name="per_ms" units_ref="per_ms"/>
        <units name="ms" units_ref="ms"/>
    </import>
    <component name="gate_steady">
        <variable name="X_s" public_interface="out" units="dimensionless"/>
        <variable name="alpha_X" public_interface="in" units="per_ms"/>
        <variable name="beta_X" public_interface="in" units="per_ms"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>X_s</ci>
                <apply>
                    <divide/>
                    <ci>alpha_X</ci>
                    <apply>
                        <plus/>
                        <ci>alpha_X</ci>
                        <ci>beta_X</ci>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
    <component name="time_const">
        <variable name="tau_X" public_interface="out" units="ms"/>
        <variable name="alpha_X" public_interface="in" units="per_ms"/>
        <variable name="beta_X" public_interface="in" units="per_ms"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <ci>tau_X</ci>
                <apply>
                    <divide/>
                    <cn cellml:units="dimensionless">1</cn>
                    <apply>
                        <plus/>
                        <ci>alpha_X</ci>
                        <ci>beta_X</ci>
                    </apply>
                </apply>
            </apply>
        </math>
    </component>
</model>