Fixed-Wing dynamics documentation

Nomenclature

c - Mean aerodynamic chord
b – Wingspan
S – wing area

u – component of velocity in the X­b axis
v – component of velocity in the y­b axis
W – component of velocity in the z­b axis

Vx - component of velocity in the x­E axis
Vy - component of velocity in the yE axis
Vz - component of velocity in the z­E axis

p - component of angular velocity around the xb axis
q - component of angular velocity around the yb axis
r - component of angular velocity around the zb axis

Ψ - Yaw euler angle
φ - Roll euler angle
θ - Pitch euler angle

δa - Aileron deflection
δe - Elevator deflection
δr - Rudder  deflection

Reference Frames + Assumptions

Right handed reference frames are used for the aircraft simulation. The right hand rule is a useful tool when working with such frames and is shown below:

image-20240130-235046.png
Right hand rule

Earth reference frame:

A North-East-Down inertial reference frame is defined that will be used for expressing position, velocity, acceleration with respect to the ground. This assumes that the earth is flat.

image-20240130-161813.png
https://www.aircraftflightmechanics.com/EoMs/Introduction.html

It is important to consider that in this reference frame, positive z velocity points down which is counterintuitive.

Body-fixed reference frame:

The body reference frame is centred at the center of gravity of the aircraft with the axes defined in the following way:

  • Xb pointing front (aligned with propeller rotation axis for prop planes)

  • Yb perpendicular to Xb direction in line with the plane of the wings

  • Zb pointing down normal to the plane defined by Xb and Yb.

This frame of reference allows intuitive interpretation of forces and moments and is convenient as moments of intertia and COG are easily defined in the body reference frame.

Aerodynamic reference frame (wind reference frame):

Orthogonal axis-system aligned with with the aerodynamic velocity V_a (velocity of plane with respect to undisturbed air). Denoted with a subscript.

Used for defining aerodynamic forces and the angle of attack (α) and sideslip angle (β).

Euler angles:

Euler angles are used to denote the aircraft attitude (orientation) with respect to an inertial reference frame (the relationship between body and earth axes). The following euler angle sequence is used: rotation around z, rotation around y, rotation around x.

This is denoted with the angles Ψ (yaw), θ (pitch), φ (roll)

Control Deflection convention:

The positive control surface deflection directions are defined with a feedback control scheme in mind so that positive control gains can be used. Specifically, the directions are chosen such that deflections produce moments that correct the setpoint error with the same sign. This is more clear with an example:

When the altitude is lower than the setpoint, a negative error is produced which yields a negative elevator deflection after multiplying with the positive controller gains. As such the negative elevator direction should correspond with the pitch up direction.

The positive control deflection directions are shown below:

 

