| 1 |
<?xml version="1.0"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 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 |
|
| 79 |
|
| 80 |
|
| 81 |
<property value="0.0"> mooring/mooring-connected </property> |
| 82 |
|
| 83 |
|
| 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 |
|
| 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> |
| 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> |