Debian Codegraph @

Aircraft/c172p/Systems/mooring-jsbsim.xml

raw symbols SCIP
1 <?xml version="1.0"?>
2 <!--
3 Short S.23 flying boat flight model for JSBSim.
4
5 Copyright (C) 2010 Anders Gidenstam (anders(at)gidenstam.org)
6
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 -->
21 <system name="mooring-jsbsim">
22
23 <documentation>
24 This system models a mooring system with a fixed length mooring line.
25
26 NOTE: Currently the system only works in FlightGear and require that the
27 mooring bollard is located at the visual reference point (VRP).
28
29 Usage:
30
31 Define the following properties:
32
33 mooring/rope-spring-coeff-lbs_ft
34 mooring/max-rope-force-lbs
35 mooring/rope-length-ft
36
37 Define the following external forces:
38
39 <force name="mooring-north" frame="LOCAL">
40 <location unit="">
41 <x> 0.0 </x>
42 <y> 0.0 </y>
43 <z> 0.0 </z>
44 </location>
45 <direction>
46 <x> 1.0 </x>
47 <y> 0.0 </y>
48 <z> 0.0 </z>
49 </direction>
50 </force>
51 <force name="mooring-east" frame="LOCAL">
52 <location unit="">
53 <x> 0.0 </x>
54 <y> 0.0 </y>
55 <z> 0.0 </z>
56 </location>
57 <direction>
58 <x> 0.0 </x>
59 <y> 1.0 </y>
60 <z> 0.0 </z>
61 </direction>
62 </force>
63 <force name="mooring-down" frame="LOCAL">
64 <location unit="">
65 <x> 0.0 </x>
66 <y> 0.0 </y>
67 <z> 1.0 </z>
68 </location>
69 <direction>
70 <x> 1.0 </x>
71 <y> 0.0 </y>
72 <z> 0.0 </z>
73 </direction>
74 </force>
75
76 </documentation>
77
78 <!-- INTERFACE PROPERTIES -->
79
80 <!-- Mooring actions -->
81 <property value="0.0"> mooring/mooring-connected </property>
82
83 <!-- Mooring buoy location. Note: Geodetic latitude and altitude. -->
84 <property value="0.0"> mooring/latitude-deg </property>
85 <property value="0.0"> mooring/longitude-deg </property>
86 <property value="0.0"> mooring/altitude-ft </property>
87
88 <!-- Mooring rope -->
89 <property value="952"> mooring/rope-spring-coeff-lbs_ft </property>
90 <property value="2000"> mooring/max-rope-force-lbs </property>
91 <property value="35"> mooring/rope-length-ft </property>
92
93 <channel name="Mooring Forces">
94
95 <fcs_function name="mooring/latitude-diff-ft">
96 <function>
97 <product>
98 <value> -364560.0 </value>
99 <difference>
100 <property> /position/latitude-deg </property>
101 <property> mooring/latitude-deg </property>
102 </difference>
103 </product>
104 </function>
105 </fcs_function>
106
107 <fcs_function name="mooring/longitude-diff-ft">
108 <function>
109 <product>
110 <value> -364560.0 </value> <!-- Bougus conversion factor. -->
111 <difference>
112 <property> /position/longitude-deg </property>
113 <property> mooring/longitude-deg </property>
114 </difference>
115 </product>
116 </function>
117 </fcs_function>
118
119 <fcs_function name="mooring/altitude-diff-ft">
120 <function>
121 <difference>
122 <property> /position/altitude-ft </property>
123 <property> mooring/altitude-ft </property>
124 </difference>
125 </function>
126 </fcs_function>
127
128 <fcs_function name="mooring/total-distance-ft">
129 <function>
130 <pow>
131 <sum>
132 <pow>
133 <property> mooring/latitude-diff-ft </property>
134 <value> 2.0 </value>
135 </pow>
136 <pow>
137 <property> mooring/longitude-diff-ft </property>
138 <value> 2.0 </value>
139 </pow>
140 <pow>
141 <property> mooring/altitude-diff-ft </property>
142 <value> 2.0 </value>
143 </pow>
144 </sum>
145 <value> 0.5 </value>
146 </pow>
147 </function>
148 </fcs_function>
149
150 <fcs_function name="mooring/rope-force-lbs">
151 <function>
152 <product>
153 <property> mooring/mooring-connected </property>
154 <property> mooring/rope-spring-coeff-lbs_ft </property>
155 <max>
156 <difference>
157 <property> mooring/total-distance-ft </property>
158 <property> mooring/rope-length-ft </property>
159 </difference>
160 <value> 0.0 </value>
161 </max>
162 </product>
163 </function>
164 <clipto>
165 <min> 0.0 </min>
166 <max> mooring/max-rope-force-lbs </max>
167 </clipto>
168 </fcs_function>
169
170 <fcs_function name="mooring/total-force-lbs">
171 <function>
172 <property> mooring/rope-force-lbs </property>
173 </function>
174 </fcs_function>
175
176 <fcs_function name="mooring/force-north-lbs">
177 <function>
178 <product>
179 <property> mooring/mooring-connected </property>
180 <product>
181 <property> mooring/total-force-lbs </property>
182 <quotient>
183 <property> mooring/latitude-diff-ft </property>
184 <property> mooring/total-distance-ft </property>
185 </quotient>
186 </product>
187 </product>
188 </function>
189 <output> external_reactions/mooring-north/magnitude </output>
190 </fcs_function>
191
192 <fcs_function name="mooring/force-east-lbs">
193 <function>
194 <product>
195 <property> mooring/mooring-connected </property>
196 <product>
197 <property> mooring/total-force-lbs </property>
198 <quotient>
199 <property> mooring/longitude-diff-ft </property>
200 <property> mooring/total-distance-ft </property>
201 </quotient>
202 </product>
203 </product>
204 </function>
205 <output> external_reactions/mooring-east/magnitude </output>
206 </fcs_function>
207
208 <fcs_function name="mooring/force-down-lbs">
209 <function>
210 <product>
211 <property> mooring/mooring-connected </property>
212 <product>
213 <property> mooring/total-force-lbs </property>
214 <quotient>
215 <property> mooring/altitude-diff-ft </property>
216 <property> mooring/total-distance-ft </property>
217 </quotient>
218 </product>
219 </product>
220 </function>
221 <output> external_reactions/mooring-down/magnitude </output>
222 </fcs_function>
223
224 </channel>
225
226 </system>