<?xml version="1.0"?>

<!-- Copyright (c) 2026 Josh Davidson (Octal450) -->

<turbine_engine name="JT9D-59A">
	
	<milthrust>51720</milthrust>
	<tsfc>0.544</tsfc>
	<bleed>0</bleed> <!-- Set by pneumatic system -->
	<ignitionn1>2.9</ignitionn1>
	<ignitionn2>29.7</ignitionn2>
	<n1spinup>0.091</n1spinup>
	<n2spinup>0.958</n2spinup>
	<n1spindown>9.5</n1spindown>
	<n2spindown>9.5</n2spindown>
	<n1startrate>0.628</n1startrate>
	<n2startrate>1.075</n2startrate>
	<idlen1>24.7</idlen1>
	<idlen2>58.9</idlen2>
	<maxn1>105.0</maxn1>
	<maxn2>99</maxn2>
	<augmented>0</augmented>
	<injected>0</injected>
	
	<function name="N1SpoolUp">
		<product> <!-- Uneven -->
			<table>
				<independentVar lookup="row">propulsion/engine[1]/n1</independentVar>
				<independentVar lookup="column">/systems/acconfig/autoconfig-running</independentVar>
				<tableData>
					      0    1
					 24   1.3  50
					 28   2.9  50
					 46   9.7  50
					 68  15.4  50
					 80  19.6  50
					 94  21.4  50
					103  23.6  50
				</tableData>
			</table>
			<value>1.1</value>
		</product>
	</function>
	
	<function name="N1SpoolDown">
		<product> <!-- Uneven -->
			<table>
				<independentVar lookup="row">propulsion/engine[1]/n1</independentVar>
				<independentVar lookup="column">/systems/acconfig/autoconfig-running</independentVar>
				<tableData>
					      0    1
					 24   1.3  50
					 28   2.9  50
					 46   9.7  50
					 68  15.4  50
					 80  19.6  50
					 94  21.4  50
					103  23.6  50
				</tableData>
			</table>
			<value>0.9</value>
		</product>
	</function>
	
	<function name="N2SpoolUp"> <!-- N1 to N2 factor 0.499377334993773 -->
		<product> <!-- Uneven -->
			<table>
				<independentVar lookup="row">propulsion/engine[1]/n1</independentVar>
				<independentVar lookup="column">/systems/acconfig/autoconfig-running</independentVar>
				<tableData>
					      0    1
					 24   0.6  25
					 28   1.4  25
					 46   4.8  25
					 68   7.7  25
					 80   9.8  25
					 94  10.7  25
					103  11.8  25
				</tableData>
			</table>
			<value>1.1</value>
		</product>
	</function>
	
	<function name="N2SpoolDown"> <!-- N1 to N2 factor 0.499377334993773 -->
		<product> <!-- Uneven -->
			<table>
				<independentVar lookup="row">propulsion/engine[1]/n1</independentVar>
				<independentVar lookup="column">/systems/acconfig/autoconfig-running</independentVar>
				<tableData>
					      0    1
					 24   0.6  25
					 28   1.4  25
					 46   4.8  25
					 68   7.7  25
					 80   9.8  25
					 94  10.7  25
					103  11.8  25
				</tableData>
			</table>
			<value>0.9</value>
		</product>
	</function>
	
	<function name="IdleThrust">
		<table>
			<independentVar lookup="row">velocities/mach</independentVar>
			<independentVar lookup="column">atmosphere/density-altitude</independentVar>
			<tableData>
				    -10000   0       10000   20000   30000   45000   52000
				0.0  0.0430  0.0458  0.0378  0.0684  0.0654  0.0623  0.0000
				0.2  0.0500  0.0291  0.0205  0.0514  0.0539  0.0563  0.0000
				0.4  0.0040  0.0047  0.0012  0.0412  0.0460  0.0507  0.0000
				0.6  0.0000  0.0000  0.0000  0.0000  0.0181  0.0362  0.0000
				0.8  0.0000  0.0000  0.0000  0.0000  0.0158  0.0315  0.0000
				1.0  0.0000  0.0000  0.0000  0.0000  0.0000  0.0204  0.0000
				1.2  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
			</tableData>
		</table>
	</function>
	
	<function name="MilThrust"> <!-- If you change this, make sure you update the table in the engine system file -->
		<product>
			<table>
				<independentVar lookup="row">velocities/mach</independentVar>
				<independentVar lookup="column">atmosphere/density-altitude</independentVar>
				<tableData>
					    -10000   0       10000   20000   30000   45000   52000
					0.0  1.2600  1.0000  0.7400  0.5640  0.3920  0.2840  0.0000
					0.2  1.1710  0.9740  0.6970  0.5360  0.3850  0.2740  0.0000
					0.4  1.1500  0.9570  0.6920  0.5460  0.3870  0.2670  0.0000
					0.6  1.1810  0.9410  0.7210  0.5660  0.3580  0.2310  0.0000
					0.8  1.2290  1.0200  0.7820  0.5570  0.3040  0.2060  0.0000
					0.9  1.2580  1.0200  0.7820  0.5220  0.2710  0.1270  0.0000
					1.0  1.1810  0.9510  0.7210  0.4410  0.1740  0.0580  0.0000
					1.2  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
				</tableData>
			</table>
			<property>/systems/engines/limit/rated-thrust-factor</property>
			<table> <!-- Thrust loss due to reverser angle -->
				<independentVar lookup="row">/engines/engine[1]/reverser-pos-norm</independentVar>
				<tableData>
					0.01  1.00
					1.00  0.65
				</tableData>
			</table>
		</product>
	</function>

</turbine_engine>