Assumptions

  • Vehicle is a rigid body.

  • Vehicle mass is constant.

  • Earth is flat.

  • Earth is non-rotating.

  • Body-fixed reference frame is chosen such that Ixy and Iyz are zero. ( XbZb-plane mass symmetry_\

  • Effects of rotating masses are neglected.

  • Thrust vector acts on COG and is colinear to Xb.

Inputs and State variables

The simulation takes the following as inputs for every time step:

Variable

Var name

Unit

Range

Variable

Var name

Unit

Range

Aileron deflection angle

da

[rad]

[-da_lim, da_lim]

Elevetor defleciton angle

de

[rad]

[-de_lim,de_lim]

Rudder deflection angle

dr

[rad]

[-dr_lim,dr_lim]

Thrust

thrust

[N]

[0,max_thrust]

The aircraft state is defined by the following variables:

Variable

unit

Description

Variable

unit

Description

position

[m]

Vector of aircraft position with respect to ground reference frame [x,y,z]

vel_ground

[m/s]

Vector of aircraft velocity in ground reference frame [Vx,Vy,Vz]

vel_body

[m/s]

Vector of aircraft velocity in body reference frame [u,v,w]

accel_ground

[m/s^2]

Vector of aircraft acceleration in ground reference frame [ax,ay,az]

accel_body

[m/s^2]

Vector of aircraft acceleration in body reference frame [ax,ay,az]

attitude

[rad]

Aircraft attitude vector [psi (yaw), theta (pitch), phi (roll)]

ang_vel_body

[rad/s]

Angular velocity vector [p , q, r]

ang_accel_body

[rad/s^2]

Angular acceleration vector [dp, dq, dr]

al_be

[rad]

vector of angle of attack and sideslip angle [alpha, beta]

Forces and Moments

In the earth reference frame newton's second law holds such that:

Where V_G is the velocity of the center of gravity of the aircraft. This however does not hold in the body axes as the body reference frame is a moving and rotating reference frame which results in the appearance of inertial forces like the Coriolis force. The above equation thus has to be transformed into the following:

Expressing the left hand side as the sum of the force due to gravity and aerodynamic forces the following equation of motion is obtained:

The equation of motion for rotation is found following a similar conversion from the earth to the body reference frame. The resulting equation is shown below:

Linearization

Model linearization is the process of simplifying the equations of motion using a first order taylor expansion at some trim state. In this simulation, the nonlinearity of the state equations is not an issue as they can be reliably solved using numerical integration. The nonlinearity of the forces, however, poses a significant modelling challenge as “They are not part of the state of the aircraft. Instead they also depend on the state of the aircraft. And they don’t only depend on the current state, but on the entire history of states! (For example, a change in angle of attack could create disturbances at the wing. These disturbances will later result in forces acting on the tail of the aircraft.)” [2]

In practice many of these nonlinear force relationships can be neglected, however, several significant non-linear relations remain. Mathematically this is shown by:

Applying the first order Taylor expansion we get:

The same is done for the moments so that:

In this form, the net forces and moments are described by their components due to the different perturbations in the state which makes them much easier to find. Due to the linearization, however, these equations are only valid for small deviations from the trim state; to accurately simulate the aircraft in the full flight envelope these linearized force and moment values have to be determined at multiple trim conditions (usually at different angles of attack for symmetric derivatives (Cx, Cm, Cm), and at different coefficients of lift for asymmetric derivatives (Cy, Cl, Cm)).

Aerodynamic coefficients and derivatives

Aerodynamic coefficients are dimensionless parameters that relate the aerodynamic forces and moments acting on an aircraft to the dynamic pressure it is experiencing and account for the wing geometry (wing area S, wing span b, mean aerodynamic chord c). They are shown in the table below:

Dimensional parameter

Dimension

Non-dimensional coefficient

Dimensional parameter

Dimension

Non-dimensional coefficient

Force X

[N]

Cx = 1/(1/2 * rho * V^2 * S) * X

Force Y

[N]

Cy = 1/(1/2 * rho * V^2 * S) * Y

Force Z

[N]

Cz = 1/(1/2 * rho * V^2 * S) * Z

Moment L

[Nm]

CL = 1/(1/2 * rho * V^2 * S * b) * L

Moment M

[Nm]

CM = 1/(1/2 * rho * V^2 * S * c) * M

Moment N

[Nm]

CN = 1/(1/2 * rho * V^2 * S * b) * N

These coefficients are very useful in analysing the aerodynamic properties of an aircraft and for making comparisons between different aircraft/configurations.

Aerodynamic derivatives (also called stability derivatives) are values that describe the rate of change of aerodynamic coefficients with respect to changes in aircraft state variables, control inputs, or environmental conditions. They correspond to the dimensional force and moment components due to perturbations that are shown in the linearization section. They are described in the tables below:

Longitudinal Forces

Coefficient

Description

Coefficient

Description

Cx0

X component of the drag and lift force

Cx_alpha

Cx derivative with respect to angle of attack (Usually included in Cd calculation)

Cx_de

Cx derivative with respect to elevator deflection (usually negligible)

Cx_q

Cx derivative with respect to pitch rate (negative, but usually negligible)

Lateral Forces

Coefficient

Description

Coefficient

Description

Cy0

Y component of the drag and lift force

Cy_beta

Cy derivative with respect to sideslip angle (should be negative)

Cy_p

Cy derivative with respect to roll rate (usually negligible)

Cy_r

Cy derivative with respect to yaw rate (usually negligible)

Cy_dr

Cy derivative with respect to rudder deflection (small positive value)

Cy_da

Cy derivative with respect to aileron deflection (usually negligible)

Vertical Forces

Coefficient

Description

Coefficient

Description

Cz0

Z component of the drag and lift force

Cz_alpha

Cz derivative with respect to angle of attack (usually included in CL calculation)

Cz_alphadot

Cz derivative with respect to rate of change of angle of attack (usually negligible)

Cz_q

Cz derivative with respect to pitch rate (should be negative)

Cz_de

Cz derivative with respect to elevator deflection (small negative number)

Roll moment

Coefficient

Description

Coefficient

Description

Cl0

Component of moment about Xb due to aerodynamic moment in Xs

Cl_p

Cl component due to roll rate (should be negative for stability)

Cl_r

Cl component due to yaw rate (small positive or negative number depending on slip vs skid tendency)

Cl_beta

Cl component due to side slip angle (usually small negative number)

Cl_da

Cl component due to aileron deflection (negative number)

Cl_dr

Cl component due to rudder deflection (small positive number)

Pitch moment

Coefficient

Description

Coefficient

Description

Cm0

Component of moment about Xb due to aerodynamic moment in Xs

Cm_alpha

Cm component due to angle of attack (should be negative)

Cm_de

Cm component due to elevator deflection (should be negative)

Cm_q

Cm component due to pitch rate (should be negative for stability)

Cm_alphadot

Cm component due to rate of change of angle of attack (should be negative but hard to find in practice)

Yaw moment

Coefficient

Description

Coefficient

Description

Cn0

N component due to aerodynamic moment in stability frame

Cn_p

Cn component due to roll rate (small positive or negative number)

Cn_r

Cn component due to yaw rate (should be negative for stability)

Cn_beta

Cn component due to sideslip (should be small positive number for stability)

Cn_da

Cn component due to aileron deflection (non-zero if differential ailerons used)

Cn_dr

Cn component due to rudder deflection (Should be negative)

Block diagram implementation

 

References:

[1] https://www.aircraftflightmechanics.com/

[2] https://www.aerostudents.com/courses/flight-dynamics/flightDynamicsFullVersion.pdf

[3]https://agodemar.github.io/FlightMechanics4Pilots/mypages/anatomy-conventional-aircraft/