Skip to content

Commit

Permalink
Add variable alias "h_ft" to BouncingBall/FMI3.xml
Browse files Browse the repository at this point in the history
fixes #96
  • Loading branch information
t-sommer committed Dec 8, 2024
1 parent 155aa0c commit cf57849
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion BouncingBall/FMI3.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
<UnitDefinitions>
<Unit name="m">
<BaseUnit m="1"/>
<DisplayUnit name="ft" factor="3.280839895"/>
</Unit>
<Unit name="m/s">
<BaseUnit m="1" s="-1"/>
Expand All @@ -49,7 +50,9 @@

<ModelVariables>
<Float64 name="time" valueReference="0" causality="independent" variability="continuous" description="Simulation time"/>
<Float64 name="h" valueReference="1" causality="output" variability="continuous" initial="exact" declaredType="Position" start="1" reinit="true" description="Position of the ball" intermediateUpdate="true"/>
<Float64 name="h" valueReference="1" causality="output" variability="continuous" initial="exact" declaredType="Position" start="1" reinit="true" description="Position of the ball" intermediateUpdate="true">
<Alias name="h_ft" description="Position in feet" displayUnit="ft"/>
</Float64>
<Float64 name="der(h)" valueReference="2" causality="local" variability="continuous" initial="calculated" declaredType="Velocity" derivative="1" description="Derivative of h"/>
<Float64 name="v" valueReference="3" causality="output" variability="continuous" initial="exact" declaredType="Velocity" start="0" reinit="true" description="Velocity of the ball" intermediateUpdate="true"/>
<Float64 name="der(v)" valueReference="4" causality="local" variability="continuous" initial="calculated" declaredType="Acceleration" derivative="3" description="Derivative of v"/>
Expand Down

0 comments on commit cf57849

Please sign in to comment.