LSQLaunchSim:
--------------------------------------------------------------------------
Simulate launch trajectory given initial parameters, return final states.
Since version 1.0
--------------------------------------------------------------------------
Form:
[z,xS,time] = LSQLaunchSim( p0, d )
--------------------------------------------------------------------------
------
Inputs
------
p0 (2,1) Initial parameters. [gamma; scale], where:
gamma: Initial flight path angle
scale: Scale of 3rd stage
d (.) Data structure for launch problem. Fields:
.rocket (.) Launch vehicle data structure (see RocketDatabase)
.direct (1) Flag. Direct (1) or indirect (0) launch
.h0 (1) Launch altitude
.v0 (2) Launch velocity
.Rp (1) Planet radius (km)
.mu (1) Gravitational constant (km^3/s/s)
-------
Outputs
-------
z (2,1) Final states. [vRatio; gamma], where:
vRatio: Ratio of final velocity to orbital velocity
gamma: Final flight path angle
xS (4+n,:) Time history of states for launch simulation
[range;alt;vel;gamma;mass]
time (1,:) Time vector for launch simulation
--------------------------------------------------------------------------
See also GuidedLaunch2DRHS, LSQLaunch
--------------------------------------------------------------------------
Children:
LaunchVehicle: LaunchSim/GuidedLaunch2DRHS
LaunchVehicle: MultiStage/MSThrustModel
Propulsion: MultiStage/MS2M
SC: BasicOrbit/VOrbit