Path: LunarMissions/Reentry
% Right hand side for the reentry model.
Has 3 dimensional position and velocity but only pitch attitude. The
vehicle has two flaps and two thrusters.
--------------------------------------------------------------------------
Forms:
[xDot,drag,lift,tDist] = RHSReentryWithAttitude(x,~,d)
--------------------------------------------------------------------------
------
Inputs
------
x (6,1) [x;v;theta;omega]
t (1,1) Time (unused)
d (.) Data structure
.s (1,1) Aerodynamic surface area (m^2)
.mass (1,1) Mass (kg)
.mu (1,1) Gravitational constant (km^3/s^2)
.rE (1,1) Radius of the Earth (km)
.inr (1,1) Inertia around pitch axis (kg-m^2)
.cM (3,1) Center of mass (m)
.cP (3,1) Center of pressure (m)
.thrust (2,1) Control thrust (N)
.flapAngle (2,1) Flap angle (rad)
.flapArea (2,1) Flap area (m^2)
.flapR (3,2) Flap vectors (m)
.uThruster (3,2) Thruster unit vectors
.rThruster (3,2) Thruster vectors (m)
.torque (1,1) Torque (Nm)
.direct (1) Flag
-------
Outputs
-------
xDot (6,1) d[x;v;theta;omega]/dt
drag (1,1) Drag (N)
flap (1,1) Flap force (N)
lift (1,1) Lift (N)
tDist (3,1) Disturbance torque, cP/cM offset
--------------------------------------------------------------------------
See also: AtmDens2, AtmTemp, SpeedSnd, AbsoluteViscosity
--------------------------------------------------------------------------
AerospaceUtils: AtmosphericCalculations/AtmDens2 AerospaceUtils: AtmosphericCalculations/AtmTemp AerospaceUtils: AtmosphericCalculations/ReynoldsNumber Propulsion: Gas/SpeedSnd Thermal: HeatExchanger/AbsoluteViscosity Math: Linear/Cross Math: Linear/Mag Math: Linear/Unit
Back to the LunarMissions Module page