- Author:
- David Nickerson <nickerso@users.sourceforge.net>
- Date:
- 2016-07-11 15:49:55+12:00
- Desc:
- adding inital reset example, based on test model from the CellML API (https://github.com/cellmlapi/cellml-api/blob/master/tests/test_xml/reset_rule.xml)
- Permanent Source URI:
- https://models.physiomeproject.org/workspace/351/rawfile/f480f6557181a63cb7746ccbe12ba33402a9596d/top-level-piecewise.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">
<piecewise id="the_piecewise">
<piece id="the_piece">
<apply id="reset_x"><eq/>
<ci>x</ci>
<cn cellml:units="dimensionless">1</cn>
</apply>
<apply id="x_condition"><geq/>
<apply id="delayx"><csymbol definitionURL="http://www.cellml.org/cellml/infinitesimal-delay"/>
<ci>x</ci>
</apply>
<cn cellml:units="dimensionless">10</cn>
</apply>
</piece>
<otherwise id="the_otherwise">
<apply id="time_rate">
<eq/>
<apply>
<diff/>
<ci>x</ci>
<bvar><ci>time</ci></bvar>
</apply>
<cn cellml:units="dimensionless">1</cn>
</apply>
</otherwise>
</piecewise>
</math>
</component>
</model>