- Author:
- WeiweiAi <wai484@aucklanduni.ac.nz>
- Date:
- 2021-04-28 18:15:33+12:00
- Desc:
- Change the unit of T from celsius to kelvin to in line with CellML2.0 spec (but the real temperature unit is still celsius, no need to do conversion when setting the temperature parameter for simulation)
- Permanent Source URI:
- https://models.cellml.org/workspace/64f/rawfile/c56e1d0255183a1d725eec025cbe79eeee2c8087/experiments/voltage_clamp_protocol.cellml
<?xml version='1.0' encoding='UTF-8'?>
<model name="voltage_clamp_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">
<!-- clamp the voltage for the experiments-->
<import xlink:href="../components/units.cellml">
<units name="ms" units_ref="ms"/>
<units name="mV" units_ref="mV"/>
</import>
<component name="voltage_clamp_protocol">
<variable name="V" public_interface="out" units="mV"/>
<variable name="time" public_interface="in" units="ms"/>
<variable name="t_start" public_interface="in" units="ms"/>
<variable name="t_end" public_interface="in" units="ms"/>
<variable name="V_clamp" public_interface="in" units="mV"/>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply id="voltage_clamp_calculation">
<eq/>
<ci>V</ci>
<piecewise>
<piece>
<ci>V_clamp</ci>
<apply>
<and/>
<apply>
<gt/>
<ci>time</ci>
<ci>t_start</ci>
</apply>
<apply>
<lt/>
<ci>time</ci>
<ci>t_end</ci>
</apply>
</apply>
</piece>
<otherwise>
<cn cellml:units="mV">0.0</cn>
</otherwise>
</piecewise>
</apply>
</math>
</component>
</model>