RocketDrag:
--------------------------------------------------------------------------
Compute the drag on a rocket using a plate model or Jones/Sears/Haack.
Uses a scale height atmosphere for the Earth above 80 km, otherwise
StdAtm for the Earth or exponential atmosphere (AtmDens1) for other
planets. If only r and v magnitudes are input, the drag magnitude is
returned.
The standard atmosphere data is stored in a persistent variable.
Since version 2015.1
--------------------------------------------------------------------------
------
Inputs
------
r (3,:) Position (km)
v (3,:) Velocity (km/s)
d (.) Data structure
.cDA (1,:) Coefficient times area for plate model
.drag (.) Data for LiftAndDragJonesSearsHaack
.planet (:) For planets other than Earth
j (1,1) Stage index, if needed
-------
Outputs
-------
drag (3,:) Drag force (kN)
rho (1,:) Atmospheric density (kg/m3)
--------------------------------------------------------------------------
See also AtmDens1, AtmDens2, StdAtm, LiftAndDragJonesSearsHaack
--------------------------------------------------------------------------
Children:
ACPro: ACProAerodynamics/LiftAndDragJonesSearsHaack
AeroUtils: AtmosphericCalculations/AtmDens1
AeroUtils: AtmosphericCalculations/AtmDens2
Common: Atmosphere/StdAtm
Math: Linear/Mag