306 lines
8.9 KiB
XML
306 lines
8.9 KiB
XML
|
<!-- Airbus A320 Fuel -->
|
||
|
|
||
|
<!-- Copyright (c) 2019 Jonathan Redpath -->
|
||
|
|
||
|
<system name="A320: Oxygen">
|
||
|
<property value="2183">/systems/oxygen/cockpit-oxygen/cockpit-bottle-L</property>
|
||
|
<property value="15">/systems/oxygen/cockpit-oxygen/distributor-manifold-L</property>
|
||
|
|
||
|
<channel name="Cockpit Oxygen" execrate="8">
|
||
|
|
||
|
<!-- Bottle: 2183L @ 1850 psi NTPD -->
|
||
|
|
||
|
<!-- Regulator:
|
||
|
HP - transducer to ECAM
|
||
|
LP - 65 to 94 psi
|
||
|
flow: 0 to 300 L / min
|
||
|
Cyl PSI: 100 to 2030 psi
|
||
|
-->
|
||
|
|
||
|
<switch name="/systems/oxygen/cockpit-oxygen/supply-valve-cmd">
|
||
|
<default value="0"/>
|
||
|
<test logic="AND" value="1"> <!-- solenoid valve; when not energized, it shuts -->
|
||
|
/controls/oxygen/crewOxyPB eq 1
|
||
|
/systems/electrical/bus/dc-ess-shed ge 25
|
||
|
</test>
|
||
|
</switch>
|
||
|
|
||
|
<actuator name="/systems/oxygen/cockpit-oxygen/supply-valve">
|
||
|
<input>/systems/oxygen/cockpit-oxygen/supply-valve-cmd</input>
|
||
|
<rate_limit>10</rate_limit>
|
||
|
</actuator>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/mask-1-flow-rate">
|
||
|
<function>
|
||
|
<product>
|
||
|
<quotient>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/distributor-manifold-L</property>
|
||
|
<value>15</value>
|
||
|
</quotient>
|
||
|
<property>/controls/oxygen/cockpit-mask-1-on</property>
|
||
|
<table>
|
||
|
<independentVar lookup="row">/systems/pressurization/cabinalt</independentVar>
|
||
|
<independentVar lookup="column">/controls/oxygen/cockpit-mask-1-selector</independentVar>
|
||
|
<tableData>
|
||
|
0 1
|
||
|
0 0 29.5
|
||
|
5000 0.0 31.0
|
||
|
8000 0.17 36.4
|
||
|
10000 0.71 36.9
|
||
|
15000 5.60 37.9
|
||
|
20000 15.9 38.9
|
||
|
30000 30.4 39.9
|
||
|
35000 40.9 40.9
|
||
|
40000 41.9 41.9
|
||
|
</tableData>
|
||
|
</table>
|
||
|
</product>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/mask-2-flow-rate">
|
||
|
<function>
|
||
|
<product>
|
||
|
<quotient>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/distributor-manifold-L</property>
|
||
|
<value>15</value>
|
||
|
</quotient>
|
||
|
<property>/controls/oxygen/cockpit-mask-2-on</property>
|
||
|
<table>
|
||
|
<independentVar lookup="row">/systems/pressurization/cabinalt</independentVar>
|
||
|
<independentVar lookup="column">/controls/oxygen/cockpit-mask-2-selector</independentVar>
|
||
|
<tableData>
|
||
|
0 1
|
||
|
0 0 29.5
|
||
|
5000 0.0 31.0
|
||
|
8000 0.17 36.4
|
||
|
10000 0.71 36.9
|
||
|
15000 5.60 37.9
|
||
|
20000 15.9 38.9
|
||
|
30000 30.4 39.9
|
||
|
35000 40.9 40.9
|
||
|
40000 41.9 41.9
|
||
|
</tableData>
|
||
|
</table>
|
||
|
</product>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/mask-3-flow-rate">
|
||
|
<function>
|
||
|
<product>
|
||
|
<quotient>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/distributor-manifold-L</property>
|
||
|
<value>15</value>
|
||
|
</quotient>
|
||
|
<property>/controls/oxygen/cockpit-mask-3-on</property>
|
||
|
<table>
|
||
|
<independentVar lookup="row">/systems/pressurization/cabinalt</independentVar>
|
||
|
<independentVar lookup="column">/controls/oxygen/cockpit-mask-3-selector</independentVar>
|
||
|
<tableData>
|
||
|
0 1
|
||
|
0 0 29.5
|
||
|
5000 0.0 31.0
|
||
|
8000 0.17 36.4
|
||
|
10000 0.71 36.9
|
||
|
15000 5.60 37.9
|
||
|
20000 15.9 38.9
|
||
|
30000 30.4 39.9
|
||
|
35000 40.9 40.9
|
||
|
40000 41.9 41.9
|
||
|
</tableData>
|
||
|
</table>
|
||
|
</product>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/mask-4-flow-rate">
|
||
|
<function>
|
||
|
<product>
|
||
|
<quotient>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/distributor-manifold-L</property>
|
||
|
<value>15</value>
|
||
|
</quotient>
|
||
|
<property>/controls/oxygen/cockpit-mask-4-on</property>
|
||
|
<table>
|
||
|
<independentVar lookup="row">/systems/pressurization/cabinalt</independentVar>
|
||
|
<independentVar lookup="column">/controls/oxygen/cockpit-mask-4-selector</independentVar>
|
||
|
<tableData>
|
||
|
0 1
|
||
|
0 0 29.5
|
||
|
5000 0.0 31.0
|
||
|
8000 0.17 36.4
|
||
|
10000 0.71 36.9
|
||
|
15000 5.60 37.9
|
||
|
20000 15.9 38.9
|
||
|
30000 30.4 39.9
|
||
|
35000 40.9 40.9
|
||
|
40000 41.9 41.9
|
||
|
</tableData>
|
||
|
</table>
|
||
|
</product>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="Cockpit Oxygen Bottle">
|
||
|
<function>
|
||
|
<sum>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/cockpit-bottle-L</property>
|
||
|
<product>
|
||
|
<quotient>
|
||
|
<property>-/systems/oxygen/cockpit-oxygen/hp-regulator-flow-rate</property>
|
||
|
<value>60</value>
|
||
|
</quotient>
|
||
|
<property>simulation/channel-dt</property>
|
||
|
</product>
|
||
|
</sum>
|
||
|
</function>
|
||
|
<output>/systems/oxygen/cockpit-oxygen/cockpit-bottle-L</output>
|
||
|
<clipto>
|
||
|
<min>0.0</min>
|
||
|
<max>2183.0</max>
|
||
|
</clipto>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/bottle-psi">
|
||
|
<function>
|
||
|
<product>
|
||
|
<value>58.58145</value>
|
||
|
<pow>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/cockpit-bottle-L</property>
|
||
|
<value>0.4512568</value>
|
||
|
</pow>
|
||
|
</product>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/bottle-flow-rate">
|
||
|
<function>
|
||
|
<table>
|
||
|
<independentVar lookup="row">/systems/oxygen/cockpit-oxygen/cockpit-bottle-L</independentVar>
|
||
|
<tableData>
|
||
|
0 0
|
||
|
500 200
|
||
|
1000 275
|
||
|
2000 300
|
||
|
2183 300
|
||
|
</tableData>
|
||
|
</table>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/distributor-fill-rate">
|
||
|
<function>
|
||
|
<product>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/supply-valve</property>
|
||
|
<table>
|
||
|
<independentVar lookup="row">/systems/oxygen/cockpit-oxygen/distributor-manifold-L</independentVar>
|
||
|
<tableData>
|
||
|
0 300
|
||
|
14.5 170
|
||
|
15 0
|
||
|
</tableData>
|
||
|
</table>
|
||
|
</product>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/hp-regulator-flow-rate-calc">
|
||
|
<function>
|
||
|
<product>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/bottle-flow-rate</property>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/supply-valve</property>
|
||
|
</product>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/hp-regulator-flow-rate">
|
||
|
<function>
|
||
|
<sum>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/mask-1-flow-rate</property>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/mask-2-flow-rate</property>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/mask-3-flow-rate</property>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/mask-4-flow-rate</property>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/distributor-fill-rate</property>
|
||
|
</sum>
|
||
|
</function>
|
||
|
<clipto>
|
||
|
<min>0.0</min>
|
||
|
<max>/systems/oxygen/cockpit-oxygen/hp-regulator-flow-rate-calc</max>
|
||
|
</clipto>
|
||
|
</fcs_function>
|
||
|
|
||
|
<!-- Distributor -->
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/distributor-manifold-rate">
|
||
|
<function>
|
||
|
<sum>
|
||
|
<property>-/systems/oxygen/cockpit-oxygen/mask-1-flow-rate</property>
|
||
|
<property>-/systems/oxygen/cockpit-oxygen/mask-2-flow-rate</property>
|
||
|
<property>-/systems/oxygen/cockpit-oxygen/mask-3-flow-rate</property>
|
||
|
<property>-/systems/oxygen/cockpit-oxygen/mask-4-flow-rate</property>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/hp-regulator-flow-rate</property>
|
||
|
</sum>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="Cockpit Oxygen Distributor">
|
||
|
<function>
|
||
|
<sum>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/distributor-manifold-L</property>
|
||
|
<product>
|
||
|
<quotient>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/distributor-manifold-rate</property>
|
||
|
<value>60</value>
|
||
|
</quotient>
|
||
|
<property>simulation/channel-dt</property>
|
||
|
</product>
|
||
|
</sum>
|
||
|
</function>
|
||
|
<output>/systems/oxygen/cockpit-oxygen/distributor-manifold-L</output>
|
||
|
<clipto>
|
||
|
<min>0.0</min>
|
||
|
<max>15.0</max>
|
||
|
</clipto>
|
||
|
</fcs_function>
|
||
|
|
||
|
<fcs_function name="/systems/oxygen/cockpit-oxygen/distributor-psi">
|
||
|
<function>
|
||
|
<product>
|
||
|
<value>75</value>
|
||
|
<log10>
|
||
|
<sum>
|
||
|
<property>/systems/oxygen/cockpit-oxygen/distributor-manifold-L</property>
|
||
|
<value>1</value>
|
||
|
</sum>
|
||
|
</log10>
|
||
|
</product>
|
||
|
</function>
|
||
|
</fcs_function>
|
||
|
|
||
|
<switch name="/systems/oxygen/cockpit-oxygen/regul-lo-pr">
|
||
|
<default value="0"/>
|
||
|
<test logic="OR" value="1">
|
||
|
/systems/oxygen/cockpit-oxygen/distributor-psi lt 50
|
||
|
</test>
|
||
|
</switch>
|
||
|
</channel>
|
||
|
|
||
|
<channel name="Passenger Oxygen" execrate="8">
|
||
|
|
||
|
<!-- Chemical generators
|
||
|
Masks drop automatically if altitude > 14000 or 16000 if HI ALT
|
||
|
or MAN ON button
|
||
|
Taped message + SYS ON comes online
|
||
|
15 minutes supply
|
||
|
SYS ON goes off only when TIMER RESET
|
||
|
|
||
|
Door actuators AC ESS SHED 801PP
|
||
|
Pressure switch for 14K feet powered by 401PP (DC ESS)
|
||
|
Reset + taped msg + sys on light powred by 401PP
|
||
|
|
||
|
Regulators: below 10k zero flow
|
||
|
-->
|
||
|
</channel>
|
||
|
|
||
|
</system>
|