1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
2 | <OpenModelicaModelDescription
|
---|
3 | xmlns:exp="https://svn.jmodelica.org/trunk/XML/daeExpressions.xsd"
|
---|
4 | xmlns:equ="https://svn.jmodelica.org/trunk/XML/daeEquations.xsd"
|
---|
5 | xmlns:fun="https://svn.jmodelica.org/trunk/XML/daeFunctions.xsd"
|
---|
6 | xmlns:opt="https://svn.jmodelica.org/trunk/XML/daeOptimization.xsd"
|
---|
7 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
---|
8 | fmiVersion="1.0"
|
---|
9 | modelName="HysteresisEmbeddedControlNoWhen"
|
---|
10 | modelIdentifier="HysteresisEmbeddedControlNoWhen"
|
---|
11 | guid="{8c4e810f-3df3-4a00-8276-176fa3c9f9e0}"
|
---|
12 | generationDateAndTime="2016-05-16T15:14:58"
|
---|
13 | variableNamingConvention="Structured"
|
---|
14 | numberOfContinuousStates="1"
|
---|
15 | numberOfEventIndicators="0"
|
---|
16 | >
|
---|
17 |
|
---|
18 | <VendorAnnotations>
|
---|
19 | <Tool name="OpenModelica Compiler OpenModelica v1.9.6"> </Tool>
|
---|
20 | </VendorAnnotations>
|
---|
21 |
|
---|
22 | <defaultExperiment startTime="0.0" stopTime="1.0" tolerance="1e-006"/>
|
---|
23 |
|
---|
24 | <ModelVariables>
|
---|
25 | <ScalarVariable name="T" valueReference="0" variability="continuous" causality="internal" alias="noAlias">
|
---|
26 | <Real start="390.0" fixed="false" unit="K" displayUnit="K"/>
|
---|
27 | <QualifiedName>
|
---|
28 | <exp:QualifiedNamePart name="T"/>
|
---|
29 | </QualifiedName>
|
---|
30 | <isLinearTimedVariables>
|
---|
31 | <TimePoint index="0" isLinear="true"/>
|
---|
32 | </isLinearTimedVariables>
|
---|
33 | <VariableCategory>state</VariableCategory>
|
---|
34 | </ScalarVariable>
|
---|
35 | <ScalarVariable name="der(T)" valueReference="1" variability="continuous" causality="internal" alias="noAlias">
|
---|
36 | <Real unit="K" displayUnit="K"/>
|
---|
37 | <QualifiedName>
|
---|
38 | <exp:QualifiedNamePart name="T"/>
|
---|
39 | </QualifiedName>
|
---|
40 | <isLinearTimedVariables>
|
---|
41 | <TimePoint index="0" isLinear="true"/>
|
---|
42 | </isLinearTimedVariables>
|
---|
43 | <VariableCategory>derivative</VariableCategory>
|
---|
44 | </ScalarVariable>
|
---|
45 | <ScalarVariable name="Q" valueReference="2" variability="continuous" causality="internal" alias="noAlias">
|
---|
46 | <Real unit="W" displayUnit="W"/>
|
---|
47 | <QualifiedName>
|
---|
48 | <exp:QualifiedNamePart name="Q"/>
|
---|
49 | </QualifiedName>
|
---|
50 | <isLinearTimedVariables>
|
---|
51 | <TimePoint index="0" isLinear="true"/>
|
---|
52 | </isLinearTimedVariables>
|
---|
53 | <VariableCategory>algebraic</VariableCategory>
|
---|
54 | </ScalarVariable>
|
---|
55 | <ScalarVariable name="C" valueReference="3" variability="parameter" causality="internal" alias="noAlias">
|
---|
56 | <Real start="1.0" fixed="true" unit="J/K" displayUnit="J/K"/>
|
---|
57 | <QualifiedName>
|
---|
58 | <exp:QualifiedNamePart name="C"/>
|
---|
59 | </QualifiedName>
|
---|
60 | <isLinearTimedVariables>
|
---|
61 | <TimePoint index="0" isLinear="true"/>
|
---|
62 | </isLinearTimedVariables>
|
---|
63 | <VariableCategory>independentParameter</VariableCategory>
|
---|
64 | </ScalarVariable>
|
---|
65 |
|
---|
66 | <ScalarVariable name="Qcapacity" valueReference="4" variability="parameter" causality="internal" alias="noAlias">
|
---|
67 | <Real start="25.0" fixed="true" unit="W" displayUnit="W"/>
|
---|
68 | <QualifiedName>
|
---|
69 | <exp:QualifiedNamePart name="Qcapacity"/>
|
---|
70 | </QualifiedName>
|
---|
71 | <isLinearTimedVariables>
|
---|
72 | <TimePoint index="0" isLinear="true"/>
|
---|
73 | </isLinearTimedVariables>
|
---|
74 | <VariableCategory>independentParameter</VariableCategory>
|
---|
75 | </ScalarVariable>
|
---|
76 |
|
---|
77 | <ScalarVariable name="Tamb" valueReference="5" variability="parameter" causality="internal" alias="noAlias">
|
---|
78 | <Real start="285.0" fixed="true" unit="K" displayUnit="K"/>
|
---|
79 | <QualifiedName>
|
---|
80 | <exp:QualifiedNamePart name="Tamb"/>
|
---|
81 | </QualifiedName>
|
---|
82 | <isLinearTimedVariables>
|
---|
83 | <TimePoint index="0" isLinear="true"/>
|
---|
84 | </isLinearTimedVariables>
|
---|
85 | <VariableCategory>independentParameter</VariableCategory>
|
---|
86 | </ScalarVariable>
|
---|
87 |
|
---|
88 | <ScalarVariable name="Tbar" valueReference="6" variability="parameter" causality="internal" alias="noAlias">
|
---|
89 | <Real start="295.0" fixed="true" unit="K" displayUnit="K"/>
|
---|
90 | <QualifiedName>
|
---|
91 | <exp:QualifiedNamePart name="Tbar"/>
|
---|
92 | </QualifiedName>
|
---|
93 | <isLinearTimedVariables>
|
---|
94 | <TimePoint index="0" isLinear="true"/>
|
---|
95 | </isLinearTimedVariables>
|
---|
96 | <VariableCategory>independentParameter</VariableCategory>
|
---|
97 | </ScalarVariable>
|
---|
98 |
|
---|
99 | <ScalarVariable name="h" valueReference="7" variability="parameter" causality="internal" alias="noAlias">
|
---|
100 | <Real start="2.0" fixed="true" unit="W/K" displayUnit="W/K"/>
|
---|
101 | <QualifiedName>
|
---|
102 | <exp:QualifiedNamePart name="h"/>
|
---|
103 | </QualifiedName>
|
---|
104 | <isLinearTimedVariables>
|
---|
105 | <TimePoint index="0" isLinear="true"/>
|
---|
106 | </isLinearTimedVariables>
|
---|
107 | <VariableCategory>independentParameter</VariableCategory>
|
---|
108 | </ScalarVariable>
|
---|
109 | </ModelVariables>
|
---|
110 |
|
---|
111 | <equ:BindingEquations>
|
---|
112 | <equ:BindingEquation>
|
---|
113 | <equ:Parameter>
|
---|
114 | <exp:QualifiedNamePart name="C"/>
|
---|
115 | </equ:Parameter>
|
---|
116 | <equ:BindingExp>
|
---|
117 | <exp:RealLiteral>1.0</exp:RealLiteral>
|
---|
118 | </equ:BindingExp>
|
---|
119 | </equ:BindingEquation>
|
---|
120 |
|
---|
121 | <equ:BindingEquation>
|
---|
122 | <equ:Parameter>
|
---|
123 | <exp:QualifiedNamePart name="Qcapacity"/>
|
---|
124 | </equ:Parameter>
|
---|
125 | <equ:BindingExp>
|
---|
126 | <exp:RealLiteral>25.0</exp:RealLiteral>
|
---|
127 | </equ:BindingExp>
|
---|
128 | </equ:BindingEquation>
|
---|
129 |
|
---|
130 | <equ:BindingEquation>
|
---|
131 | <equ:Parameter>
|
---|
132 | <exp:QualifiedNamePart name="Tamb"/>
|
---|
133 | </equ:Parameter>
|
---|
134 | <equ:BindingExp>
|
---|
135 | <exp:RealLiteral>285.0</exp:RealLiteral>
|
---|
136 | </equ:BindingExp>
|
---|
137 | </equ:BindingEquation>
|
---|
138 |
|
---|
139 | <equ:BindingEquation>
|
---|
140 | <equ:Parameter>
|
---|
141 | <exp:QualifiedNamePart name="Tbar"/>
|
---|
142 | </equ:Parameter>
|
---|
143 | <equ:BindingExp>
|
---|
144 | <exp:RealLiteral>295.0</exp:RealLiteral>
|
---|
145 | </equ:BindingExp>
|
---|
146 | </equ:BindingEquation>
|
---|
147 |
|
---|
148 | <equ:BindingEquation>
|
---|
149 | <equ:Parameter>
|
---|
150 | <exp:QualifiedNamePart name="h"/>
|
---|
151 | </equ:Parameter>
|
---|
152 | <equ:BindingExp>
|
---|
153 | <exp:RealLiteral>2.0</exp:RealLiteral>
|
---|
154 | </equ:BindingExp>
|
---|
155 | </equ:BindingEquation>
|
---|
156 | </equ:BindingEquations>
|
---|
157 |
|
---|
158 | <equ:DynamicEquations>
|
---|
159 | <equ:Equation>
|
---|
160 | <exp:Sub>
|
---|
161 | <exp:Identifier>
|
---|
162 | <exp:QualifiedNamePart name="Q"/>
|
---|
163 | </exp:Identifier>
|
---|
164 | <exp:FunctionCall>
|
---|
165 | <exp:Name>
|
---|
166 | <exp:QualifiedNamePart name="computeHeat"/>
|
---|
167 | </exp:Name>
|
---|
168 | <exp:Arguments>
|
---|
169 | <exp:Identifier>
|
---|
170 | <exp:QualifiedNamePart name="T"/>
|
---|
171 | </exp:Identifier>
|
---|
172 | <exp:Identifier>
|
---|
173 | <exp:QualifiedNamePart name="Tbar"/>
|
---|
174 | </exp:Identifier>
|
---|
175 | <exp:Identifier>
|
---|
176 | <exp:QualifiedNamePart name="Qcapacity"/>
|
---|
177 | </exp:Identifier>
|
---|
178 | </exp:Arguments>
|
---|
179 | </exp:FunctionCall>
|
---|
180 | </exp:Sub>
|
---|
181 | </equ:Equation>
|
---|
182 | <equ:Equation>
|
---|
183 | <exp:Sub>
|
---|
184 | <exp:Der>
|
---|
185 | <exp:Identifier>
|
---|
186 | <exp:QualifiedNamePart name="T"/>
|
---|
187 | </exp:Identifier>
|
---|
188 | </exp:Der>
|
---|
189 | <exp:Div>
|
---|
190 | <exp:Add>
|
---|
191 | <exp:Identifier>
|
---|
192 | <exp:QualifiedNamePart name="Q"/>
|
---|
193 | </exp:Identifier>
|
---|
194 | <exp:Mul>
|
---|
195 | <exp:Identifier>
|
---|
196 | <exp:QualifiedNamePart name="h"/>
|
---|
197 | </exp:Identifier>
|
---|
198 | <exp:Sub>
|
---|
199 | <exp:Identifier>
|
---|
200 | <exp:QualifiedNamePart name="Tamb"/>
|
---|
201 | </exp:Identifier>
|
---|
202 | <exp:Identifier>
|
---|
203 | <exp:QualifiedNamePart name="T"/>
|
---|
204 | </exp:Identifier>
|
---|
205 | </exp:Sub>
|
---|
206 | </exp:Mul>
|
---|
207 | </exp:Add>
|
---|
208 | <exp:Identifier>
|
---|
209 | <exp:QualifiedNamePart name="C"/>
|
---|
210 | </exp:Identifier>
|
---|
211 | </exp:Div>
|
---|
212 | </exp:Sub>
|
---|
213 | </equ:Equation>
|
---|
214 | </equ:DynamicEquations>
|
---|
215 |
|
---|
216 | <equ:InitialEquations>
|
---|
217 | <equ:Equation>
|
---|
218 | <exp:Sub>
|
---|
219 | <exp:Identifier>
|
---|
220 | <exp:QualifiedNamePart name="T"/>
|
---|
221 | </exp:Identifier>
|
---|
222 | <exp:RealLiteral>390.0</exp:RealLiteral>
|
---|
223 | </exp:Sub>
|
---|
224 | </equ:Equation>
|
---|
225 | </equ:InitialEquations>
|
---|
226 |
|
---|
227 | <fun:Algorithm>
|
---|
228 | </fun:Algorithm>
|
---|
229 |
|
---|
230 | <fun:RecordsList>
|
---|
231 | </fun:RecordsList>
|
---|
232 |
|
---|
233 | <fun:FunctionList>
|
---|
234 | <fun:Function>
|
---|
235 | <fun:Name>
|
---|
236 | <exp:QualifiedNamePart name="computeHeat"/>
|
---|
237 | </fun:Name>
|
---|
238 | <fun:OutputVariable type="real">
|
---|
239 | <fun:Name>
|
---|
240 | <exp:QualifiedNamePart name="heat"/>
|
---|
241 | </fun:Name>
|
---|
242 | </fun:OutputVariable>
|
---|
243 | <fun:InputVariable type="real">
|
---|
244 | <fun:Name>
|
---|
245 | <exp:QualifiedNamePart name="T"/>
|
---|
246 | </fun:Name>
|
---|
247 | </fun:InputVariable>
|
---|
248 | <fun:InputVariable type="real">
|
---|
249 | <fun:Name>
|
---|
250 | <exp:QualifiedNamePart name="Tbar"/>
|
---|
251 | </fun:Name>
|
---|
252 | </fun:InputVariable>
|
---|
253 | <fun:InputVariable type="real">
|
---|
254 | <fun:Name>
|
---|
255 | <exp:QualifiedNamePart name="Q"/>
|
---|
256 | </fun:Name>
|
---|
257 | </fun:InputVariable>
|
---|
258 | <fun:Algorithm>
|
---|
259 | <fun:Assign>
|
---|
260 | <exp:Identifier>
|
---|
261 | <exp:QualifiedNamePart name="heat"/>
|
---|
262 | </exp:Identifier>
|
---|
263 | <exp:Expression>
|
---|
264 | <exp:FunctionCall>
|
---|
265 | <exp:Name>
|
---|
266 | <exp:QualifiedNamePart name="computeHeat" />
|
---|
267 | </exp:Name>
|
---|
268 | <exp:Arguments>
|
---|
269 | <exp:Identifier>
|
---|
270 | <exp:QualifiedNamePart name="T"/>
|
---|
271 | </exp:Identifier>
|
---|
272 | <exp:Identifier>
|
---|
273 | <exp:QualifiedNamePart name="Tbar"/>
|
---|
274 | </exp:Identifier>
|
---|
275 | <exp:Identifier>
|
---|
276 | <exp:QualifiedNamePart name="Q"/>
|
---|
277 | </exp:Identifier>
|
---|
278 | </exp:Arguments>
|
---|
279 | </exp:FunctionCall>
|
---|
280 | </exp:Expression>
|
---|
281 | </fun:Assign>
|
---|
282 | </fun:Algorithm>
|
---|
283 | </fun:Function>
|
---|
284 | </fun:FunctionList>
|
---|
285 |
|
---|
286 |
|
---|
287 | </OpenModelicaModelDescription>
|
---|