Debian Codegraph @

Aircraft/Generic/JSBSim/Systems/airship-mooring.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3
4 Airship nose cone and main wire mooring system for JSBSim.
5
6 Copyright (C) 2008 - 2015 Anders Gidenstam (anders(at)gidenstam.org)
7
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
22 -->
23 <system name="airship-mooring">
24
25 <documentation>
26 This system models a mast mooring system with a mooring cone connection
27 and a mooring wire. The mooring cone MUST be located at the aircraft's
28 visual reference point (VRP).
29
30 Usage:
31
32 Include the visual-reference-point-extensions system first.
33
34 Define the following constant properties:
35 For the mooring cone connection:
36 mooring/mooring-spring-coeff-lbs_ft [lbs/ft]
37 mooring/mooring-damping-coeff-lbs_fps [lbs*sec/ft]
38 mooring/max-mooring-force-lbs [lbs]
39
40 For the mooring wire:
41 mooring/wire-spring-coeff-lbs_ft [lbs/ft]
42 mooring/max-wire-force-lbs [lbs]
43 mooring/max-winch-speed-fps [ft/sec]
44
45 For the mooring cone connection:
46 mooring/mooring-spring-coeff-lbs_ft
47 mooring/mooring-damping-coeff-lbs_fps
48 mooring/max-mooring-force-lbs
49
50 Define the following external forces:
51
52 <force name="mooring-coupling-north" frame="LOCAL">
53 <location unit="M">
54 { VRP }
55 </location>
56 <direction>
57 <x> 1.0 </x>
58 <y> 0.0 </y>
59 <z> 0.0 </z>
60 </direction>
61 </force>
62 <force name="mooring-coupling-east" frame="LOCAL">
63 <location unit="M">
64 { VRP }
65 </location>
66 <direction>
67 <x> 0.0 </x>
68 <y> 1.0 </y>
69 <z> 0.0 </z>
70 </direction>
71 </force>
72 <force name="mooring-coupling-down" frame="LOCAL">
73 <location unit="M">
74 { VRP }
75 </location>
76 <direction>
77 <x> 0.0 </x>
78 <y> 0.0 </y>
79 <z> 1.0 </z>
80 </direction>
81 </force>
82
83 The following control the mooring operation:
84 mooring/wire-connected Connect the wire {0,1.0}
85 mooring/winch-speed-fps Winch speed [ft/sec]
86 mooring/initial-wire-length-ft [ft]
87
88 Location of the mooring mast:
89 mooring/latitude-deg
90 mooring/longitude-deg
91 mooring/altitude-ft
92
93 </documentation>
94
95 <!-- INTERFACE PROPERTIES -->
96
97 <!-- Mooring actions -->
98 <property value="0.0"> mooring/wire-connected </property>
99 <property value="0.0"> mooring/winch-speed-fps </property>
100 <property value="0.0"> mooring/initial-wire-length-ft </property>
101
102 <!-- Mooring mast location. Note: Geodetic latitude and altitude. -->
103 <property value="0.0"> mooring/latitude-deg </property>
104 <property value="0.0"> mooring/longitude-deg </property>
105 <property value="0.0"> mooring/altitude-ft </property>
106
107 <channel name="Mooring Forces">
108
109 <fcs_function name="mooring/latitude-diff-ft">
110 <function>
111 <product>
112 <property> position/latitude-unit-distance-ft_deg </property>
113 <difference>
114 <property> mooring/latitude-deg </property>
115 <property> position/vrp-latitude-deg </property>
116 </difference>
117 </product>
118 </function>
119 </fcs_function>
120
121 <fcs_function name="mooring/longitude-diff-ft">
122 <function>
123 <product>
124 <property> position/longitude-unit-distance-ft_deg </property>
125 <difference>
126 <property> mooring/longitude-deg </property>
127 <property> position/vrp-longitude-deg </property>
128 </difference>
129 </product>
130 </function>
131 </fcs_function>
132
133 <fcs_function name="mooring/altitude-diff-ft">
134 <function>
135 <difference>
136 <property> position/vrp-altitude-ft </property>
137 <property> mooring/altitude-ft </property>
138 </difference>
139 </function>
140 </fcs_function>
141
142 <fcs_function name="mooring/total-distance-ft">
143 <function>
144 <pow>
145 <sum>
146 <pow>
147 <property> mooring/latitude-diff-ft </property>
148 <value> 2.0 </value>
149 </pow>
150 <pow>
151 <property> mooring/longitude-diff-ft </property>
152 <value> 2.0 </value>
153 </pow>
154 <pow>
155 <property> mooring/altitude-diff-ft </property>
156 <value> 2.0 </value>
157 </pow>
158 </sum>
159 <value> 0.5 </value>
160 </pow>
161 </function>
162 </fcs_function>
163
164 <switch name="mooring/moored">
165 <default value="0.0"/>
166 <test logic="AND" value="1.0">
167 mooring/wire-connected GE 1.0
168 mooring/total-distance-ft LE 5.0
169 </test>
170 </switch>
171
172 <fcs_function name="mooring/mooring-force-lbs">
173 <function>
174 <product>
175 <property> mooring/moored </property>
176 <property> mooring/mooring-spring-coeff-lbs_ft </property>
177 <property> mooring/total-distance-ft </property>
178 </product>
179 </function>
180 <clipto>
181 <min> 0.0 </min>
182 <max> mooring/max-mooring-force-lbs </max>
183 </clipto>
184 </fcs_function>
185
186 <switch name="mooring/winch-reset">
187 <default value="-1.0"/>
188 <test logic="AND" value="0.0">
189 mooring/wire-connected GT 0.0
190 </test>
191 </switch>
192
193 <pid name="mooring/wire-length-change-ft">
194 <!-- NOTE: The plain integrator component does not reset. -->
195 <input> mooring/winch-speed-fps </input>
196 <kp> 0.00 </kp>
197 <ki> 1.00 </ki>
198 <kd> 0.00 </kd>
199 <trigger> mooring/winch-reset </trigger>
200 <clipto>
201 <min>-mooring/initial-wire-length-ft </min>
202 <max> 0.0 </max> <!-- Might not be wise. -->
203 </clipto>
204 </pid>
205
206 <fcs_function name="mooring/wire-length-ft">
207 <function>
208 <sum>
209 <property> mooring/initial-wire-length-ft </property>
210 <property> mooring/wire-length-change-ft </property>
211 </sum>
212 </function>
213 <clipto>
214 <min> 0.0 </min>
215 <max> mooring/initial-wire-length-ft </max> <!-- Might not be wise. -->
216 </clipto>
217 </fcs_function>
218
219 <fcs_function name="mooring/wire-force-lbs">
220 <function>
221 <product>
222 <property> mooring/wire-connected </property>
223 <property> mooring/wire-spring-coeff-lbs_ft </property>
224 <max>
225 <difference>
226 <property> mooring/total-distance-ft </property>
227 <property> mooring/wire-length-ft </property>
228 </difference>
229 <value> 0.0 </value>
230 </max>
231 </product>
232 </function>
233 <clipto>
234 <min> 0.0 </min>
235 <max> mooring/max-wire-force-lbs </max>
236 </clipto>
237 </fcs_function>
238
239 <fcs_function name="mooring/total-force-lbs">
240 <function>
241 <sum>
242 <property> mooring/wire-force-lbs </property>
243 <property> mooring/mooring-force-lbs </property>
244 </sum>
245 </function>
246 </fcs_function>
247
248 <fcs_function name="mooring/force-north-lbs">
249 <function>
250 <product>
251 <property> mooring/wire-connected </property>
252 <sum>
253 <product>
254 <property> mooring/total-force-lbs </property>
255 <quotient>
256 <property> mooring/latitude-diff-ft </property>
257 <property> mooring/total-distance-ft </property>
258 </quotient>
259 </product>
260 <product>
261 <property> mooring/moored </property>
262 <property> mooring/mooring-damping-coeff-lbs_fps </property>
263 <property> velocities/vrp-v-north-fps </property>
264 </product>
265 </sum>
266 </product>
267 </function>
268 <output> external_reactions/mooring-coupling-north/magnitude </output>
269 </fcs_function>
270
271 <fcs_function name="mooring/force-east-lbs">
272 <function>
273 <product>
274 <property> mooring/wire-connected </property>
275 <sum>
276 <product>
277 <property> mooring/total-force-lbs </property>
278 <quotient>
279 <property> mooring/longitude-diff-ft </property>
280 <property> mooring/total-distance-ft </property>
281 </quotient>
282 </product>
283 <product>
284 <property> mooring/moored </property>
285 <property> mooring/mooring-damping-coeff-lbs_fps </property>
286 <property> velocities/vrp-v-east-fps </property>
287 </product>
288 </sum>
289 </product>
290 </function>
291 <output> external_reactions/mooring-coupling-east/magnitude </output>
292 </fcs_function>
293
294 <fcs_function name="mooring/force-down-lbs">
295 <function>
296 <product>
297 <property> mooring/wire-connected </property>
298 <sum>
299 <product>
300 <property> mooring/total-force-lbs </property>
301 <quotient>
302 <property> mooring/altitude-diff-ft </property>
303 <property> mooring/total-distance-ft </property>
304 </quotient>
305 </product>
306 <product>
307 <property> mooring/moored </property>
308 <property> mooring/mooring-damping-coeff-lbs_fps </property>
309 <property> velocities/vrp-v-down-fps </property>
310 </product>
311 </sum>
312 </product>
313 </function>
314 <output> external_reactions/mooring-coupling-down/magnitude </output>
315 </fcs_function>
316
317 </channel>
318
319 </system>