Location: OpenCOR @ 902e04339cd9 / tests / cellml / cellml_1_1 / experiments / periodic-IStim-protocol.xml

Author:
Alan Garny <a.garny@auckland.ac.nz>
Date:
2018-12-05 18:16:37-05:00
Desc:
Models that come with the OpenCOR repository.
Permanent Source URI:
http://models.cellml.org/workspace/55d/rawfile/902e04339cd9643a375562c2b871da8a3a801060/tests/cellml/cellml_1_1/experiments/periodic-IStim-protocol.xml

<?xml version='1.0'?>
<model name="periodic_IStim" xmlns="http://www.cellml.org/cellml/1.1#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:cmeta="http://www.cellml.org/metadata/1.0#" xmlns:xlink="http://www.w3.org/1999/xlink">
    <import xlink:href="../components/units.xml">
        <units name="ms" units_ref="ms"/>
        <units name="uA_per_cmsq" units_ref="uA_per_cmsq"/>
    </import>
    <component name="stimulus_protocol">
        <variable name="IStim" public_interface="out" units="uA_per_cmsq"/>
        <variable name="time" public_interface="in" units="ms"/>
        <variable name="stimPeriod" public_interface="in" units="ms"/>
        <variable name="stimDuration" public_interface="in" units="ms"/>
        <variable name="stimCurrent" public_interface="in" units="uA_per_cmsq"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply cmeta:id="stimulus_calculation">
                <eq/>
                <ci>IStim</ci>
                <piecewise>
                    <piece>
                        <ci>stimCurrent</ci>
                        <apply>
                            <lt/>
                            <apply>
                                <rem/>
                                <ci>time</ci>
                                <ci>stimPeriod</ci>
                            </apply>
                            <ci>stimDuration</ci>
                        </apply>
                    </piece>
                    <otherwise>
                        <cn cellml:units="uA_per_cmsq">0</cn>
                    </otherwise>
                </piecewise>
            </apply>
        </math>
    </component>
</model>