<?xml version="1.0"?>

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

<turbine_engine name="CFM56_5B4">

	<!-- source https://www.youtube.com/watch?v=jnGfzv7Odh4 -->
	<milthrust>     27000 </milthrust>
	<tsfc>          0.445 </tsfc>
	<bleed>          0.03 </bleed>
	<ignitionn1>	  0.6 </ignitionn1>
	<ignitionn2>	 22.2</ignitionn2>
	<idlen1>         18.9 </idlen1>
	<idlen2>         59.4 </idlen2>
	<n1spinup>       0.05 </n1spinup>
	<n2spinup>       1.85 </n2spinup>
	<n1startrate>   0.573 </n1startrate>
	<n2startrate>   1.127 </n2startrate>
	<maxn1>         103.8 </maxn1>
	<maxn2>         101.4 </maxn2>
	<augmented>         0 </augmented>
	<injected>          0 </injected>
	
	<function name="N1SpoolUp">
		<table>
			<independentVar lookup="row">/engines/engine[0]/n1</independentVar>
			<tableData>
				 24   1.1
				 28   2.9
				 46   9.7
				 68  15.4
				 80  19.6
				 94  21.4
				103  23.6
			</tableData>
		</table>
	</function>
	
	<function name="N1SpoolDown">
		<table>
			<independentVar lookup="row">/engines/engine[0]/n1</independentVar>
			<tableData>
				 24   1.1
				 28   2.9
				 46   9.7
				 68  15.4
				 80  19.6
				 94  21.4
				103  23.6
			</tableData>
		</table>
	</function>
	
	<function name="N2SpoolUp">
		<table>
			<independentVar lookup="row">/engines/engine[0]/n1</independentVar>
			<tableData>
				 24   1.1
				 28   2.9
				 46   9.7
				 68  15.4
				 80  19.6
				 94  21.4
				103  23.6
			</tableData>
		</table>
	</function>
	
	<function name="N2SpoolDown">
		<table>
			<independentVar lookup="row">/engines/engine[0]/n1</independentVar>
			<tableData>
				 24   1.1
				 28   2.9
				 46   9.7
				 68  15.4
				 80  19.6
				 94  21.4
				103  23.6
			</tableData>
		</table>
	</function>
	
	<function name="IdleThrust">
		<table>
			<independentVar lookup="row">velocities/mach</independentVar>
			<independentVar lookup="column">atmosphere/density-altitude</independentVar>
			<tableData>
				    -10000   0       10000   20000   30000   40000   50000
				0.0  0.0430  0.0458  0.0378  0.0684  0.0619  0.0693  0.0000
				0.2  0.0500  0.0291  0.0205  0.0514  0.0627  0.0629  0.0000
				0.4  0.0040  0.0047  0.0012  0.0412  0.0485  0.0571  0.0000
				0.6  0.0000  0.0000  0.0000  0.0000  0.0316  0.0418  0.0000
				0.8  0.0000  0.0000  0.0000  0.0000  0.0254  0.0368  0.0000
				1.0  0.0000  0.0000  0.0000  0.0000  0.0000  0.0252  0.0000
			</tableData>
		</table>
	</function>
	
	<function name="MilThrust">
		<table>
			<independentVar lookup="row">velocities/mach</independentVar>
			<independentVar lookup="column">atmosphere/density-altitude</independentVar>
			<tableData>
				     -10000   0       10000   20000   30000   40000   50000
				0.0   1.2600  1.0000  0.7400  0.5640  0.3920  0.2710  0.0000
				0.2   1.1710  0.9740  0.6970  0.5360  0.3850  0.2610  0.0000
				0.4   1.1500  0.9570  0.6920  0.5460  0.3870  0.2530  0.0000
				0.6   1.1810  0.9410  0.7210  0.5660  0.3580  0.2180  0.0000
				0.8   1.2290  1.0200  0.7820  0.5570  0.3040  0.1930  0.0000
				0.9   1.2580  1.0200  0.7820  0.5220  0.2710  0.1140  0.0000
				1.0   1.1810  0.9510  0.7210  0.4410  0.1740  0.0450  0.0000
				1.2   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
				1.4   0.0000  0.0000  0.0000  0.0000  0.0000  0.0000  0.0000
			</tableData>
		</table>
	</function>

</turbine_engine>