Debian Codegraph @

Aircraft/Generic/JSBSim/Systems/hydrodynamic-planing.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3
4 Model of hydrodynamic planing based on [Wagner:1933:POW] for JSBSim.
5
6 Copyright (C) 2015 - 2016 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="hydrodynamic planing">
24
25 <documentation>
26
27 This system depends on the generic hydrodynamics.xml system for JSBSim.
28
29 <reference refID="Wagner:1933:POW"
30 author="Herbert Wagner"
31 title="Planing of Watercraft Translated as NACA-TM-1139"
32 date="1933/1948"/>
33 </documentation>
34
35 <!-- Model parameters -->
36
37 <!-- Parameters defining the planing surfaces of the hull. -->
38 <!-- NOTE: Coordinates in the frame with
39 origin at hydro RP and x/y/z = aft/right/up
40 -->
41 <property>hydro/planing/forebody-length-ft</property>
42 <property>hydro/planing/forebody-beam-ft</property>
43 <property>hydro/planing/forebody-keel-z-ft</property>
44 <property>hydro/planing/forebody-end-x-ft</property>
45
46 <property>hydro/planing/middlebody-length-ft</property>
47 <property>hydro/planing/middlebody-beam-ft</property>
48 <property>hydro/planing/middlebody-keel-z-ft</property>
49 <property>hydro/planing/middlebody-end-x-ft</property>
50
51 <property>hydro/planing/afterbody-length-ft</property>
52 <property>hydro/planing/afterbody-beam-ft</property>
53 <property>hydro/planing/afterbody-keel-z-ft</property>
54 <property>hydro/planing/afterbody-end-x-ft</property>
55
56 <!-- Other parameters. -->
57 <property value="1.0">hydro/planing/forebody-normal-force-factor</property>
58 <property value="1.0">hydro/planing/middlebody-normal-force-factor</property>
59 <property value="1.0">hydro/planing/afterbody-normal-force-factor</property>
60 <property>hydro/planing/forebody-skin-friction-coefficient</property>
61 <property>hydro/planing/middlebody-skin-friction-coefficient</property>
62 <property>hydro/planing/afterbody-skin-friction-coefficient</property>
63
64 <channel name="Planing dynamics based on [Wagner:1933:POW]">
65
66 <fcs_function name="hydro/planing/forebody-entry-point-x-ft">
67 <function>
68 <description>The intersection point with the water surface.</description>
69 <quotient>
70 <sum>
71 <quotient>
72 <property>hydro/hull/height-agl-ft</property>
73 <cos><property>hydro/hull/pitch-rad</property></cos>
74 </quotient>
75 <property>hydro/planing/forebody-keel-z-ft</property>
76 </sum>
77 <tan><property>hydro/hull/pitch-rad</property></tan>
78 </quotient>
79 </function>
80 <clipto> <!-- We don't want to get +/-inf out of this function. -->
81 <min>-10000.0</min>
82 <max>10000.0</max>
83 </clipto>
84 </fcs_function>
85 <fcs_function name="hydro/planing/middlebody-entry-point-x-ft">
86 <function>
87 <description>The intersection point with the water surface.</description>
88 <quotient>
89 <sum>
90 <quotient>
91 <property>hydro/hull/height-agl-ft</property>
92 <cos><property>hydro/hull/pitch-rad</property></cos>
93 </quotient>
94 <property>hydro/planing/middlebody-keel-z-ft</property>
95 </sum>
96 <tan><property>hydro/hull/pitch-rad</property></tan>
97 </quotient>
98 </function>
99 <clipto> <!-- We don't want to get +/-inf out of this function. -->
100 <min>-10000.0</min>
101 <max>10000.0</max>
102 </clipto>
103 </fcs_function>
104 <fcs_function name="hydro/planing/afterbody-entry-point-x-ft">
105 <function>
106 <description>The intersection point with the water surface.</description>
107 <quotient>
108 <sum>
109 <quotient>
110 <property>hydro/hull/height-agl-ft</property>
111 <cos><property>hydro/hull/pitch-rad</property></cos>
112 </quotient>
113 <property>hydro/planing/afterbody-keel-z-ft</property>
114 </sum>
115 <tan><property>hydro/hull/pitch-rad</property></tan>
116 </quotient>
117 </function>
118 <clipto> <!-- We don't want to get +/-inf out of this function. -->
119 <min>-10000.0</min>
120 <max>10000.0</max>
121 </clipto>
122 </fcs_function>
123
124 <fcs_function name="hydro/planing/forebody-wetted-keel-ft">
125 <function>
126 <description>The length of keel below the free water surface.</description>
127 <max>
128 <value>0.0</value>
129 <min>
130 <property>hydro/planing/forebody-length-ft</property>
131 <sum>
132 <product>
133 <ge>
134 <property>hydro/hull/pitch-rad</property>
135 <value>0.0</value>
136 </ge>
137 <difference>
138 <property>hydro/planing/forebody-end-x-ft</property>
139 <property>hydro/planing/forebody-entry-point-x-ft</property>
140 </difference>
141 </product>
142 <product>
143 <lt>
144 <property>hydro/hull/pitch-rad</property>
145 <value>0.0</value>
146 </lt>
147 <difference>
148 <property>hydro/planing/forebody-entry-point-x-ft</property>
149 <difference>
150 <property>hydro/planing/forebody-end-x-ft</property>
151 <property>hydro/planing/forebody-length-ft</property>
152 </difference>
153 </difference>
154 </product>
155 </sum>
156 </min>
157 </max>
158 </function>
159 </fcs_function>
160 <fcs_function name="hydro/planing/middlebody-wetted-keel-ft">
161 <function>
162 <description>The length of keel below the free water surface.</description>
163 <max>
164 <value>0.0</value>
165 <min>
166 <property>hydro/planing/middlebody-length-ft</property>
167 <sum>
168 <product>
169 <ge>
170 <property>hydro/hull/pitch-rad</property>
171 <value>0.0</value>
172 </ge>
173 <difference>
174 <property>hydro/planing/middlebody-end-x-ft</property>
175 <property>hydro/planing/middlebody-entry-point-x-ft</property>
176 </difference>
177 </product>
178 <product>
179 <lt>
180 <property>hydro/hull/pitch-rad</property>
181 <value>0.0</value>
182 </lt>
183 <difference>
184 <property>hydro/planing/middlebody-entry-point-x-ft</property>
185 <difference>
186 <property>hydro/planing/middlebody-end-x-ft</property>
187 <property>hydro/planing/middlebody-length-ft</property>
188 </difference>
189 </difference>
190 </product>
191 </sum>
192 </min>
193 </max>
194 </function>
195 </fcs_function>
196 <fcs_function name="hydro/planing/afterbody-wetted-keel-ft">
197 <function>
198 <description>The length of keel below the free water surface.</description>
199 <max>
200 <value>0.0</value>
201 <min>
202 <property>hydro/planing/afterbody-length-ft</property>
203 <sum>
204 <product>
205 <ge>
206 <property>hydro/hull/pitch-rad</property>
207 <value>0.0</value>
208 </ge>
209 <difference>
210 <property>hydro/planing/afterbody-end-x-ft</property>
211 <property>hydro/planing/afterbody-entry-point-x-ft</property>
212 </difference>
213 </product>
214 <product>
215 <lt>
216 <property>hydro/hull/pitch-rad</property>
217 <value>0.0</value>
218 </lt>
219 <difference>
220 <property>hydro/planing/afterbody-entry-point-x-ft</property>
221 <difference>
222 <property>hydro/planing/afterbody-end-x-ft</property>
223 <property>hydro/planing/afterbody-length-ft</property>
224 </difference>
225 </difference>
226 </product>
227 </sum>
228 </min>
229 </max>
230 </function>
231 </fcs_function>
232
233 <fcs_function name="hydro/planing/forebody-normal-force-lbs">
234 <function>
235 <description>
236 The normal force produced by the planing surface.
237 NOTE: The formulation is only valid for very small pitch angles and
238 the pitch angle should also be adjusted for down-wash.
239 See [Wagner:1933:POW].
240 </description>
241 <max>
242 <value>0.0</value>
243 <product>
244 <property>hydro/planing/forebody-normal-force-factor</property>
245 <value>3.1415927</value>
246 <property>hydro/qbar-u-psf</property>
247 <property>hydro/planing/forebody-beam-ft</property>
248 <property>hydro/planing/forebody-wetted-keel-ft</property>
249 <sin><property>hydro/hull/pitch-rad</property></sin>
250 </product>
251 </max>
252 </function>
253 </fcs_function>
254 <fcs_function name="hydro/planing/middlebody-normal-force-lbs">
255 <function>
256 <description>
257 The normal force produced by the planing surface.
258 NOTE: The formulation is only valid for very small pitch angles and
259 the pitch angle should also be adjusted for down-wash.
260 See [Wagner:1933:POW].
261 </description>
262 <max>
263 <value>0.0</value>
264 <product>
265 <property>hydro/planing/middlebody-normal-force-factor</property>
266 <value>3.1415927</value>
267 <property>hydro/qbar-u-psf</property>
268 <property>hydro/planing/middlebody-beam-ft</property>
269 <property>hydro/planing/middlebody-wetted-keel-ft</property>
270 <sin><property>hydro/hull/pitch-rad</property></sin>
271 </product>
272 </max>
273 </function>
274 </fcs_function>
275 <fcs_function name="hydro/planing/afterbody-normal-force-lbs">
276 <function>
277 <description>
278 The normal force produced by the planing surface.
279 NOTE: The formulation is only valid for very small pitch angles and
280 the pitch angle should also be adjusted for down-wash.
281 See [Wagner:1933:POW].
282 </description>
283 <max>
284 <value>0.0</value>
285 <product>
286 <property>hydro/planing/afterbody-normal-force-factor</property>
287 <value>3.1415927</value>
288 <property>hydro/qbar-u-psf</property>
289 <property>hydro/planing/afterbody-beam-ft</property>
290 <property>hydro/planing/afterbody-wetted-keel-ft</property>
291 <sin><property>hydro/hull/pitch-rad</property></sin>
292 </product>
293 </max>
294 </function>
295 </fcs_function>
296
297 </channel>
298
299 <channel name="Reynolds numbers for the planing surfaces">
300
301 <fcs_function name="hydro/planing/forebody-Reynolds-number">
302 <function>
303 <description>
304 The Reynolds number for the planing surface based on the
305 current wetted keel length.
306 </description>
307 <quotient>
308 <product>
309 <property>hydro/vbx-fps</property>
310 <property>hydro/planing/forebody-wetted-keel-ft</property>
311 </product>
312 <property>hydro/environment/kinematic-viscosity-ft2_sec</property>
313 </quotient>
314 </function>
315 </fcs_function>
316 <fcs_function name="hydro/planing/middlebody-Reynolds-number">
317 <function>
318 <description>
319 The Reynolds number for the planing surface based on the
320 current wetted keel length.
321 </description>
322 <quotient>
323 <product>
324 <property>hydro/vbx-fps</property>
325 <property>hydro/planing/middlebody-wetted-keel-ft</property>
326 </product>
327 <property>hydro/environment/kinematic-viscosity-ft2_sec</property>
328 </quotient>
329 </function>
330 </fcs_function>
331 <fcs_function name="hydro/planing/afterbody-Reynolds-number">
332 <function>
333 <description>
334 The Reynolds number for the planing surface based on the
335 current wetted keel length.
336 </description>
337 <quotient>
338 <product>
339 <property>hydro/vbx-fps</property>
340 <property>hydro/planing/afterbody-wetted-keel-ft</property>
341 </product>
342 <property>hydro/environment/kinematic-viscosity-ft2_sec</property>
343 </quotient>
344 </function>
345 </fcs_function>
346
347 </channel>
348
349 <channel name="Fbx">
350
351 <fcs_function name="hydro/planing/forebody-induced-fbx-force-lbs">
352 <function>
353 <description>Drag (induced) due to planing. FIXME: direction/frame?</description>
354 <product>
355 <value>-1.0</value>
356 <max>
357 <value>0.0</value>
358 <product>
359 <property>hydro/planing/forebody-normal-force-lbs</property>
360 <sin><property>hydro/hull/pitch-rad</property></sin>
361 </product>
362 </max>
363 </product>
364 </function>
365 </fcs_function>
366 <fcs_function name="hydro/planing/middlebody-induced-fbx-force-lbs">
367 <function>
368 <description>Drag (induced) due to planing. FIXME: direction/frame?</description>
369 <product>
370 <value>-1.0</value>
371 <max>
372 <value>0.0</value>
373 <product>
374 <property>hydro/planing/middlebody-normal-force-lbs</property>
375 <sin><property>hydro/hull/pitch-rad</property></sin>
376 </product>
377 </max>
378 </product>
379 </function>
380 </fcs_function>
381 <fcs_function name="hydro/planing/afterbody-induced-fbx-force-lbs">
382 <function>
383 <description>Drag (induced) due to planing. FIXME: direction/frame?</description>
384 <product>
385 <value>-1.0</value>
386 <max>
387 <value>0.0</value>
388 <product>
389 <property>hydro/planing/afterbody-normal-force-lbs</property>
390 <sin><property>hydro/hull/pitch-rad</property></sin>
391 </product>
392 </max>
393 </product>
394 </function>
395 </fcs_function>
396
397 <fcs_function name="hydro/planing/forebody-friction-fbx-force-lbs">
398 <function>
399 <description>Drag due to skin friction.</description>
400 <product>
401 <value>-1.0</value>
402 <property>hydro/planing/forebody-skin-friction-coefficient</property>
403 <property>hydro/qbar-u-psf</property>
404 <property>hydro/planing/forebody-beam-ft</property>
405 <property>hydro/planing/forebody-wetted-keel-ft</property>
406 </product>
407 </function>
408 </fcs_function>
409 <fcs_function name="hydro/planing/middlebody-friction-fbx-force-lbs">
410 <function>
411 <description>Drag due to skin friction.</description>
412 <product>
413 <value>-1.0</value>
414 <property>hydro/planing/middlebody-skin-friction-coefficient</property>
415 <property>hydro/qbar-u-psf</property>
416 <property>hydro/planing/middlebody-beam-ft</property>
417 <property>hydro/planing/middlebody-wetted-keel-ft</property>
418 </product>
419 </function>
420 </fcs_function>
421 <fcs_function name="hydro/planing/afterbody-friction-fbx-force-lbs">
422 <function>
423 <description>Drag due to skin friction.</description>
424 <product>
425 <value>-1.0</value>
426 <property>hydro/planing/afterbody-skin-friction-coefficient</property>
427 <property>hydro/qbar-u-psf</property>
428 <property>hydro/planing/afterbody-beam-ft</property>
429 <property>hydro/planing/afterbody-wetted-keel-ft</property>
430 </product>
431 </function>
432 </fcs_function>
433
434 </channel>
435
436 <channel name="Fby">
437
438 <fcs_function name="hydro/planing/forebody-fby-force-lbs">
439 <function>
440 <description>
441 Fby force due to planing.
442 FIXME: model/direction/frame?
443 </description>
444 <product>
445 <property>hydro/planing/forebody-normal-force-lbs</property>
446 <cos><property>hydro/hull/pitch-rad</property></cos>
447 <sin><property>hydro/hull/roll-rad</property></sin>
448 </product>
449 </function>
450 </fcs_function>
451 <fcs_function name="hydro/planing/middlebody-fby-force-lbs">
452 <function>
453 <description>
454 Fby force due to planing.
455 FIXME: model/direction/frame?
456 </description>
457 <product>
458 <property>hydro/planing/middlebody-normal-force-lbs</property>
459 <cos><property>hydro/hull/pitch-rad</property></cos>
460 <sin><property>hydro/hull/roll-rad</property></sin>
461 </product>
462 </function>
463 </fcs_function>
464 <fcs_function name="hydro/planing/afterbody-fby-force-lbs">
465 <function>
466 <description>
467 Fby force due to planing.
468 FIXME: model/direction/frame?
469 </description>
470 <product>
471 <property>hydro/planing/afterbody-normal-force-lbs</property>
472 <cos><property>hydro/hull/pitch-rad</property></cos>
473 <sin><property>hydro/hull/roll-rad</property></sin>
474 </product>
475 </function>
476 </fcs_function>
477
478 </channel>
479
480 <channel name="Lift">
481
482 <fcs_function name="hydro/planing/forebody-lift-force-lbs">
483 <function>
484 <description>Lift due to planing. FIXME: direction/frame?</description>
485 <max>
486 <value>0.0</value>
487 <product>
488 <property>hydro/planing/forebody-normal-force-lbs</property>
489 <cos><property>hydro/hull/pitch-rad</property></cos>
490 <cos><property>hydro/hull/roll-rad</property></cos>
491 </product>
492 </max>
493 </function>
494 </fcs_function>
495 <fcs_function name="hydro/planing/middlebody-lift-force-lbs">
496 <function>
497 <description>Lift due to planing. FIXME: direction/frame?</description>
498 <max>
499 <value>0.0</value>
500 <product>
501 <property>hydro/planing/middlebody-normal-force-lbs</property>
502 <cos><property>hydro/hull/pitch-rad</property></cos>
503 <cos><property>hydro/hull/roll-rad</property></cos>
504 </product>
505 </max>
506 </function>
507 </fcs_function>
508 <fcs_function name="hydro/planing/afterbody-lift-force-lbs">
509 <function>
510 <description>Lift due to planing. FIXME: direction/frame?</description>
511 <max>
512 <value>0.0</value>
513 <product>
514 <property>hydro/planing/afterbody-normal-force-lbs</property>
515 <cos><property>hydro/hull/pitch-rad</property></cos>
516 <cos><property>hydro/hull/roll-rad</property></cos>
517 </product>
518 </max>
519 </function>
520 </fcs_function>
521
522 </channel>
523
524 <channel name="Yaw">
525 <!-- FIXME! -->
526 </channel>
527
528 <channel name="Pitch">
529
530 <fcs_function name="hydro/planing/forebody-pitch-moment-lbsft">
531 <description>
532 Pitch moment due to planing.
533 FIXME: direction/frame? Limits on the acting point?
534 </description>
535 <function>
536 <sum>
537 <product>
538 <value>-1.0</value>
539 <property>hydro/planing/forebody-normal-force-lbs</property>
540 <difference>
541 <property>hydro/planing/forebody-end-x-ft</property>
542 <product>
543 <value>0.75</value>
544 <property>hydro/planing/forebody-wetted-keel-ft</property>
545 </product>
546 </difference>
547 </product>
548 <product>
549 <value>-1.0</value>
550 <property>hydro/planing/forebody-friction-fbx-force-lbs</property>
551 <property>hydro/planing/forebody-keel-z-ft</property>
552 <cos><property>hydro/hull/pitch-rad</property></cos>
553 </product>
554 </sum>
555 </function>
556 </fcs_function>
557 <fcs_function name="hydro/planing/middlebody-pitch-moment-lbsft">
558 <description>
559 Pitch moment due to planing.
560 FIXME: direction/frame? Limits on the acting point?
561 </description>
562 <function>
563 <sum>
564 <product>
565 <value>-1.0</value>
566 <property>hydro/planing/middlebody-normal-force-lbs</property>
567 <difference>
568 <property>hydro/planing/middlebody-end-x-ft</property>
569 <product>
570 <value>0.75</value>
571 <property>hydro/planing/middlebody-wetted-keel-ft</property>
572 </product>
573 </difference>
574 </product>
575 <product>
576 <value>-1.0</value>
577 <property>hydro/planing/middlebody-friction-fbx-force-lbs</property>
578 <property>hydro/planing/middlebody-keel-z-ft</property>
579 <cos><property>hydro/hull/pitch-rad</property></cos>
580 </product>
581 </sum>
582 </function>
583 </fcs_function>
584 <fcs_function name="hydro/planing/afterbody-pitch-moment-lbsft">
585 <description>
586 Pitch moment due to planing.
587 FIXME: direction/frame? Limits on the acting point?
588 </description>
589 <function>
590 <sum>
591 <product>
592 <value>-1.0</value>
593 <property>hydro/planing/afterbody-normal-force-lbs</property>
594 <difference>
595 <property>hydro/planing/afterbody-end-x-ft</property>
596 <product>
597 <value>0.75</value>
598 <property>hydro/planing/afterbody-wetted-keel-ft</property>
599 </product>
600 </difference>
601 </product>
602 <product>
603 <value>-1.0</value>
604 <property>hydro/planing/afterbody-friction-fbx-force-lbs</property>
605 <property>hydro/planing/afterbody-keel-z-ft</property>
606 <cos><property>hydro/hull/pitch-rad</property></cos>
607 </product>
608 </sum>
609 </function>
610 </fcs_function>
611
612 </channel>
613
614 <channel name="Roll">
615
616 <fcs_function name="hydro/planing/forebody-roll-moment-lbsft">
617 <description>
618 Roll moment due to planing.
619 FIXME: direction/frame? Limits on the acting point?
620 </description>
621 <function>
622 <product>
623 <property>hydro/planing/forebody-fby-force-lbs</property>
624 <!-- FIXME: dependency on pitch? -->
625 <property>hydro/planing/forebody-keel-z-ft</property>
626 </product>
627 </function>
628 </fcs_function>
629 <fcs_function name="hydro/planing/middlebody-roll-moment-lbsft">
630 <description>
631 Roll moment due to planing.
632 FIXME: direction/frame? Limits on the acting point?
633 </description>
634 <function>
635 <product>
636 <property>hydro/planing/middlebody-fby-force-lbs</property>
637 <!-- FIXME: dependency on pitch? -->
638 <property>hydro/planing/middlebody-keel-z-ft</property>
639 </product>
640 </function>
641 </fcs_function>
642 <fcs_function name="hydro/planing/afterbody-roll-moment-lbsft">
643 <description>
644 Roll moment due to planing.
645 FIXME: direction/frame? Limits on the acting point?
646 </description>
647 <function>
648 <product>
649 <property>hydro/planing/afterbody-fby-force-lbs</property>
650 <!-- FIXME: dependency on pitch? -->
651 <property>hydro/planing/afterbody-keel-z-ft</property>
652 </product>
653 </function>
654 </fcs_function>
655
656 </channel>
657
658 </system>