88b49b4259
Sync with commit cab40a0af989bf08302836f98e91672920369fa3
137 lines
5.7 KiB
XML
137 lines
5.7 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
***********************************************************************************
|
|
c172p, June 2015
|
|
Fuel system for 2 different engines at choice, JSBSim FDM
|
|
***********************************************************************************
|
|
-->
|
|
|
|
<system name="fuel">
|
|
|
|
<!-- *********************************************************************************** -->
|
|
<!-- Main tanks: 0 and 1 -->
|
|
<!-- Collector Tanks: 2 and 3, constant-level intermediate float chambers -->
|
|
<!-- Collector Tank 2: engine 0, Collector Tank 3: engine 1 -->
|
|
<!-- Fuel Flow Rates in pounds per second -->
|
|
<!-- *********************************************************************************** -->
|
|
|
|
<channel name="Float Chamber Selection">
|
|
<!-- Give tank[2] priority if 160 HP engine is used -->
|
|
<switch>
|
|
<output>propulsion/tank[2]/priority</output>
|
|
<default value="0"/>
|
|
<test logic="AND" value="1">
|
|
/controls/engines/active-engine EQ 0
|
|
/engines/active-engine/killed EQ 0
|
|
</test>
|
|
</switch>
|
|
|
|
<!-- Give tank[3] priority if 180 HP engine is used -->
|
|
<switch>
|
|
<output>propulsion/tank[3]/priority</output>
|
|
<default value="0"/>
|
|
<test logic="AND" value="1">
|
|
/controls/engines/active-engine EQ 1
|
|
/engines/active-engine/killed EQ 0
|
|
</test>
|
|
</switch>
|
|
</channel>
|
|
|
|
<!-- ****************************************************** -->
|
|
<!-- Collector Tank 2 level-maintenance -->
|
|
<!-- ****************************************************** -->
|
|
<channel name="To Tank2">
|
|
<!-- from Tank 0 (to Collector Tank 2) -->
|
|
<switch name="fuel/from-tank0-to-tank2">
|
|
<default value="0"/>
|
|
<test logic="AND" value="0.1">
|
|
propulsion/tank[0]/priority EQ 1
|
|
propulsion/tank[0]/contents-lbs GT 0
|
|
/consumables/fuel/tank[2]/level-lbs LT 0.05
|
|
propulsion/tank[2]/priority EQ 1
|
|
accelerations/Nz GE 0
|
|
</test>
|
|
</switch>
|
|
|
|
<!-- from Tank 1 (to Collector Tank 2) -->
|
|
<switch name="fuel/from-tank1-to-tank2">
|
|
<default value="0"/>
|
|
<test logic="AND" value="0.1">
|
|
propulsion/tank[1]/priority EQ 1
|
|
propulsion/tank[1]/contents-lbs GT 0
|
|
/consumables/fuel/tank[2]/level-lbs LT 0.05
|
|
propulsion/tank[2]/priority EQ 1
|
|
accelerations/Nz GE 0
|
|
</test>
|
|
</switch>
|
|
</channel>
|
|
|
|
<!-- Total from Tank 0 and Tank 1 to Collector Tank 2 -->
|
|
<channel name="Total flow rate into tank 2">
|
|
<summer name="tank0 and 1 to tank2">
|
|
<input>fuel/from-tank0-to-tank2</input>
|
|
<input>fuel/from-tank1-to-tank2</input>
|
|
<output>propulsion/tank[2]/external-flow-rate-pps</output>
|
|
</summer>
|
|
</channel>
|
|
|
|
<!-- ****************************************************** -->
|
|
<!-- Collector Tank 3 level maintenance -->
|
|
<!-- ****************************************************** -->
|
|
<channel name="To Tank3">
|
|
<!-- from Tank 0 (to Collector Tank 3) -->
|
|
<switch name="fuel/from-tank0-to-tank3">
|
|
<default value="0"/>
|
|
<test logic="AND" value="0.1">
|
|
propulsion/tank[0]/priority EQ 1
|
|
propulsion/tank[0]/contents-lbs GT 0
|
|
/consumables/fuel/tank[3]/level-lbs LT 0.05
|
|
propulsion/tank[3]/priority EQ 1
|
|
accelerations/Nz GE 0
|
|
</test>
|
|
</switch>
|
|
|
|
<!-- from Tank 1 (to Collector Tank 3) Fuel Flow Rate in pps -->
|
|
<switch name="fuel/from-tank1-to-tank3">
|
|
<default value="0"/>
|
|
<test logic="AND" value="0.1">
|
|
propulsion/tank[1]/priority EQ 1
|
|
propulsion/tank[1]/contents-lbs GT 0
|
|
/consumables/fuel/tank[3]/level-lbs LT 0.05
|
|
propulsion/tank[3]/priority EQ 1
|
|
accelerations/Nz GE 0
|
|
</test>
|
|
</switch>
|
|
</channel>
|
|
|
|
<!-- Total from Tank 0 and Tank 1 to Collector Tank 3 -->
|
|
<channel name="Total flow rate into tank 3">
|
|
<summer name="tank0 and 1 to tank3">
|
|
<input>fuel/from-tank0-to-tank3</input>
|
|
<input>fuel/from-tank1-to-tank3</input>
|
|
<output>propulsion/tank[3]/external-flow-rate-pps</output>
|
|
</summer>
|
|
</channel>
|
|
|
|
|
|
<!-- *********************************************************************************** -->
|
|
<!-- FLOW RATE from each MAIN TANK (consumption) -->
|
|
<!-- *********************************************************************************** -->
|
|
|
|
<channel name="Total flow rates">
|
|
<summer name="fuel/tank0-flow-rate">
|
|
<input>-fuel/from-tank0-to-tank2</input>
|
|
<input>-fuel/from-tank0-to-tank3</input>
|
|
<output>propulsion/tank[0]/external-flow-rate-pps</output>
|
|
</summer>
|
|
|
|
<summer name="fuel/tank1-flow-rate">
|
|
<input>-fuel/from-tank1-to-tank2</input>
|
|
<input>-fuel/from-tank1-to-tank3</input>
|
|
<output>propulsion/tank[1]/external-flow-rate-pps</output>
|
|
</summer>
|
|
</channel>
|
|
|
|
</system>
|
|
|