Location: Prototype reset rules @ 8e8086eb003a / cellml-construct-when.xml

Author:
David Nickerson <nickerso@users.sourceforge.net>
Date:
2016-11-15 15:04:15+13:00
Desc:
rename file
Permanent Source URI:
https://staging.physiomeproject.org/workspace/351/rawfile/8e8086eb003ae31292cf0739526b47a9b73b3ec0/cellml-construct-when.xml

<?xml version="1.0" encoding="iso-8859-1"?>
<model
    name="reset"
    cmeta:id="reset"
    xmlns="http://www.cellml.org/cellml/2.0#"
    xmlns:cellml="http://www.cellml.org/cellml/2.0#">
  <component name="main" id="main">
    <variable name="time" units="dimensionless"/>
    <variable name="x" initial_value="0" units="dimensionless"/>
    <math xmlns="http://www.w3.org/1998/Math/MathML" id="eq1">
      <apply id="time_rate">
        <eq/>
        <apply>
          <diff/>
          <ci>x</ci>
          <bvar><ci>time</ci></bvar>
        </apply>
        <cn cellml:units="dimensionless">1</cn>
      </apply>
    </math>
    <set variable_ref=“x”>
	<cellml:when xmlns="http://www.w3.org/1998/Math/MathML”>
		<apply id="x_condition">
			<geq/>
			<ci>x</ci>
            		<cn cellml:units="dimensionless">10</cn>
          	</apply>
          	<cn cellml:units="dimensionless">1</cn>
	</cellml:when>
    </set>
  </component>
</model>