-
Notifications
You must be signed in to change notification settings - Fork 5
/
cellml1.0.xml
81 lines (81 loc) · 4.26 KB
/
cellml1.0.xml
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
72
73
74
75
76
77
78
79
80
81
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="../cellml1to2.xsl"?>
<model xmlns="http://www.cellml.org/cellml/1.0#" xmlns:cellml="http://www.cellml.org/cellml/1.1#" xmlns:cmeta="http://www.cellml.org/metadata/1.0#" cmeta:id="sin_approximations_import" name="sin_approximations_import">
<units name="mV_per_ms">
<unit units="volt" prefix="milli"/>
<unit units="second" prefix="milli" exponent="-1"/>
</units>
<units name="pH" base_units="yes"/>
<units name="fahrenheit">
<unit multiplier="1.8" units="celsius" offset="32.0"/>
</units>
<component cmeta:id="main" name="main">
<variable cmeta:id="x" initial_value="0" name="x" private_interface="out" public_interface="out" units="dimensionless"/>
<variable cmeta:id="sin" name="sin1" private_interface="in" public_interface="out" units="dimensionless"/>
<variable cmeta:id="deriv_approx" name="sin2" private_interface="in" public_interface="out" units="dimensionless"/>
<variable cmeta:id="deriv_approx_initial_value" initial_value="0" name="deriv_approx_initial_value" private_interface="out" public_interface="out" units="dimensionless"/>
<variable cmeta:id="parabolic_approx" name="sin3" private_interface="in" public_interface="out" units="dimensionless"/>
</component>
<component cmeta:id="sin" name="actual_sin">
<variable name="x" private_interface="out" public_interface="in" units="dimensionless"/>
<variable cmeta:id="sin" name="sin" private_interface="out" public_interface="out" units="dimensionless"/>
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply id="actual_sin">
<eq/>
<ci>sin</ci>
<apply>
<sin/>
<apply><plus/>
<ci>x</ci>
<cn cellml:units="dimensionless">1.0</cn>
</apply>
</apply>
</apply>
</math>
</component>
<component cmeta:id="component_1" name="test_component">
<variable name="test_no_interface" units="dimensionless"/>
<variable name="test_public_interface_in" units="dimensionless" public_interface="in"/>
<variable name="test_private_interface_in" units="dimensionless" private_interface="in"/>
<variable name="test_public_interface_out" units="dimensionless" public_interface="out"/>
<variable name="test_private_interface_out" units="dimensionless" private_interface="out"/>
<variable name="test_public_interface_none" units="dimensionless" public_interface="none"/>
<variable name="test_private_interface_none" units="dimensionless" private_interface="none"/>
<variable name="test_private_public_interface_none" units="dimensionless" private_interface="none" public_interface="none"/>
<variable name="test_private_none_public_in" units="dimensionless" private_interface="none" public_interface="in"/>
<variable name="test_private_out_public_none" units="dimensionless" private_interface="out" public_interface="none"/>
<!-- Note that this comment SHOULD be copied, but the reaction SHOULD NOT -->
<reaction reversible="yes">
<variable_ref variable="test_no_interface">
<role role="reactant" direction="forward" delta_variable="test_public_interface_in" stoichiometry="1"/>
</variable_ref>
<variable_ref variable="test_public_interface_out">
<role role="product" direction="forward" delta_variable="test_public_interface_out" stoichiometry="2"/>
</variable_ref>
<variable_ref variable="test_private_none_public_in">
<role role="rate">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<apply id="reaction_rate"><eq/>
<ci>test_private_none_public_in</ci>
<ci>test_private_interface_none</ci>
</apply>
</math>
</role>
</variable_ref>
</reaction>
</component>
<group cmeta:id="groupId">
<relationship_ref relationship="encapsulation"/>
<component_ref component="encaps_parent">
<component_ref component="child_with_id" cmeta:id="child1">
<component_ref component="grandchild1"/>
<component_ref component="grandchild2"/>
</component_ref>
</component_ref>
</group>
<connection>
<map_components component_1="main" component_2="actual_sin"/>
<map_variables variable_1="sin" variable_2="sin"/>
<map_variables variable_1="x" variable_2="x"/>
</connection>
</model>