forked from modelica/Reference-FMUs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
FMI1CS.xml
47 lines (43 loc) · 2.01 KB
/
FMI1CS.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
<?xml version="1.0" encoding="UTF-8"?>
<fmiModelDescription
fmiVersion="1.0"
modelName="BouncingBall"
modelIdentifier="BouncingBall"
description="This model calculates the trajectory, over time, of a ball dropped from a height of 1 m."
generationTool="Reference FMUs (development build)"
guid="{1AE5E10D-9521-4DE3-80B9-D0EAAA7D5AF1}"
numberOfContinuousStates="2"
numberOfEventIndicators="1">
<DefaultExperiment startTime="0" stopTime="3"/>
<ModelVariables>
<ScalarVariable name="time" valueReference="0" causality="internal" variability="continuous" description="Simulation time">
<Real/>
</ScalarVariable>
<ScalarVariable name="h" valueReference="1" causality="output" description="Position of the ball">
<Real start="1"/>
</ScalarVariable>
<ScalarVariable name="der(h)" valueReference="2" causality="internal" variability="continuous" description="Derivative of h">
<Real/>
</ScalarVariable>
<ScalarVariable name="v" valueReference="3" causality="output" variability="continuous" description="Velocity of the ball">
<Real start="0"/>
</ScalarVariable>
<ScalarVariable name="der(v)" valueReference="4" causality="internal" variability="continuous" description="Derivative of v">
<Real/>
</ScalarVariable>
<ScalarVariable name="g" valueReference="5" variability="parameter" description="Gravity acting on the ball">
<Real start="-9.81"/>
</ScalarVariable>
<ScalarVariable name="e" valueReference="6" variability="parameter" description="Coefficient of restitution">
<Real start="0.7" min="0.5" max="1"/>
</ScalarVariable>
<ScalarVariable name="v_min" valueReference="7" variability="constant" description="Velocity below which the ball stops bouncing">
<Real start="0.1"/>
</ScalarVariable>
</ModelVariables>
<Implementation>
<CoSimulation_StandAlone>
<Capabilities canHandleVariableCommunicationStepSize="true" canHandleEvents="true"/>
</CoSimulation_StandAlone>
</Implementation>
</fmiModelDescription>