Location: A Quantitative Model of Gastric Smooth Muscle Cellular Activation @ d240a295f3b9 / Istim / Istim.cellml

Author:
Leyla <lnor300>
Date:
2022-09-28 15:32:13+13:00
Desc:
..
Permanent Source URI:
https://models.physiomeproject.org/workspace/919/rawfile/d240a295f3b924c79033a0da95a7b33466b386e4/Istim/Istim.cellml

<?xml version='1.0' encoding='UTF-8'?>
<model name="Istim" 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="../common/units.cellml">
        <units name="current_units" units_ref="current_units"/>
        <units name="voltage_units" units_ref="voltage_units"/>
        <units name="time_units" units_ref="time_units"/>
        <units name="conductance_units" units_ref="conductance_units"/>
        <units name="rate_constants_units" units_ref="rate_constants_units"/>
    </import>
    <component name="I_stim">
        <variable name="time" public_interface="in" units="time_units"/>
        <variable name="local_time" units="time_units"/>
        <variable initial_value="20000" name="period" units="time_units"/>
        <variable name="stim_start" units="time_units"/>
        <variable initial_value="59" name="delta_VICC" units="voltage_units"/>
        <variable name="Gcouple" public_interface="in" units="conductance_units"/>
        <variable initial_value="98" name="t_ICCpeak" units="time_units"/>
        <variable initial_value="7582" name="t_ICCplateau" units="time_units"/>
        <variable initial_value="10000" name="t_ICC_stimulus" units="time_units"/>
        <variable initial_value="37.25" name="V_decay" units="voltage_units"/>
        <variable name="I_stim" public_interface="out" units="current_units"/>
        <variable initial_value="0" name="m" public_interface="out" units="dimensionless"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>m</ci>
                </apply>
                <cn cellml:units="rate_constants_units">1</cn>
            </apply>
            <apply>
                <eq/>
                <ci>stim_start</ci>
                <piecewise>
                    <piece>
                        <apply>
                            <times/>
                            <ci>period</ci>
                            <cn cellml:units="dimensionless">1.0</cn>
                        </apply>
                        <apply>
                            <and/>
                            <apply>
                                <gt/>
                                <ci>time</ci>
                                <apply>
                                    <times/>
                                    <ci>period</ci>
                                    <cn cellml:units="dimensionless">1.0</cn>
                                </apply>
                            </apply>
                            <apply>
                                <leq/>
                                <ci>time</ci>
                                <apply>
                                    <times/>
                                    <ci>period</ci>
                                    <cn cellml:units="dimensionless">2.0</cn>
                                </apply>
                            </apply>
                        </apply>
                    </piece>
                    <piece>
                        <apply>
                            <times/>
                            <ci>period</ci>
                            <cn cellml:units="dimensionless">2.0</cn>
                        </apply>
                        <apply>
                            <and/>
                            <apply>
                                <gt/>
                                <ci>time</ci>
                                <apply>
                                    <times/>
                                    <ci>period</ci>
                                    <cn cellml:units="dimensionless">2.0</cn>
                                </apply>
                            </apply>
                            <apply>
                                <leq/>
                                <ci>time</ci>
                                <apply>
                                    <times/>
                                    <ci>period</ci>
                                    <cn cellml:units="dimensionless">3.0</cn>
                                </apply>
                            </apply>
                        </apply>
                    </piece>
                    <piece>
                        <apply>
                            <times/>
                            <ci>period</ci>
                            <cn cellml:units="dimensionless">3.0</cn>
                        </apply>
                        <apply>
                            <and/>
                            <apply>
                                <gt/>
                                <ci>time</ci>
                                <apply>
                                    <times/>
                                    <ci>period</ci>
                                    <cn cellml:units="dimensionless">3.0</cn>
                                </apply>
                            </apply>
                            <apply>
                                <leq/>
                                <ci>time</ci>
                                <apply>
                                    <times/>
                                    <ci>period</ci>
                                    <cn cellml:units="dimensionless">4.0</cn>
                                </apply>
                            </apply>
                        </apply>
                    </piece>
                    <piece>
                        <apply>
                            <times/>
                            <ci>period</ci>
                            <cn cellml:units="dimensionless">4.0</cn>
                        </apply>
                        <apply>
                            <and/>
                            <apply>
                                <gt/>
                                <ci>time</ci>
                                <apply>
                                    <times/>
                                    <ci>period</ci>
                                    <cn cellml:units="dimensionless">4.0</cn>
                                </apply>
                            </apply>
                            <apply>
                                <leq/>
                                <ci>time</ci>
                                <apply>
                                    <times/>
                                    <ci>period</ci>
                                    <cn cellml:units="dimensionless">5.0</cn>
                                </apply>
                            </apply>
                        </apply>
                    </piece>
                    <otherwise>
                        <cn cellml:units="time_units">0.0</cn>
                    </otherwise>
                </piecewise>
            </apply>
            <apply>
                <eq/>
                <ci>local_time</ci>
                <apply>
                    <minus/>
                    <ci>time</ci>
                    <apply>
                        <plus/>
                        <ci>stim_start</ci>
                        <ci>t_ICCpeak</ci>
                    </apply>
                </apply>
            </apply>
            <apply>
                <eq/>
                <ci>I_stim</ci>
                <piecewise>
                    <piece>
                        <apply>
                            <times/>
                            <ci>Gcouple</ci>
                            <ci>delta_VICC</ci>
                        </apply>
                        <apply>
                            <lt/>
                            <ci>local_time</ci>
                            <ci>t_ICCpeak</ci>
                        </apply>
                    </piece>
                    <piece>
                        <apply>
                            <divide/>
                            <apply>
                                <times/>
                                <ci>Gcouple</ci>
                                <ci>delta_VICC</ci>
                                <cn cellml:units="dimensionless">1.0</cn>
                            </apply>
                            <apply>
                                <plus/>
                                <cn cellml:units="dimensionless">1.0</cn>
                                <apply>
                                    <exp/>
                                    <apply>
                                        <divide/>
                                        <apply>
                                            <minus/>
                                            <ci>local_time</ci>
                                            <cn cellml:units="time_units">8000</cn>
                                        </apply>
                                        <cn cellml:units="time_units">1000</cn>
                                    </apply>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <and/>
                            <apply>
                                <geq/>
                                <ci>local_time</ci>
                                <ci>t_ICCpeak</ci>
                            </apply>
                            <apply>
                                <leq/>
                                <ci>local_time</ci>
                                <ci>t_ICCplateau</ci>
                            </apply>
                        </apply>
                    </piece>
                    <piece>
                        <apply>
                            <divide/>
                            <apply>
                                <times/>
                                <ci>Gcouple</ci>
                                <ci>V_decay</ci>
                                <cn cellml:units="dimensionless">1.0</cn>
                            </apply>
                            <apply>
                                <plus/>
                                <cn cellml:units="dimensionless">1.0</cn>
                                <apply>
                                    <exp/>
                                    <apply>
                                        <divide/>
                                        <apply>
                                            <minus/>
                                            <ci>local_time</ci>
                                            <cn cellml:units="time_units">8000</cn>
                                        </apply>
                                        <cn cellml:units="time_units">150</cn>
                                    </apply>
                                </apply>
                            </apply>
                        </apply>
                        <apply>
                            <and/>
                            <apply>
                                <gt/>
                                <ci>local_time</ci>
                                <ci>t_ICCplateau</ci>
                            </apply>
                            <apply>
                                <lt/>
                                <ci>local_time</ci>
                                <ci>t_ICC_stimulus</ci>
                            </apply>
                        </apply>
                    </piece>
                    <otherwise>
                        <cn cellml:units="current_units">0.0</cn>
                    </otherwise>
                </piecewise>
            </apply>
        </math>
    </component>
</model>