<?xml version="1.0"?>
<!-- 	Flight Reports
		i)	We Fly: Diamond DA62			https://www.flyingmag.com/we-fly-diamond-da62/
		ii)	Ultimate Piston Twin: Diamond DA62	https://www.planeandpilotmag.com/article/diamond-da62/#.XmzzbXWYWMw
		iii)	Pilot Report: Diamond DA62		https://generalaviationnews.com/2016/11/13/pilot-report-diamond-da62/
		iv)	AOPA Live: We Fly the Diamond DA62	https://www.youtube.com/watch?v=RiLSy6LGi3I
		-->
<aerodynamics>
	
	<axis name="LIFT">
		
		<function name="aero/force/Lift_propwash">
			<description>Delta lift due to propeller induced velocity</description>
			<product>
				<property>systems/propulsion/thrust-coefficient</property>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<table>
					<independentVar lookup="row">aero/alpha-rad</independentVar>
					<independentVar lookup="column">fcs/flap-pos-deg</independentVar>
					<tableData>
						0.0     60.0
						-0.66  0.000   0.000
						0.00  0.041   0.109
						0.06  0.201   0.535
						0.12  0.000   0.000
					</tableData>
				</table>
			</product>
		</function>
		
		<!-- Lift above 0.85 and below -0.85 is generalised -->
		<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  0.0000
						-1.22 -0.5932
						-1.05 -0.7992
						-0.88 -0.9228
						-0.62 -0.4998
						-0.08 -1.2495
						0.00  0.3204
						0.06  1.5699
						0.60  0.8202
						0.88  1.0772
						1.05  0.9328
						1.22  0.6924
						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.3736 </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.7226 </value>
			</product>
		</function>
		
		<function name="aero/force/Lift_elevator">
			<description>Lift due to Elevator Deflection</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>fcs/elevator-pos-norm</property>
				<value> 0.4564 </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-deg</independentVar>
					<tableData>
						0.0	0.0
						20.0	0.2
						42.0	0.51
					</tableData>
				</table>
			</product>
		</function>
		
		
	</axis>
	
	<axis name="DRAG">
		
		<!-- CD0 is based on fuselage, wing, horizontal- en vertical tail -->
		<!-- Antennas, struts and wires are not taken into account        -->
		<!-- CD for gear (fixed and retractable) is defined below         -->
		<function name="aero/force/Drag_minimum">
			<description>Minimum drag</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<value> 0.0245 </value>
				<property>/min-factor</property>
			</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.4093
						-0.06    0.0199
						0.00    0.0000
						0.06    0.0199
						1.57    1.4093
					</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.0249 </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.0000
						0.72    0.0000
						1.10    0.0230
						1.80    0.0150
					</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.2300
						-0.26    0.0500
						0.00    0.0000
						0.26    0.0500
						1.57    1.2300
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/force/Drag_elevator">
			<description>Drag due to Elevator Deflection</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<abs><property>fcs/elevator-pos-norm</property></abs>
				<value> 0.0020 </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.0300 </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>
				<table>
					<independentVar lookup="row">fcs/flap-pos-deg</independentVar>
					<tableData>
						0.0	0.0
						20.0	0.005
						42.0	0.04
					</tableData>
				</table>
			</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.6288 </value>
			</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.4316 </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-norm</property>
				<value> 0.1900 </value>
			</product>
		</function>
		
	</axis>
	
	<axis name="PITCH">
		
		<function name="aero/moment/Pitch_propwash">
			<description>Pitch moment due to propeller induced velocity</description>
			<product>
				<property>systems/propulsion/thrust-coefficient</property>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<table>
					<independentVar lookup="row">aero/alpha-rad</independentVar>
					<independentVar lookup="column">fcs/flap-pos-deg</independentVar>
					<tableData>
						0.0     60.0
						-0.01  0.000   0.000
						0.00 -0.032  -0.085
						0.06 -0.157  -0.418
						0.08  0.000   0.000
					</tableData>
				</table>
			</product>
		</function>
		
		<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> -2.4382 </value>
			</product>
		</function>
		
		<function name="aero/moment/Pitch_elevator">
			<description>Pitch moment due to elevator</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/cbarw-ft</property>
				<property>fcs/elevator-pos-norm</property>
				<table>
					<independentVar lookup="row">velocities/mach</independentVar>
					<tableData>
						0.0    -1.4
						2.0    -0.5162
					</tableData>
				</table>
			</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> -30 </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> -7.9098 </value>
			</product>
		</function>
		
	</axis>
	
	<axis name="ROLL">
		
		<function name="aero/moment/Roll_differential_propwash">
			<description>Roll moment due to differential propwash</description>
			<product>
				<property>systems/propulsion/thrust-coefficient-left-right</property>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>aero/alpha-rad</property>
				<value> -6.8890 </value>
			</product>
		</function>
		
		<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>
				<property>fcs/gear-no-wow</property>
				<table>
					<independentVar lookup="row">aero/alpha-rad</independentVar>
					<tableData>
						-0.0349 -0.4244
						0.3491  -0.4599
					</tableData>
				</table>
			</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> -2.6199 </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>
				<table>
					<independentVar lookup="row">aero/alpha-rad</independentVar>
					<tableData>
						-0.0349  -0.1090
						0.3491   1.8718
					</tableData>
				</table>
			</product>
		</function>
		
		<function name="aero/moment/Roll_aileron">
			<description>Roll moment due to aileron</description>
			<product>
				<property>aero/qbar-psf</property>
				<property>metrics/Sw-sqft</property>
				<property>metrics/bw-ft</property>
				<property>fcs/left-aileron-pos-norm</property>
				<table>
					<independentVar lookup="row">velocities/mach</independentVar>
					<tableData>
						0.0    0.1900
						2.0    0.0425
					</tableData>
				</table>
			</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-norm</property>
				<value> 0.0100 </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.1037 </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/p-rad_sec</property>
				<value>-0.0020</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.0821 </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-norm</property>
				<value> -0.03 </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/left-aileron-pos-norm</property>
				<value> -0.0080 </value>
			</product>
		</function>
		
	</axis>
	
</aerodynamics>
