Location: cellLib @ 701e8cebe4ae / Protocols / Voltage_ramp_protocol.cellml

Author:
WeiweiAi <wai484@aucklanduni.ac.nz>
Date:
2022-05-17 17:36:49+12:00
Desc:
Make a correction
Permanent Source URI:
https://models.cellml.org/workspace/6bc/rawfile/701e8cebe4ae7dde52fcefc1ea27c2fb6b39fdee/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>