- Author:
- WeiweiAi <wai484@aucklanduni.ac.nz>
- Date:
- 2022-08-02 15:14:59+12:00
- Desc:
- Add the BG of a chemical reaction
- Permanent Source URI:
- https://models.cellml.org/workspace/6bc/rawfile/c856b59f39db721d14e9e3e77a231ff986471f95/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>