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

115 lines
3.2 KiB
XML
Raw Normal View History

<?xml version="1.0"?>
2017-09-23 01:56:44 +00:00
<!-- A3XX Fuel System -->
<!-- Joshua Davidson (it0uchpods) -->
2019-01-01 06:03:06 +00:00
<!-- Copyright (c) 2019 Joshua Davidson (it0uchpods) -->
<system name="fuel">
2017-09-23 01:56:44 +00:00
<channel name="Fuel to Engine 1 Pipes">
<switch name="fuel/from-tank0-to-tank3">
<default value="0"/>
<test logic="AND" value="9">
/systems/fuel/only-use-ctr-tank == 0
2017-09-23 03:53:01 +00:00
/systems/fuel/tank[0]/feed == 1
2018-07-12 21:03:28 +00:00
propulsion/tank[0]/contents-lbs gt 0
propulsion/tank[3]/contents-lbs lt 9
</test>
</switch>
2017-09-23 01:56:44 +00:00
<switch name="fuel/from-tank1-to-tank3">
<default value="0"/>
<test logic="AND" value="9">
2017-09-23 03:53:01 +00:00
/systems/fuel/tank[1]/feed == 1
2018-07-12 21:03:28 +00:00
propulsion/tank[1]/contents-lbs gt 0
propulsion/tank[3]/contents-lbs lt 9
</test>
</switch>
2017-09-23 01:56:44 +00:00
<switch name="fuel/from-tank2-to-tank3">
<default value="0"/>
<test logic="AND" value="9">
2017-09-23 01:56:44 +00:00
/systems/fuel/x-feed == 1
/systems/fuel/only-use-ctr-tank == 0
2017-09-23 03:53:01 +00:00
/systems/fuel/tank[2]/feed == 1
2018-07-12 21:03:28 +00:00
propulsion/tank[0]/contents-lbs eq 0
propulsion/tank[2]/contents-lbs gt 0
propulsion/tank[3]/contents-lbs lt 9
</test>
</switch>
2017-09-23 01:56:44 +00:00
</channel>
2017-09-23 01:56:44 +00:00
<channel name="Fuel to Engine 2 Pipes">
<switch name="fuel/from-tank2-to-tank4">
<default value="0"/>
<test logic="AND" value="9">
/systems/fuel/only-use-ctr-tank == 0
2017-09-23 03:53:01 +00:00
/systems/fuel/tank[2]/feed == 1
2018-07-12 21:03:28 +00:00
propulsion/tank[2]/contents-lbs gt 0
propulsion/tank[4]/contents-lbs lt 9
</test>
</switch>
2017-09-23 01:56:44 +00:00
<switch name="fuel/from-tank1-to-tank4">
<default value="0"/>
<test logic="AND" value="9">
2017-09-23 03:53:01 +00:00
/systems/fuel/tank[1]/feed == 1
2018-07-12 21:03:28 +00:00
propulsion/tank[1]/contents-lbs gt 0
propulsion/tank[4]/contents-lbs lt 9
</test>
</switch>
2017-09-23 01:56:44 +00:00
<switch name="fuel/from-tank0-to-tank4">
<default value="0"/>
<test logic="AND" value="9">
2017-09-23 01:56:44 +00:00
/systems/fuel/x-feed == 1
/systems/fuel/only-use-ctr-tank == 0
2017-09-23 03:53:01 +00:00
/systems/fuel/tank[0]/feed == 1
2018-07-12 21:03:28 +00:00
propulsion/tank[2]/contents-lbs eq 0
propulsion/tank[0]/contents-lbs gt 0
propulsion/tank[4]/contents-lbs lt 9
</test>
</switch>
2017-09-23 01:56:44 +00:00
</channel>
2017-09-23 01:56:44 +00:00
<channel name="Engine 1 Pipes">
2017-09-23 02:22:20 +00:00
<summer name="tank0 tank1 tank 2 to tank3">
2017-09-23 01:56:44 +00:00
<input>fuel/from-tank0-to-tank3</input>
<input>fuel/from-tank1-to-tank3</input>
2017-09-23 02:22:20 +00:00
<input>fuel/from-tank2-to-tank3</input>
2017-09-23 01:56:44 +00:00
<output>propulsion/tank[3]/external-flow-rate-pps</output>
</summer>
2017-09-23 01:56:44 +00:00
</channel>
2017-09-23 01:56:44 +00:00
<channel name="Engine 2 Pipes">
2017-09-23 02:22:20 +00:00
<summer name="tank0 tank1 tank 2 to tank4">
2017-09-23 01:56:44 +00:00
<input>fuel/from-tank2-to-tank4</input>
<input>fuel/from-tank1-to-tank4</input>
2017-09-23 02:22:20 +00:00
<input>fuel/from-tank0-to-tank4</input>
<output>propulsion/tank[4]/external-flow-rate-pps</output>
</summer>
2017-09-23 01:56:44 +00:00
</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>
2017-09-23 01:56:44 +00:00
<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>