Skip to content

Commit

Permalink
Add a test case for propeller interaction with head wind.
Browse files Browse the repository at this point in the history
This is used a test case for the FlightGear issue 2581 which is reporting issues with propeller freely spinning with a mild headwind (11 kts).
  • Loading branch information
bcoconni committed May 29, 2021
1 parent ceaf094 commit a285d4b
Showing 1 changed file with 63 additions and 0 deletions.
63 changes: 63 additions & 0 deletions scripts/c172_head_wind.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="http://jsbsim.sf.net/JSBSimScript.xsl"?>
<runscript xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://jsbsim.sf.net/JSBSimScript.xsd"
name="C172-01A">
<use aircraft="c172x" initialize="reset00"/>
<run start="0.0" end="25" dt="0.008333">
<!--
This test demonstrates, how the propeller windmilling builds up as the
head wind velocity is growing.
-->

<!-- Initialize with brakes on -->
<property value="1"> fcs/left-brake-cmd-norm </property>
<property value="1"> fcs/right-brake-cmd-norm </property>

<event name="Trim on ground">
<condition>simulation/sim-time-sec ge 0.1 </condition>
<set name="simulation/do_simple_trim" value="2" />
</event>

<event name="wind speed buildup">
<condition>simulation/sim-time-sec ge 1.0</condition>
<set name="atmosphere/wind-north-fps" action="FG_RAMP" value="-8.0" tc="10.0"/>
<notify>
<property> attitude/psi-deg </property>
</notify>
</event>

<event name="Notification">
<condition> simulation/sim-time-sec ge 11.0 </condition>
<notify>
<property> attitude/psi-deg </property>
<property> velocities/u-aero-fps </property>
<property> velocities/v-aero-fps </property>
<property> velocities/w-aero-fps </property>
<property> propulsion/engine/engine-rpm </property>
<property> propulsion/engine/propeller-rpm </property>
<property> propulsion/engine/advance-ratio </property>
<property> propulsion/engine/thrust-coefficient </property>
<property> propulsion/engine/power-hp </property>
<property> propulsion/engine/prop-induced-velocity_fps </property>
<property> propulsion/engine/propeller-power-ftlbps </property>
<property> propulsion/engine/propeller-torque-ftlb </property>
</notify>
</event>
</run>
<output name="head_wind.csv" type="CSV" rate="120">
<rates> ON </rates>
<velocities> ON </velocities>
<position> ON </position>
<atmosphere> ON </atmosphere>
<fcs> ON </fcs>
<ground_reactions> ON </ground_reactions>
<propulsion> ON </propulsion>
<simulation> ON </simulation>
<massprops> ON </massprops>
<forces> ON </forces>
<moments> ON </moments>
<aerosurfaces> ON </aerosurfaces>
<coefficients> ON </coefficients>
</output>
</runscript>

0 comments on commit a285d4b

Please sign in to comment.