Why thrust vector control matters
A single-engine launch vehicle climbs through the atmosphere. Its engine gimbals to steer the thrust line relative to the instantaneous centre of mass (CG). A pitch disturbance, aerodynamic moment, actuator delay or CG shift can cause pointing error or unstable oscillation.
This educational model considers planar pitch motion. Positive pitch angle \(\theta\), pitch rate \(\omega\), gimbal angle \(\delta\) and TVC torque share a chosen positive convention. In a real rocket the sign depends on engine location and axis definitions.
Model boundaries: rigid body, one effective engine, no bending/slosh, no full 6-DOF trajectory coupling, no lateral translation. Aerodynamic stability is represented by a linearized pitching moment. The simulation is for conceptual design and validation exercises, not flight qualification.
One problem, eleven investigations
Exact and small-angle gimbal moment
Disturbance-driven pitch drift
Tracking, overshoot and settling
Natural frequency and damping
Angle and slew limits
Bandwidth and phase delay
Restoring versus destabilizing moments
Mass depletion and CG shift
Time-varying command tracking
Sensitivity and Monte Carlo
Timestep and reference solution
Gimbal geometry and pitching moment
For a thrust force \(T\) with perpendicular moment arm \(l\) at zero gimbal, \(M_{TVC}=Tl\sin\delta\). For small \(\delta\) in radians, \(M_{TVC}\approx Tl\delta\). The torque-to-angular-acceleration relationship is \(\dot\omega=M/I_{yy}\).
Open-loop pitch drift
With no feedback, a constant disturbance torque produces increasing pitch rate and quadratic angle drift for constant inertia. Compare the numerical response with the analytical solution.
Closed-loop PD attitude control
The proportional term corrects attitude error, while derivative feedback damps angular velocity. Commanded gimbal is obtained by dividing desired torque by the small-angle control effectiveness \(Tl\).
Controller gains are dimensional; angles are converted to radians internally. A zero-rate reference is assumed here. All inputs below are shared with Parts D–K.
Settling time means entering and remaining inside ±0.2° of the commanded pitch for the remainder of the run; otherwise it is reported as not reached.
Gain tuning: frequency, damping and stability
Neglecting aerodynamic moments and actuator dynamics, the linearized closed-loop equation is \(I\ddot e+K_d\dot e+K_pe=0\), for constant reference. Its natural frequency and damping ratio are:
Gimbal saturation and slew-rate limiting
A commanded torque may exceed the engine gimbal authority. In addition, the actuator cannot rotate instantaneously. Compare ideal actuation against the limited actuator with exactly the same gains.
The ideal case has unlimited gimbal and zero actuator lag. The constrained case respects both angle and rate limits.
Actuator lag and sample/hold delay
Real gimbals have finite bandwidth. A first-order actuator is modeled as \(\tau_a\dot\delta=\delta_{target}-\delta\), with additional rate limiting. Compare multiple lag constants.
Aerodynamic restoring and destabilizing moments
Linearize the aerodynamic pitch moment near a chosen flight condition as \(M_a=K_a\theta-C_a\omega\). In this sign convention, positive \(K_a\) is destabilizing; negative \(K_a\) is restoring. In a more detailed model, these coefficients depend on dynamic pressure, Mach number, aerodynamic derivatives and the CG–centre-of-pressure relationship.
This experiment holds aerodynamic coefficients constant; it does not simulate a full changing dynamic-pressure ascent.
Propellant depletion, inertia and CG movement
As propellant burns, pitch inertia and the engine-to-CG lever arm may change. Use illustrative linear profiles and compare against a constant-geometry vehicle. The profiles are pedagogical assumptions, not a structural mass-property model.
Pitch-command program tracking
Rather than stabilizing a fixed pitch, command a smooth transition between two pitch attitudes. A cubic smoothstep avoids instantaneous command jumps; feedforward desired rate can be included in the derivative term.
This is an attitude-reference program only, not a coupled gravity-turn trajectory or guidance optimizer.
Sensitivity and Monte Carlo disturbance study
Explore robustness to inertia, thrust, lever arm and disturbance uncertainty. A reproducible seeded pseudo-random sequence generates the same cases on repeated runs.
Uniform bounded perturbations are used, not Gaussian 1σ uncertainties. This is a sensitivity demonstration rather than a probabilistic flight reliability estimate.
Numerical convergence and independent checks
Repeat the same physical case with progressively smaller RK4 integration timesteps. Compare the final pitch against a fine-step reference. The actuator controller is modeled continuously in this exercise; discrete flight-computer sampling is not included.
| Step [s] | Final pitch [deg] | Difference from fine reference [deg] |
|---|
Python and MATLAB reference implementations
These minimal independent reference examples reproduce the simplified constant-inertia, linearized PD pitch dynamics. They intentionally omit actuator lag and aerodynamic terms, which must be added for full comparison with the webpage's nonlinear model.
import numpy as np
from scipy.integrate import solve_ivp
import matplotlib.pyplot as plt
I, T, l = 80000., 1e6, 4.
Kp, Kd = 160000., 160000.
limit = np.deg2rad(6)
def rhs(t, y):
theta, omega = y
desired_torque = -Kp*theta-Kd*omega
delta = np.clip(desired_torque/(T*l), -limit, limit)
return [omega, T*l*np.sin(delta)/I]
t = np.linspace(0,18,1801)
sol = solve_ivp(rhs,(0,18),[np.deg2rad(5),0],t_eval=t,rtol=1e-9,atol=1e-11)
plt.plot(sol.t,np.rad2deg(sol.y[0]))
plt.xlabel('Time [s]');plt.ylabel('Pitch [deg]');plt.grid();plt.show()I=80000; T=1e6; l=4; Kp=160000; Kd=160000;
lim=deg2rad(6);
f=@(t,y) [y(2); T*l*sin(max(-lim,min(lim,(-Kp*y(1)-Kd*y(2))/(T*l))))/I];
opts=odeset('RelTol',1e-9,'AbsTol',1e-11);
[t,y]=ode45(f,[0 18],[deg2rad(5);0],opts);
plot(t,rad2deg(y(:,1)),'LineWidth',1.8);grid on;
xlabel('Time [s]');ylabel('Pitch [deg]');
title('Pitch response with gimbal saturation');What a launch-vehicle GNC engineer should conclude
Thrust and lever arm determine how much pitching moment a gimbal can deliver.
Controller gains must be assessed together with inertia, aerodynamic derivatives, actuator bandwidth and limits.
Rigid-body pitch control is only the beginning; bending, slosh, sensor noise, guidance and six-degree-of-freedom coupling matter in actual launch vehicles.