<!-- Airbus A320 Aerodynamics -->
<!-- Joshua Davidson (it0uchpods) -->

<!--
##############################################
# Copyright (c) Joshua Davidson (it0uchpods) #
##############################################
-->

<aerodynamics>
	
	<property value="0.0">ice/wing</property>
	
	<axis name="LIFT">
		
		<function name="aero/force/Lift_alpha">
			<description>Lift due to alpha</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">aero/alpha-rad</independentVar>
					<tableData>
						-1.57 -1.4000
						-1.22 -1.3512
						-1.05 -1.2426
						-0.88 -1.1575
						-0.64 -1.0312
						-0.25 -0.9379
						 0.00  0.1494
						 0.25  1.6072
						 0.60  1.0305
						 0.88  0.6415
						 1.05  0.2294
						 1.22  0.0544
						 1.57  0.0000
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/force/Lift_pitch_rate">
			<description>Lift due to pitch rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>velocities/q-aero-rad_sec</property>
				<property>aero/ci2vel</property>
				<value>6.5404</value>
			</product>
		</function>
		
		<function name="aero/force/Lift_alpha_rate">
			<description>Lift due to alpha rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>aero/alphadot-rad_sec</property>
				<property>aero/ci2vel</property>
				<value>1.9706</value>
			</product>
		</function>
		
		<function name="aero/force/Lift_pitch_control">
			<description>Lift due to pitch control deflection</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/pitch-pos-geared</property>
				<value>0.2395</value>
			</product>
		</function>
		
		<function name="aero/force/Lift_pitch_trim_control">
			<description>Lift due to pitch trim control deflection</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/pitch-trim-pos-geared</property>
				<value>0.0151</value>
			</product>
		</function>
		
		<function name="aero/force/Lift_flap">
			<description>Delta Lift due to flaps</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">fcs/flap-pos-norm</independentVar>
					<tableData>
						0.000  0.0000
						0.290  0.0648
						0.596  0.1017
						0.645  0.2404
						1.000  0.3066
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/force/Lift_slat">
			<description>Delta Lift due to slats</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">fcs/slat-pos-norm</independentVar>
					<tableData>
						0.000  0.0000
						0.666  0.1734
						0.814  0.2509
						1.000  0.3113
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/force/Lift_speedbrake">
			<description>Delta Lift due to speedbrake</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/speedbrake-pos-norm</property>
				<value>-0.15</value>
			</product>
		</function>
		
		<function name="aero/coefficient/CLicew">
			<description>Lift_decrease_due_to_ice_on_wing</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar>ice/wing</independentVar>
					<tableData>
						0.0  0.0
						0.5 -0.1
						1.0 -0.3
						2.0 -1.5
					</tableData>
				</table>
			</product>
		</function>
	
	</axis>
	
	<axis name="DRAG">
		
		<function name="aero/force/Drag_minimum">
			<description>Minimum drag</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<value>0.0125</value>
			</product>
		</function>
		
		<function name="aero/force/Drag_alpha">
			<description>Drag due to alpha</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">aero/alpha-rad</independentVar>
					<tableData>
						-1.57  1.3083
						-0.20  0.0331
						 0.00  0.0000
						 0.20  0.0331
						 1.57  1.3083
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/force/Drag_induced">
			<description>Induced drag</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>aero/cl-squared</property>
				<value>0.0384</value>
			</product>
		</function>
		
		<function name="aero/force/Drag_mach">
			<description>Drag due to mach</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">velocities/mach</independentVar>
					<tableData>
						0.00  0.000
						0.20  0.000
						0.79  0.002
						1.10  0.023
						1.80  0.015
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/force/Drag_beta">
			<description>Drag due to sideslip</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">aero/beta-rad</independentVar>
					<tableData>
						-1.57  1.23
						-0.26  0.05
						 0.00  0.00
						 0.26  0.05
						 1.57  1.23
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/force/Drag_pitch_control">
			<description>Drag due to pitch control deflection</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<abs><property>fcs/pitch-pos-geared</property></abs>
				<value>0.02</value>
			</product>
		</function>
		
		<function name="aero/force/Drag_pitch_trim_control">
			<description>Drag due to pitch trim control deflection</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<abs><property>fcs/pitch-trim-pos-geared</property></abs>
				<value>0.02</value>
			</product>
		</function>
		
		<function name="aero/force/Drag_gear">
			<description>Drag due to gear</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>gear/gear-pos-norm</property>
				<value>0.0175</value>
			</product>
		</function>
		
		<function name="aero/force/Drag_flap">
			<description>Drag due to flaps</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/flap-pos-deg</property>
				<value>0.00125</value>
			</product>
		</function>
		
		<function name="aero/force/Drag_slat">
			<description>Drag due to slats</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/slat-pos-deg</property>
				<value>0.00125</value>
			</product>
		</function>
		
		<function name="aero/force/Drag_speedbrake">
			<description>Drag due to speedbrake</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/speedbrake-pos-norm</property>
				<value>0.0275</value>
			</product>
		</function>
	
	</axis>
	
	<axis name="SIDE">
		
		<function name="aero/force/Side_beta">
			<description>Side force due to beta</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>aero/beta-rad</property>
				<value>-0.8887</value>
			</product>
		</function>
		
		<function name="aero/force/Side_roll_rate">
			<description>Side force due to roll rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>aero/bi2vel</property>
				<property>velocities/p-aero-rad_sec</property>
				<table>
					<independentVar lookup="row">aero/Re</independentVar>
					<tableData>
						25661346  0.2466
						28227480  0.0178
						38492020  0.0079
						51187312  0.0045
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/force/Side_yaw_rate">
			<description>Side force due to yaw rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>aero/bi2vel</property>
				<property>velocities/r-aero-rad_sec</property>
				<value>0.8709</value>
			</product>
		</function>
		
		<function name="aero/force/Side_rudder">
			<description>Side force due to rudder</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/rudder-pos-rad</property>
				<value>0.2653</value>
			</product>
		</function>
		
		<function name="aero/force/Drag_wingice">
			<description>Drag_due_to_ice_on_wing</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar>ice/wing</independentVar>
					<tableData>
						0.0  0.000
						0.5  0.004
						1.0  0.010
						2.0  0.100
					</tableData>
				</table>
			</product>
		</function>
	
	</axis>
	
	<axis name="ROLL">
		
		<function name="aero/moment/Roll_beta">
			<description>Roll moment due to beta</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/beta-rad</property>
				<value>-0.1</value>
			</product>
		</function>
		
		<function name="aero/moment/Roll_damp">
			<description>Roll moment due to roll rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/bi2vel</property>
				<property>velocities/p-aero-rad_sec</property>
				<value>-0.47</value>
			</product>
		</function>
		
		<function name="aero/moment/Roll_yaw">
			<description>Roll moment due to yaw rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/bi2vel</property>
				<property>velocities/r-aero-rad_sec</property>
				<value>0.2</value>
			</product>
		</function>
		
		<function name="aero/moment/Roll_control">
			<description>Roll moment due to roll control</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/roll-pos-rad</property>
				<value>0.11</value>
			</product>
		</function>
		
		<function name="aero/moment/Roll_rudder">
			<description>Roll moment due to rudder</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/rudder-pos-rad</property>
				<value>0.01</value>
			</product>
		</function>
	
	</axis>
	
	<axis name="PITCH">
		
		<function name="aero/moment/Pitch_alpha">
			<description>Pitch moment due to alpha</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>aero/alpha-rad</property>
				<value>-0.5918</value>
			</product>
		</function>
		
		<function name="aero/moment/Pitch_control">
			<description>Pitch moment due to pitch control</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>fcs/pitch-pos-geared</property>
				<value>-1.425</value>
			</product>
		</function>
		
		<function name="aero/moment/Pitch_trim_control">
			<description>Pitch moment due to pitch trim control</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>fcs/pitch-trim-pos-geared</property>
				<value>-2.845</value>
			</product>
		</function>
		
		<function name="aero/moment/Pitch_damp">
			<description>Pitch moment due to pitch rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>aero/ci2vel</property>
				<property>velocities/q-aero-rad_sec</property>
				<value>-37.4</value>
			</product>
		</function>
		
		<function name="aero/moment/Pitch_alphadot">
			<description>Pitch moment due to alpha rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>aero/ci2vel</property>
				<property>aero/alphadot-rad_sec</property>
				<value>-1.0356</value>
			</product>
		</function>
	
	</axis>
	
	<axis name="YAW">
		
		<function name="aero/moment/Yaw_beta">
			<description>Yaw moment due to beta</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/beta-rad</property>
				<value>0.1292</value>
			</product>
		</function>
		
		<function name="aero/moment/Yaw_roll_rate">
			<description>Yaw moment due to roll rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/bi2vel</property>
				<property>velocities/r-aero-rad_sec</property>
				<value>-0.2</value>
			</product>
		</function>
		
		<function name="aero/moment/Yaw_damp">
			<description>Yaw moment due to yaw rate</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/bi2vel</property>
				<property>velocities/r-aero-rad_sec</property>
				<value>-0.1</value>
			</product>
		</function>
		
		<function name="aero/moment/Yaw_rudder">
			<description>Yaw moment due to rudder</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/rudder-pos-rad</property>
				<value>0.053</value>
			</product>
		</function>
		
		<function name="aero/moment/Yaw_aileron">
			<description>Adverse yaw</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/roll-pos-rad</property>
				<value>0</value>
			</product>
		</function>
	
	</axis>

</aerodynamics>