forked from modelica/Reference-FMUs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.html
119 lines (104 loc) · 2.2 KB
/
readme.html
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
<html>
<head>
<title>BouncingBall</title>
<style>
body {
font-family: Helvetica, Arial, Sans-Serif;
margin: 2em;
}
div.container {
max-width: 750px;
margin: auto;
}
h1, h2 {
border-bottom: 1px solid #eaecef;
padding-bottom: .3em;
}
pre {
background-color: #f6f8fa;
border-radius: 3px;
font-size: 85%;
line-height: 1.45;
overflow: auto;
padding: 16px;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
th, td {
font-size: 0.9em;
border: 1px solid #dfe2e5;
padding: 6px 13px;
}
</style>
</head>
<body>
<div class="container">
<h1>BouncingBall</h1>
<p>The BouncingBall implements the following equation:</p>
<pre><code>der(h) = v
der(v) = -g
when h <= 0 then h := 0 and v := -e * v
when v < v_min then h := 0 and v := 0
</code></pre>
<p>whith the variables</p>
<table>
<thead>
<tr>
<th align="left">Variable</th>
<th align="right">Start</th>
<th align="left">Unit</th>
<th>Causality</th>
<th>Variability</th>
<th align="left">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left">h</td>
<td align="right">1</td>
<td align="left">m</td>
<td>output</td>
<td>continuous</td>
<td align="left">Position of the ball</td>
</tr>
<tr>
<td align="left">v</td>
<td align="right">0</td>
<td align="left">m/s</td>
<td>output</td>
<td>continuous</td>
<td align="left">Velocity of the ball</td>
</tr>
<tr>
<td align="left">g</td>
<td align="right">9.81</td>
<td align="left">m/s2</td>
<td>parameter</td>
<td>fixed</td>
<td align="left">Gravity acting on the ball</td>
</tr>
<tr>
<td align="left">e</td>
<td align="right">0.7</td>
<td align="left"></td>
<td>parameter</td>
<td>tunable</td>
<td align="left">Coefficient of restitution</td>
</tr>
<tr>
<td align="left">v_min</td>
<td align="right">0.1</td>
<td align="left">m/s2</td>
<td>parameter</td>
<td>constant</td>
<td align="left">Velocity below which the ball stops bouncing</td>
</tr>
</tbody>
</table>
<p>The plot shows the <a href="BouncingBall_ref.csv">reference result</a> computed with <a href="https://github.com/CATIA-Systems/FMPy">FMPy</a>.</p>
<p><img src="BouncingBall_ref.svg" alt="plot" /></p>
</div>
</body>
</html>