Location: cellLib @ c05a1749b300 / Protocols / Voltage_ramp_protocol.cellml

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-05-03 15:18:13+12:00
Desc:
Seperate the setlim for plotExp.py; Update readme.txt
Permanent Source URI:
https://models.physiomeproject.org/workspace/6bc/rawfile/c05a1749b3003de5c15cc530b579b4671106b978/Protocols/Voltage_ramp_protocol.cellml

<?xml version='1.0' encoding='UTF-8'?>
<model name="Voltage_ramp_protocol" 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">
    <!-- Generate a ramp voltage-->
    <import xlink:href="../Components/units.cellml">
        <units name="ms" units_ref="ms"/>
        <units name="mV" units_ref="mV"/>
        <units name="mV_per_ms" units_ref="mV_per_ms"/>
        <units name="mV_per_s" units_ref="mV_per_s"/>
    </import>
    <component name="vramp_protocol_ms">
        <variable name="time" public_interface="in" units="ms"/>
        <variable name="V_init" public_interface="in" units="mV"/>
        <variable name="V_rate" public_interface="in" units="mV_per_ms"/>
        <variable initial_value="V_init" name="V" public_interface="out" units="mV"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>V</ci>
                </apply>
                <ci>V_rate</ci>
            </apply>
        </math>
    </component>
    <component name="vramp_protocol_s">
        <variable name="time" public_interface="in" units="second"/>
        <variable name="V_init" public_interface="in" units="mV"/>
        <variable name="V_rate" public_interface="in" units="mV_per_s"/>
        <variable initial_value="V_init" name="V" public_interface="out" units="mV"/>
        <math xmlns="http://www.w3.org/1998/Math/MathML">
            <apply>
                <eq/>
                <apply>
                    <diff/>
                    <bvar>
                        <ci>time</ci>
                    </bvar>
                    <ci>V</ci>
                </apply>
                <ci>V_rate</ci>
            </apply>
        </math>
    </component>
</model>