forked from MichaelClerx/cellml-validation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path5.2.7.unit_checking_piecewise_1.cellml
More file actions
38 lines (38 loc) · 1.12 KB
/
5.2.7.unit_checking_piecewise_1.cellml
File metadata and controls
38 lines (38 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
<?xml version="1.0" encoding="UTF-8"?>
<!-- CellML Test Suite. https://github.com/MichaelClerx/cellml-validation -->
<!-- CellML 1.0, 5.2.7: Unit checking: piecewise -->
<model name="unit_checking_piecewise_1"
xmlns="http://www.cellml.org/cellml/1.0#"
xmlns:cellml="http://www.cellml.org/cellml/1.0#">
<component name="A">
<variable name="x" units="ampere" initial_value="0" />
<variable name="y" units="volt" />
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq/>
<ci>y</ci>
<piecewise>
<piece>
<cn cellml:units="volt">123</cn>
<apply>
<eq />
<ci>x</ci>
<cn cellml:units="ampere">0</cn>
</apply>
</piece>
<piece>
<cn cellml:units="volt">456</cn>
<apply>
<eq />
<ci>x</ci>
<cn cellml:units="ampere">1</cn>
</apply>
</piece>
<otherwise>
<cn cellml:units="volt">0</cn>
</otherwise>
</piecewise>
</apply>
</math>
</component>
</model>