Debian Codegraph @

Aircraft/Generic/JSBSim/Systems/hydrodynamics.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3
4 Hydrodynamics section for JSBSim.
5
6 Copyright (C) 2008 - 2018 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="hydrodynamics">
24
25 <documentation>
26 This system computes forces and moments due to the hull's interaction
27 with water, both hydrostatic and hydrodynamic, with respect to the
28 hydrodynamic reference point (HRP).
29
30 The coordinate frame used to define the forces and moments is similar to
31 the body frame but is always aligned with the water surface (which is
32 assumed to be horizontal). Forces can also be defined in a "wind" frame.
33
34
35 The forces are split into the channels:
36 - Fbx - body forward.
37 - Fby - body right.
38 - Fbz - local up (the same as -Z in the local frame).
39 - Drag - opposing the relative water flow.
40 - Side - 90 degrees right from the relative water flow in the surface plane.
41 The moments are split into the body frame channels
42 (with the same sense as the normal body frame moments):
43 - Pitch
44 - Yaw
45 - Roll
46
47 The properties determining the location and orientation of the hull
48 w.r.t the the water surface and stream are:
49 - hydro/height-agl-ft - Height of the hydrodynamic reference point
50 over the water surface.
51 - hydro/beta-deg - angle between the hull's velocity vector throught
52 the water and its longitudal axis.
53 Analogous to aerodynamics/beta-deg.
54 - hydro/pitch-deg - angle between the hull longitudal axis and the
55 water surface (ground plane).
56 - hydro/roll-deg - angle between the hull traverse axis and the
57 water surface (ground plane).
58 - hydro/v-fps - The hull's total speed relative the water.
59
60 Usage:
61
62 Include this system in your aircraft.
63
64 Define the following properties in a system of your aircraft:
65
66 - Hydrodynamics reference point:
67 <property value="...">metrics/hydro-rp-x-in</property>
68 <property value="...">metrics/hydro-rp-y-in</property>
69 <property value="...">metrics/hydro-rp-z-in</property>
70
71 - Functions computing the forces in the hydrodynamic body frame
72 - hydro/fbx-lbs
73 - hydro/fby-lbs
74 - hydro/fbz-lbs
75 Alternative force inputs in the water frame
76 - hydro/fdrag-lbs
77 - hydro/fside-lbs
78 Unused properties also have to be declared (and set to zero).
79
80 - Functions computing the moments in the hydrodynamic body frame.
81 FIXME(?): All moments are applied in the standard body frame.
82 - hydro/yaw-moment-lbsft
83 - hydro/pitch-moment-lbsft
84 - hydro/roll-moment-lbsft
85
86 Define the following external forces and moments in the main FDM file of
87 your aircraft:
88
89 <force name="hydro-X" frame="LOCAL">
90 <location unit="M">
91 { HRP }
92 </location>
93 <direction>
94 <x> 1.0 </x>
95 <y> 0.0 </y>
96 <z> 0.0 </z>
97 </direction>
98 </force>
99 <force name="hydro-Y" frame="LOCAL">
100 <location unit="M">
101 { HRP }
102 </location>
103 <direction>
104 <x> 0.0 </x>
105 <y> 1.0 </y>
106 <z> 0.0 </z>
107 </direction>
108 </force>
109 <force name="hydro-Z" frame="LOCAL">
110 <location unit="M">
111 { HRP }
112 </location>
113 <direction>
114 <x> 0.0 </x>
115 <y> 0.0 </y>
116 <z>-1.0 </z>
117 </direction>
118 </force>
119
120 <moment name="hydro-pitch" frame="BODY" unit="LBSFT">
121 <direction>
122 <x> 0.0 </x>
123 <y> 1.0 </y>
124 <z> 0.0 </z>
125 </direction>
126 </moment>
127 <moment name="hydro-roll" frame="BODY" unit="LBSFT">
128 <direction>
129 <x> 1.0 </x>
130 <y> 0.0 </y>
131 <z> 0.0 </z>
132 </direction>
133 </moment>
134 <moment name="hydro-yaw" frame="BODY" unit="LBSFT">
135 <direction>
136 <x> 0.0 </x>
137 <y> 0.0 </y>
138 <z> 1.0 </z>
139 </direction>
140 </moment>
141
142 The old deprecated force based external moment implementation below is still
143 supported. Beware of reference frame differences for the moments.
144
145 <force name="hydro-pitch[0]" frame="LOCAL">
146 <location unit="M">
147 <x> HRP X - 0.3048 </x>
148 <y> HRP Y </y>
149 <z> HRP Z </z>
150 </location>
151 <direction>
152 <x> 0.0 </x>
153 <y> 0.0 </y>
154 <z>-1.0 </z>
155 </direction>
156 </force>
157 <force name="hydro-pitch[1]" frame="LOCAL">
158 <location unit="M">
159 <x> HRP X + 0.3048 </x>
160 <y> HRP Y </y>
161 <z> HRP Z </z>
162 </location>
163 <direction>
164 <x> 0.0 </x>
165 <y> 0.0 </y>
166 <z>-1.0 </z>
167 </direction>
168 </force>
169
170 <force name="hydro-yaw[0]" frame="BODY">
171 <location unit="M">
172 <x> HRP X </x>
173 <y> HRP Y - 0.3048 </y>
174 <z> HRP Z </z>
175 </location>
176 <direction>
177 <x> 1.0 </x>
178 <y> 0.0 </y>
179 <z> 0.0 </z>
180 </direction>
181 </force>
182 <force name="hydro-yaw[1]" frame="BODY">
183 <location unit="M">
184 <x> HRP X </x>
185 <y> HRP Y + 0.3048 </y>
186 <z> HRP Z </z>
187 </location>
188 <direction>
189 <x> 1.0 </x>
190 <y> 0.0 </y>
191 <z> 0.0 </z>
192 </direction>
193 </force>
194
195 <force name="hydro-roll[0]" frame="LOCAL">
196 <location unit="M">
197 <x> HRP X </x>
198 <y> HRP Y - 0.3048 </y>
199 <z> HRP Z </z>
200 </location>
201 <direction>
202 <x> 0.0 </x>
203 <y> 0.0 </y>
204 <z>-1.0 </z>
205 </direction>
206 </force>
207 <force name="hydro-roll[1]" frame="LOCAL">
208 <location unit="M">
209 <x> HRP X </x>
210 <y> HRP Y + 0.3048 </y>
211 <z> HRP Z </z>
212 </location>
213 <direction>
214 <x> 0.0 </x>
215 <y> 0.0 </y>
216 <z>-1.0 </z>
217 </direction>
218 </force>
219
220 </documentation>
221
222 <!-- Inputs -->
223
224 <!-- Environment -->
225 <property value="0.0">hydro/environment/water-level-ft</property>
226 <property value="1.9736403">hydro/environment/rho-slug_ft3</property>
227 <property value="1.1302106e-05">hydro/environment/kinematic-viscosity-ft2_sec</property> <!-- Sea water at 20 degC. -->
228
229 <property value="0.0">hydro/environment/current-from-north-fps</property>
230 <property value="0.0">hydro/environment/current-from-east-fps</property>
231
232 <property value="40.0">hydro/environment/waves-from-deg</property>
233 <property value="0.0">hydro/environment/wave-amplitude-ft</property>
234 <property value="150.0">hydro/environment/wave-length-ft</property>
235
236 <!-- Model parameters -->
237 <!-- HRP location. Must be defined.
238 - metrics/hydro-rp-x-in
239 - metrics/hydro-rp-y-in
240 - metrics/hydro-rp-z-in
241
242 - metrics/hydro-beam-ft
243 - metrics/hydro-length-ft
244 -->
245
246 <!-- Input forces in the hydrodynamic body frame.
247 All must be defined by the aircraft. -->
248 <!--
249 Forces in the hydrodynamic body frame
250 - hydro/fbx-lbs
251 - hydro/fby-lbs
252 - hydro/fbz-lbs
253 Alternative force inputs in the water frame
254 - hydro/fdrag-lbs
255 - hydro/fside-lbs
256 -->
257
258 <!-- Input moments in the hydrodynamic body frame.
259 FIXME: Yaw is applied in the standard body frame.
260 - hydro/yaw-moment-lbsft
261 - hydro/pitch-moment-lbsft
262 - hydro/roll-moment-lbsft
263 -->
264
265 <channel name="Environment">
266
267 <fcs_function name="hydro/environment/rho-lbs_ft3">
268 <function>
269 <product>
270 <value>32.174049</value>
271 <property>hydro/environment/rho-slug_ft3</property>
272 </product>
273 </function>
274 </fcs_function>
275
276 <fcs_function name="hydro/environment/gravity-ft_sec2">
277 <function>
278 <quotient>
279 <property>inertia/weight-lbs</property>
280 <property>inertia/mass-slugs</property>
281 </quotient>
282 </function>
283 </fcs_function>
284
285 </channel>
286
287 <channel name="Environment - Waves">
288
289 <fcs_function name="hydro/environment/wave/relative-heading-rad">
290 <description>
291 The difference in heading between the hull and the wave.
292 </description>
293 <function>
294 <difference>
295 <sum>
296 <value>3.1415927</value>
297 <product>
298 <value>0.017453293</value>
299 <property>hydro/environment/waves-from-deg</property>
300 </product>
301 </sum>
302 <property>attitude/psi-rad</property>
303 </difference>
304 </function>
305 </fcs_function>
306
307 <fcs_function name="hydro/environment/wave/hull-x-factor">
308 <description>
309 The result of dot(Dwave, (1,0)), i.e. the cosine of the angle
310 between the wave heading and the hull heading.
311 </description>
312 <function>
313 <cos>
314 <property>hydro/environment/wave/relative-heading-rad</property>
315 </cos>
316 </function>
317 </fcs_function>
318
319 <fcs_function name="hydro/environment/wave/hull-y-factor">
320 <description>
321 The result of dot(Dwave, (0,1)), i.e. the sine of the angle
322 between the wave heading and the hull heading.
323 </description>
324 <function>
325 <sin>
326 <property>hydro/environment/wave/relative-heading-rad</property>
327 </sin>
328 </function>
329 </fcs_function>
330
331 <fcs_function name="hydro/environment/wave/hull-angular-frequency-rad_sec">
332 <description>
333 Hull speed in the wave's direction expressed in the wave's
334 angular frequency.
335 </description>
336 <function>
337 <product>
338 <value>6.2831853</value>
339 <quotient>
340 <sum>
341 <product>
342 <property>hydro/vbx-fps</property>
343 <property>hydro/environment/wave/hull-x-factor</property>
344 </product>
345 <product>
346 <property>hydro/vby-fps</property>
347 <property>hydro/environment/wave/hull-y-factor</property>
348 </product>
349 </sum>
350 <max>
351 <value>0.001</value>
352 <property>hydro/environment/wave-length-ft</property>
353 </max>
354 </quotient>
355 </product>
356 </function>
357 </fcs_function>
358
359 <integrator name="hydro/environment/wave/hull-angular-offset-rad">
360 <description>
361 The hull's angular offset at its present position.
362 </description>
363 <input>hydro/environment/wave/hull-angular-frequency-rad_sec</input>
364 <c1>1.0</c1>
365 </integrator>
366
367 <fcs_function name="hydro/environment/wave/angular-frequency-rad_sec">
368 <description>
369 The angular frequency of the wave.
370 </description>
371 <function>
372 <sum>
373 <!-- Deep water gravity wave. -->
374 <product>
375 <value>-1.0</value> <!-- Note: Set to 0 to make the waves stationary. -->
376 <pow>
377 <quotient>
378 <product>
379 <value>6.2831853</value>
380 <property>hydro/environment/gravity-ft_sec2</property>
381 </product>
382 <max>
383 <value>0.001</value>
384 <property>hydro/environment/wave-length-ft</property>
385 </max>
386 </quotient>
387 <value>0.5</value>
388 </pow>
389 </product>
390 <!-- Mix in hull-angular-offset-rad to simplify uses below. -->
391 <quotient>
392 <property>hydro/environment/wave/hull-angular-offset-rad</property>
393 <max> <!-- To avoid divison by 0 at time 0. -->
394 <value>0.1</value>
395 <property>simulation/sim-time-sec</property>
396 </max>
397 </quotient>
398 </sum>
399 </function>
400 </fcs_function>
401
402 <fcs_function name="hydro/environment/wave/wave-number-rad_ft">
403 <description>
404 The wave number of the wave.
405 </description>
406 <function>
407 <quotient>
408 <value>6.2831853</value>
409 <max>
410 <value>0.001</value>
411 <property>hydro/environment/wave-length-ft</property>
412 </max>
413 </quotient>
414 </function>
415 </fcs_function>
416
417 <fcs_function name="hydro/environment/wave/level-change-ft">
418 <description>
419 The water level change due to the waves. Guessed.
420 Integrated over -0.5 * hydro-length-ft to 0.5 * hydro-length-ft.
421 </description>
422 <function>
423 <quotient>
424 <sum>
425 <product>
426 <property>hydro/environment/wave-amplitude-ft</property>
427 <sin>
428 <difference>
429 <product>
430 <value>0.5</value>
431 <property>metrics/hydro-length-ft</property>
432 <property>hydro/environment/wave/hull-x-factor</property>
433 <property>hydro/environment/wave/wave-number-rad_ft</property>
434 </product>
435 <product>
436 <property>hydro/environment/wave/angular-frequency-rad_sec</property>
437 <property>simulation/sim-time-sec</property>
438 </product>
439 </difference>
440 </sin>
441 </product>
442 <product>
443 <property>hydro/environment/wave-amplitude-ft</property>
444 <sin>
445 <difference>
446 <product>
447 <value>-0.5</value>
448 <property>metrics/hydro-length-ft</property>
449 <property>hydro/environment/wave/hull-x-factor</property>
450 <property>hydro/environment/wave/wave-number-rad_ft</property>
451 </product>
452 <product>
453 <property>hydro/environment/wave/angular-frequency-rad_sec</property>
454 <property>simulation/sim-time-sec</property>
455 </product>
456 </difference>
457 </sin>
458 </product>
459 </sum>
460 <product>
461 <property>hydro/environment/wave/hull-x-factor</property>
462 <property>hydro/environment/wave/wave-number-rad_ft</property>
463 <property>metrics/hydro-length-ft</property>
464 </product>
465 </quotient>
466 </function>
467 </fcs_function>
468
469 <fcs_function name="hydro/environment/wave/level-at-hrp-ft">
470 <description>
471 The water level change at the HRP location. For debugging.
472 </description>
473 <function>
474 <product>
475 <property>hydro/environment/wave-amplitude-ft</property>
476 <cos>
477 <product>
478 <property>hydro/environment/wave/angular-frequency-rad_sec</property>
479 <property>simulation/sim-time-sec</property>
480 </product>
481 </cos>
482 </product>
483 </function>
484 </fcs_function>
485
486 <fcs_function name="hydro/environment/wave/level-fwd-ft">
487 <description>
488 The water level change at 0.5 * metrics/hydro-length-ft forward of
489 the HRP location.
490 </description>
491 <function>
492 <product>
493 <property>hydro/environment/wave-amplitude-ft</property>
494 <cos>
495 <difference>
496 <product>
497 <value>0.5</value>
498 <property>metrics/hydro-length-ft</property>
499 <property>hydro/environment/wave/hull-x-factor</property>
500 <property>hydro/environment/wave/wave-number-rad_ft</property>
501 </product>
502 <product>
503 <property>hydro/environment/wave/angular-frequency-rad_sec</property>
504 <property>simulation/sim-time-sec</property>
505 </product>
506 </difference>
507 </cos>
508 </product>
509 </function>
510 </fcs_function>
511
512 <fcs_function name="hydro/environment/wave/level-aft-ft">
513 <description>
514 The water level change at 0.5 * metrics/hydro-length-ft aft of
515 the HRP location.
516 </description>
517 <function>
518 <product>
519 <property>hydro/environment/wave-amplitude-ft</property>
520 <cos>
521 <difference>
522 <product>
523 <value>-0.5</value>
524 <property>metrics/hydro-length-ft</property>
525 <property>hydro/environment/wave/hull-x-factor</property>
526 <property>hydro/environment/wave/wave-number-rad_ft</property>
527 </product>
528 <product>
529 <property>hydro/environment/wave/angular-frequency-rad_sec</property>
530 <property>simulation/sim-time-sec</property>
531 </product>
532 </difference>
533 </cos>
534 </product>
535 </function>
536 </fcs_function>
537
538 <fcs_function name="hydro/orientation/wave-pitch-trim-change-deg">
539 <description>
540 The pitch trim change due to the waves. Guessed.
541 </description>
542 <!-- deltaTrim = atan2(water line at bow - water line at stern, LWL) -->
543 <function>
544 <product>
545 <value>57.29578</value>
546 <atan2>
547 <difference>
548 <property>hydro/environment/wave/level-fwd-ft</property>
549 <property>hydro/environment/wave/level-aft-ft</property>
550 </difference>
551 <property>metrics/hydro-length-ft</property>
552 </atan2>
553 </product>
554 </function>
555 </fcs_function>
556
557 <fcs_function name="hydro/orientation/wave-roll-trim-change-deg">
558 <description>
559 The roll trim change due to the waves. Guessed.
560 </description>
561 <!-- deltaTrim =
562 atan2(water line at starboard side - water line at port side, beam)
563 -->
564 <function>
565 <product>
566 <value>57.29578</value>
567 <atan2>
568 <difference>
569 <product>
570 <property>hydro/environment/wave-amplitude-ft</property>
571 <cos>
572 <difference>
573 <product>
574 <value>-0.5</value>
575 <property>metrics/hydro-beam-ft</property>
576 <property>hydro/environment/wave/hull-y-factor</property>
577 <property>hydro/environment/wave/wave-number-rad_ft</property>
578 </product>
579 <product>
580 <property>hydro/environment/wave/angular-frequency-rad_sec</property>
581 <property>simulation/sim-time-sec</property>
582 </product>
583 </difference>
584 </cos>
585 </product>
586 <product>
587 <property>hydro/environment/wave-amplitude-ft</property>
588 <cos>
589 <difference>
590 <product>
591 <value>0.5</value>
592 <property>metrics/hydro-beam-ft</property>
593 <property>hydro/environment/wave/hull-y-factor</property>
594 <property>hydro/environment/wave/wave-number-rad_ft</property>
595 </product>
596 <product>
597 <property>hydro/environment/wave/angular-frequency-rad_sec</property>
598 <property>simulation/sim-time-sec</property>
599 </product>
600 </difference>
601 </cos>
602 </product>
603 </difference>
604 <property>metrics/hydro-beam-ft</property>
605 </atan2>
606 </product>
607 </function>
608 </fcs_function>
609
610 </channel>
611
612 <channel name ="Hull position">
613
614 <fcs_function name="hydro/height-agl-ft">
615 <documentation>
616 Distance between the hydrodynamic reference point and the water surface.
617 Not completely correctly computed yet.
618 </documentation>
619 <function>
620 <difference>
621 <sum>
622 <property> position/h-sl-ft </property>
623 <product>
624 <value> -0.083333333 </value>
625 <difference>
626 <property> metrics/hydro-rp-x-in </property>
627 <property> inertia/cg-x-in </property>
628 </difference>
629 <sin>
630 <property> attitude/pitch-rad </property>
631 </sin>
632 </product>
633 <product>
634 <value> 0.083333333 </value>
635 <difference>
636 <property> metrics/hydro-rp-z-in </property>
637 <property> inertia/cg-z-in </property>
638 </difference>
639 <cos>
640 <property> attitude/pitch-rad </property>
641 </cos>
642 </product>
643 <product>
644 <value> -0.083333333 </value>
645 <difference>
646 <property> metrics/hydro-rp-y-in </property>
647 <property> inertia/cg-y-in </property>
648 </difference>
649 <sin>
650 <property> attitude/roll-rad </property>
651 </sin>
652 </product>
653 </sum>
654 <property> hydro/environment/water-level-ft </property>
655 </difference>
656 </function>
657 </fcs_function>
658
659 </channel>
660
661 <channel name ="Hull orientation">
662
663 <fcs_function name="hydro/true-course-rad">
664 <!-- The course made good by the hull. -->
665 <function>
666 <atan2>
667 <sum>
668 <property>velocities/v-east-fps</property>
669 <property>hydro/environment/current-from-east-fps</property>
670 </sum>
671 <sum>
672 <property>velocities/v-north-fps</property>
673 <property>hydro/environment/current-from-north-fps</property>
674 </sum>
675 </atan2>
676 </function>
677 </fcs_function>
678
679 <fcs_function name="hydro/true-course-deg">
680 <!-- The course made good by the hull. -->
681 <function>
682 <product>
683 <value> 57.29578 </value>
684 <property> hydro/true-course-rad </property>
685 </product>
686 </function>
687 </fcs_function>
688
689 <fcs_function name="hydro/pitch-deg">
690 <function>
691 <product>
692 <value> 57.29578 </value>
693 <property> attitude/pitch-rad </property>
694 </product>
695 </function>
696 </fcs_function>
697
698 <fcs_function name="hydro/roll-deg">
699 <function>
700 <product>
701 <value> 57.29578 </value>
702 <property> attitude/roll-rad </property>
703 </product>
704 </function>
705 </fcs_function>
706
707 <fcs_function name="hydro/alpha-rad">
708 <function>
709 <sum>
710 <property>attitude/pitch-rad</property>
711 <atan2>
712 <property>velocities/v-down-fps</property>
713 <property>hydro/v-fps</property>
714 </atan2>
715 </sum>
716 </function>
717 </fcs_function>
718
719 <fcs_function name="hydro/alpha-deg">
720 <function>
721 <product>
722 <value> 57.29578 </value>
723 <property> hydro/alpha-rad </property>
724 </product>
725 </function>
726 </fcs_function>
727
728 <fcs_function name="hydro/tmp/beta-rad">
729 <!-- Needed to normalize the beta range to +/-PI. -->
730 <function>
731 <difference>
732 <property> hydro/true-course-rad </property>
733 <property> attitude/psi-rad </property>
734 </difference>
735 </function>
736 </fcs_function>
737
738 <fcs_function name="hydro/beta-rad">
739 <function>
740 <sum>
741 <property>hydro/tmp/beta-rad</property>
742 <product>
743 <lt>
744 <property>hydro/tmp/beta-rad</property>
745 <value>-3.1415927</value>
746 </lt>
747 <value>6.2831853</value>
748 </product>
749 <product>
750 <gt>
751 <property>hydro/tmp/beta-rad</property>
752 <value>3.1415927</value>
753 </gt>
754 <value>-6.2831853</value>
755 </product>
756 </sum>
757 </function>
758 </fcs_function>
759
760 <fcs_function name="hydro/beta-deg">
761 <function>
762 <product>
763 <value> 57.29578 </value>
764 <property> hydro/beta-rad </property>
765 </product>
766 </function>
767 </fcs_function>
768
769 </channel>
770
771 <channel name ="Hull velocity">
772
773 <fcs_function name="hydro/v-fps">
774 <function>
775 <pow>
776 <sum>
777 <pow>
778 <sum>
779 <property> velocities/v-north-fps </property>
780 <property> hydro/environment/current-from-north-fps </property>
781 </sum>
782 <value> 2.0 </value>
783 </pow>
784 <pow>
785 <sum>
786 <property> velocities/v-east-fps </property>
787 <property> hydro/environment/current-from-east-fps </property>
788 </sum>
789 <value> 2.0 </value>
790 </pow>
791 </sum>
792 <value> 0.5 </value>
793 </pow>
794 </function>
795 </fcs_function>
796 <fcs_function name="hydro/v-kt">
797 <function>
798 <product>
799 <value> 0.5924838 </value>
800 <property> hydro/v-fps </property>
801 </product>
802 </function>
803 </fcs_function>
804
805 <fcs_function name="hydro/vbx-fps">
806 <function>
807 <product>
808 <cos>
809 <property>hydro/beta-rad</property>
810 </cos>
811 <property>hydro/v-fps</property>
812 </product>
813 </function>
814 </fcs_function>
815
816 <fcs_function name="hydro/vby-fps">
817 <function>
818 <product>
819 <sin>
820 <property>hydro/beta-rad</property>
821 </sin>
822 <property>hydro/v-fps</property>
823 </product>
824 </function>
825 </fcs_function>
826
827 <fcs_function name="hydro/qbar-psf">
828 <function>
829 <product>
830 <value> 0.50 </value>
831 <property>hydro/environment/rho-slug_ft3</property>
832 <property>hydro/v-fps</property>
833 <property>hydro/v-fps</property>
834 </product>
835 </function>
836 </fcs_function>
837
838 <fcs_function name="hydro/qbar-u-psf">
839 <function>
840 <product>
841 <value> 0.50 </value>
842 <property>hydro/environment/rho-slug_ft3</property>
843 <property>hydro/vbx-fps</property>
844 <abs><property>hydro/vbx-fps</property></abs>
845 </product>
846 </function>
847 </fcs_function>
848
849 <fcs_function name="hydro/qbar-v-psf">
850 <function>
851 <product>
852 <value> 0.50 </value>
853 <property>hydro/environment/rho-slug_ft3</property>
854 <property>hydro/vby-fps</property>
855 <abs><property>hydro/vby-fps</property></abs>
856 </product>
857 </function>
858 </fcs_function>
859
860 </channel>
861
862 <!-- Implementation of forces and moments below. -->
863
864 <channel name="Implementation Force X (north)">
865
866 <fcs_function name="hydro/X/force-lbs">
867 <function>
868 <sum>
869 <product>
870 <cos>
871 <property> attitude/psi-rad </property>
872 </cos>
873 <property> hydro/fbx-lbs </property>
874 </product>
875 <product>
876 <sin>
877 <property> attitude/psi-rad </property>
878 </sin>
879 <property> hydro/fby-lbs </property>
880 </product>
881 <product>
882 <value> -1.0 </value>
883 <cos>
884 <property> hydro/true-course-rad </property>
885 </cos>
886 <property> hydro/fdrag-lbs </property>
887 </product>
888 <product>
889 <value> -1.0 </value>
890 <sin>
891 <property> hydro/true-course-rad </property>
892 </sin>
893 <property> hydro/fside-lbs </property>
894 </product>
895 </sum>
896 </function>
897 <output> external_reactions/hydro-X/magnitude </output>
898 </fcs_function>
899
900 </channel>
901
902 <channel name="Implementation Force Y (east)">
903
904 <fcs_function name="hydro/Y/force-lbs">
905 <function>
906 <sum>
907 <product>
908 <sin>
909 <property> attitude/psi-rad </property>
910 </sin>
911 <property> hydro/fbx-lbs </property>
912 </product>
913 <product>
914 <cos>
915 <property> attitude/psi-rad </property>
916 </cos>
917 <property> hydro/fby-lbs </property>
918 </product>
919 <product>
920 <value> -1.0 </value>
921 <sin>
922 <property> hydro/true-course-rad </property>
923 </sin>
924 <property> hydro/fdrag-lbs </property>
925 </product>
926 <product>
927 <cos>
928 <property> hydro/true-course-rad </property>
929 </cos>
930 <property> hydro/fside-lbs </property>
931 </product>
932 </sum>
933 </function>
934 <output> external_reactions/hydro-Y/magnitude </output>
935 </fcs_function>
936
937 </channel>
938
939 <channel name="Implementation Force Z (up)">
940 <summer name="hydro/Z/force-lbs">
941 <input> hydro/fbz-lbs </input>
942 <output> external_reactions/hydro-Z/magnitude </output>
943 </summer>
944 </channel>
945
946 <channel name="Implementation Pitch Moment">
947
948 <pure_gain name="hydro/pitch-moment/moment-lbsft">
949 <input>hydro/pitch-moment-lbsft</input>
950 <gain>1.0</gain>
951 <output>external_reactions/hydro-pitch/magnitude-lbsft</output>
952 </pure_gain>
953 <pure_gain name="hydro/pitch-moment/force-lbs[0]">
954 <input> hydro/pitch-moment-lbsft </input>
955 <gain> 0.5</gain>
956 <output> external_reactions/hydro-pitch[0]/magnitude </output>
957 </pure_gain>
958 <pure_gain name="hydro/pitch-moment/force-lbs[1]">
959 <input> hydro/pitch-moment-lbsft </input>
960 <gain>-0.5</gain>
961 <output> external_reactions/hydro-pitch[1]/magnitude </output>
962 </pure_gain>
963
964 </channel>
965
966 <channel name="Implementation Roll Moment">
967
968 <pure_gain name="hydro/roll-moment/moment-lbsft">
969 <input>hydro/roll-moment-lbsft</input>
970 <gain>1.0</gain>
971 <output>external_reactions/hydro-roll/magnitude-lbsft</output>
972 </pure_gain>
973 <pure_gain name="hydro/roll-moment/force-lbs[0]">
974 <input> hydro/roll-moment-lbsft </input>
975 <gain> 0.5</gain>
976 <output> external_reactions/hydro-roll[0]/magnitude </output>
977 </pure_gain>
978 <pure_gain name="hydro/roll-moment/force-lbs[1]">
979 <input> hydro/roll-moment-lbsft </input>
980 <gain>-0.5</gain>
981 <output> external_reactions/hydro-roll[1]/magnitude </output>
982 </pure_gain>
983
984 </channel>
985
986 <channel name="Implementation Yaw Moment">
987
988 <pure_gain name="hydro/yaw-moment/moment-lbsft">
989 <input>hydro/yaw-moment-lbsft</input>
990 <gain>1.0</gain>
991 <output>external_reactions/hydro-yaw/magnitude-lbsft</output>
992 </pure_gain>
993 <pure_gain name="hydro/yaw-moment/force-lbs[0]">
994 <input> hydro/yaw-moment-lbsft </input>
995 <gain> 0.5</gain>
996 <output> external_reactions/hydro-yaw[0]/magnitude </output>
997 </pure_gain>
998 <pure_gain name="hydro/yaw-moment/force-lbs[1]">
999 <input> hydro/yaw-moment-lbsft </input>
1000 <gain>-0.5</gain>
1001 <output> external_reactions/hydro-yaw[1]/magnitude </output>
1002 </pure_gain>
1003
1004 </channel>
1005
1006 </system>