a simulation of this aircraft in the longitudinal plane will be presented in this section. By constraining to longitudinal motion only, the solution of the nonlinear equations is heavily simplified, but the analysis can be expanded for the unconstrained case and if we assume the thrust inclination is zero. The simplifying assumption is:
V=P=R=Φ=Ψ=Θ0=0
and the equations describing longitudinal flight may now be we written:
The knowns in the above are flightspeed, Vf, density (from altitude), ρ, and climb angle/flight path angle γ (setting UE and WE). These may be solved via any means you like to get the reference trim state. An example of a Newton-Raphson solver1 is included below as TrimState which finds trim using TotalForces:
For a trim input of sea-level and 120kn, the trim is found to be - T=13.84kN, δe=−0.98∘, Θ=0.84∘. A quick sense check shows that the aircraft is slightly nose up (less than a degree) so the aerodynamic pitching moment from the wing/fuselage will be nose-up, and the elevator is deflected trailing edge up to balance the pitching moment.
Transient Simulation
For level flight (trim), the initial conditions are given from from the previous step - if the aircraft remains undisturbed, then there will be no variation in any of the parameters. The nonlinear equations cannot be solved analytically, so if the aircraft response to control inputs is desired, then a numerical scheme must be used.
The case of a positive elevator deflection corresponding to a stick-forward displacement will be explored. First, the response to a δe′=1∘ will be explored - this is equivalent to the pilot pushing the stick forward and holding it, keeping other controls constant.
The equations are solved numerically using scipy’s odeint (which is very similar to ODE45 in MATLAB)
Interactive demo
It should be noted that the values above are total values and NOT perturbational values. We can compare a linear model of the HS125 with the reduced nonlinear model, above - but rather than sourcing HS 125 data of unknown legacy, it makes more sense (but more work) to use the HS125 model to produce numerical derivatives based upon small perturbation theory using the model itself.
Numerical Linearisation of the Equations of Motion
This section shall stick with the HS 125 business jet. For the longitudinal equations of motion:
For each of the derivatives contained above, a central-difference approach may be utilised. That is, if the longitudinal force is a function of the aircraft states:
X=f(U,W,Q,Θ0,δe0)
then each of the stability derivatives may be expressed as a numerical partial derivative. For example
Note that the variable that the derivative is with respect to is altered, and the others are held constant - this is a partial derivative. This can be repeated for the remaining derivatives. This procedure has been used below to create stability derivatives.
ForcesandMoments gives values of the X, Z, and M force and moments, and then NumerialDerivatives uses a central difference approach withForcesandMoments to create the s
Footnotes
You will not be tested on things like this in an examination in this course, but it’s really in your interest to ensure that you can a) understand how this solver works and b) be confident you could write something that does the same job yourself. ↩