-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path4.4.4.dae_public_in.cellml
71 lines (66 loc) · 2.03 KB
/
4.4.4.dae_public_in.cellml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?xml version="1.0" encoding="UTF-8"?>
<!-- CellML Test Suite. https://github.com/MichaelClerx/cellml-validation -->
<!-- CellML 1.0, 4.4.4: A mathml:math can only modify 'owned' variables.
This rule gets a bit dodgy for algebraically defined models:
[component a]
variable x (in)
variable y (in)
y + x = 3
[component b]
variable x (out)
variable y (out)
variable z (in)
x + y + z = 10
[variable c]
variable z (out)
z = 2
Presuming here that this is invalid, because the equation in component a
"modifies" x and/or y. -->
<model name="dae_public_in"
xmlns="http://www.cellml.org/cellml/1.0#"
xmlns:cellml="http://www.cellml.org/cellml/1.0#">
<component name="a">
<variable name="x" units="dimensionless" public_interface="in" />
<variable name="y" units="dimensionless" public_interface="in" />
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq />
<apply>
<plus />
<ci>x</ci>
<ci>y</ci>
</apply>
<cn cellml:units="dimensionless">3</cn>
</apply>
</math>
</component>
<component name="b">
<variable name="x" units="dimensionless" public_interface="out" />
<variable name="y" units="dimensionless" public_interface="out" />
<variable name="z" units="dimensionless" public_interface="in" />
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply>
<eq />
<apply>
<plus />
<ci>x</ci>
<ci>y</ci>
<ci>z</ci>
</apply>
<cn cellml:units="dimensionless">10</cn>
</apply>
</math>
</component>
<component name="c">
<variable name="z" units="dimensionless" public_interface="out" initial_value="2" />
</component>
<connection>
<map_components component_1="a" component_2="b" />
<map_variables variable_1="x" variable_2="x" />
<map_variables variable_1="y" variable_2="y" />
</connection>
<connection>
<map_components component_1="b" component_2="c" />
<map_variables variable_1="z" variable_2="z" />
</connection>
</model>