This repository has been archived on 2021-09-26. You can view files and clone it, but cannot push or open issues or pull requests.
IDG-A32X/Systems/fuel.xml
2017-09-22 22:22:20 -04:00

116 lines
3.4 KiB
XML

<?xml version="1.0"?>
<!-- A3XX Fuel System -->
<!-- Joshua Davidson (it0uchpods) -->
<!--
#########################################
# Copyright (c) it0uchpods Design Group #
#########################################
-->
<system name="fuel">
<channel name="Fuel to Engine 1 Pipes">
<switch name="fuel/from-tank0-to-tank3">
<default value="0"/>
<test logic="AND" value="0.9">
/systems/fuel/only-use-ctr-tank == 0
/systems/fuel/tank[0]/feed0 == 1
propulsion/tank[0]/contents-lbs GT 0
/consumables/fuel/tank[3]/level-lbs LT 0.9
</test>
</switch>
<switch name="fuel/from-tank1-to-tank3">
<default value="0"/>
<test logic="AND" value="0.9">
/systems/fuel/tank[1]/feed0 == 1
propulsion/tank[1]/contents-lbs GT 0
/consumables/fuel/tank[3]/level-lbs LT 0.9
</test>
</switch>
<switch name="fuel/from-tank2-to-tank3">
<default value="0"/>
<test logic="AND" value="0.9">
/systems/fuel/x-feed == 1
/systems/fuel/only-use-ctr-tank == 0
/systems/fuel/tank[2]/feed0 == 1
propulsion/tank[2]/contents-lbs GT 0
/consumables/fuel/tank[3]/level-lbs LT 0.9
</test>
</switch>
</channel>
<channel name="Fuel to Engine 2 Pipes">
<switch name="fuel/from-tank2-to-tank4">
<default value="0"/>
<test logic="AND" value="0.9">
/systems/fuel/only-use-ctr-tank == 0
/systems/fuel/tank[2]/feed0 == 1
propulsion/tank[2]/contents-lbs GT 0
/consumables/fuel/tank[4]/level-lbs LT 0.9
</test>
</switch>
<switch name="fuel/from-tank1-to-tank4">
<default value="0"/>
<test logic="AND" value="0.9">
/systems/fuel/tank[1]/feed0 == 1
propulsion/tank[1]/contents-lbs GT 0
/consumables/fuel/tank[4]/level-lbs LT 0.9
</test>
</switch>
<switch name="fuel/from-tank0-to-tank4">
<default value="0"/>
<test logic="AND" value="0.9">
/systems/fuel/x-feed == 1
/systems/fuel/only-use-ctr-tank == 0
/systems/fuel/tank[0]/feed0 == 1
propulsion/tank[0]/contents-lbs GT 0
/consumables/fuel/tank[4]/level-lbs LT 0.9
</test>
</switch>
</channel>
<channel name="Engine 1 Pipes">
<summer name="tank0 tank1 tank 2 to tank3">
<input>fuel/from-tank0-to-tank3</input>
<input>fuel/from-tank1-to-tank3</input>
<input>fuel/from-tank2-to-tank3</input>
<output>propulsion/tank[3]/external-flow-rate-pps</output>
</summer>
</channel>
<channel name="Engine 2 Pipes">
<summer name="tank0 tank1 tank 2 to tank4">
<input>fuel/from-tank2-to-tank4</input>
<input>fuel/from-tank1-to-tank4</input>
<input>fuel/from-tank0-to-tank4</input>
<output>propulsion/tank[4]/external-flow-rate-pps</output>
</summer>
</channel>
<channel name="Total PPS">
<summer name="fuel/tank0-flow-rate">
<input>-fuel/from-tank0-to-tank3</input>
<input>-fuel/from-tank0-to-tank4</input>
<output>propulsion/tank[0]/external-flow-rate-pps</output>
</summer>
<summer name="fuel/tank1-flow-rate">
<input>-fuel/from-tank1-to-tank3</input>
<input>-fuel/from-tank1-to-tank4</input>
<output>propulsion/tank[1]/external-flow-rate-pps</output>
</summer>
<summer name="fuel/tank2-flow-rate">
<input>-fuel/from-tank2-to-tank4</input>
<input>-fuel/from-tank2-to-tank3</input>
<output>propulsion/tank[2]/external-flow-rate-pps</output>
</summer>
</channel>
</system>