forked from precice/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFMI3.xml
163 lines (157 loc) · 4.36 KB
/
FMI3.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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<?xml version="1.0" encoding="UTF-8" ?>
<fmiModelDescription
fmiVersion="3.0"
modelName="Oscillator"
description="This model is used for the partitioned simulation of an oscillator with three springs and two masses. The oscillator is cut in the middle spring for partitioning. Here, two springs with one mass between them are calculated."
generationTool="Reference FMUs (development build)"
instantiationToken="{1AE5E10D-9521-4DE3-80B9-D0EAAA7D5AF1}">
<ModelExchange
modelIdentifier="Oscillator"
canGetAndSetFMUstate="true"
canSerializeFMUstate="false" />
<CoSimulation
modelIdentifier="Oscillator"
canGetAndSetFMUState="true"
canSerializeFMUState="false"
canHandleVariableCommunicationStepSize="true"
providesIntermediateUpdate="false"
canReturnEarlyAfterIntermediateUpdate="false"
fixedInternalStepSize="1e-3"
hasEventMode="true" />
<UnitDefinitions>
<Unit name="N/m">
<BaseUnit s="-2" kg="1" />
</Unit>
<Unit name="rad/s">
<BaseUnit s="-1" />
</Unit>
<Unit name="Hz">
<BaseUnit s="-1" />
</Unit>
<Unit name="kg">
<BaseUnit kg="1" />
</Unit>
<Unit name="N">
<BaseUnit m="1" s="-2" kg="1" />
</Unit>
<Unit name="m/s2">
<BaseUnit m="1" s="-2" />
</Unit>
<Unit name="m.s-2">
<BaseUnit m="1" s="-2" />
</Unit>
<Unit name="m.s-1">
<BaseUnit m="1" s="-1" />
</Unit>
<Unit name="m/s">
<BaseUnit m="1" s="-1" />
</Unit>
<Unit name="m">
<BaseUnit m="1" />
</Unit>
</UnitDefinitions>
<LogCategories>
<Category name="logEvents" description="Log events" />
<Category name="logStatusError" description="Log error messages" />
</LogCategories>
<DefaultExperiment startTime="0" stopTime="1" stepSize="1e-3" />
<ModelVariables>
<Float64
name="time"
valueReference="0"
causality="independent"
variability="continuous"
description="Simulation time" />
<Float64
name="mass.m"
valueReference="1"
causality="parameter"
variability="fixed"
initial="exact"
start="1"
unit="kg"
description="Mass of the body" />
<Float64
name="mass.u"
valueReference="2"
causality="parameter"
variability="tunable"
initial="exact"
start="0"
unit="m"
description="Absolute position of the body" />
<Float64
name="mass.v"
valueReference="3"
causality="parameter"
variability="tunable"
initial="exact"
start="0"
unit="m/s"
description="Velocity of the body" />
<Float64
name="mass.a"
valueReference="4"
causality="local"
variability="tunable"
initial="calculated"
unit="m/s2"
description="Acceleration of the body" />
<Float64
name="spring_fixed.c"
valueReference="5"
causality="parameter"
variability="fixed"
initial="exact"
start="3.1416"
unit="N/m"
description="Spring constant of the spring mounted on the wall" />
<Float64
name="spring_middle.c"
valueReference="6"
causality="parameter"
variability="fixed"
initial="exact"
start="3.1416"
unit="N/m"
description="Spring constant of the spring between the masses" />
<Float64
name="force_in"
valueReference="7"
causality="parameter"
variability="tunable"
initial="exact"
start="0"
unit="m"
description="Input force calculated by the other partition" />
<Float64
name="force_out"
valueReference="8"
causality="parameter"
variability="tunable"
initial="exact"
start="0"
unit="m"
description="Output force calculated by this partition" />
<Float64
name="alpha_f"
valueReference="9"
causality="parameter"
variability="fixed"
initial="exact"
start="0"
description="Parameter f of generalized alpha method" />
<Float64
name="alpha_m"
valueReference="10"
causality="parameter"
variability="fixed"
initial="exact"
start="0"
description="Parameter m of generalized alpha method" />
</ModelVariables>
<ModelStructure>
<Output valueReference="2" />
<InitialUnknown valueReference="4" dependencies="6 7" dependenciesKind="dependent dependent" />
</ModelStructure>
</fmiModelDescription>