TSTOSizing:

--------------------------------------------------------------------------
   Size a horizontal launch/horizontal landing two stage to orbit vehicle.
   The mission is:

   Stage 0 (Stages 1 and 2 combined)
   ---------------------------------
   Takeoff roll
   Liftoff
   Constant angle climb
   Separation

   Stage 1
   -------
   Turn to landing
   Descent
   Landing

   Stage 2
   -------
   Insertion into transfer orbit
   Insertion into circular orbit
   Reentry interface burn
   Gliding reentry
   Landing

   The separation height an Mach number are inputs. This fixes the upper
   stage mass.

   The filename should be entered without at suffix. The outputs will be
   f_table.txt
   f_param.txt

   f_table.txt has the mass and velocity table

   Since version 1.0
--------------------------------------------------------------------------
   Form:
   d = TSTOSizing( d, p, f, tol )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   d               (1,1) Data structure of vehicle parameters
   p               (1,1) Data structure of orbit
                         .rAT (1,1) Apogee of target orbit
                         .mu  (1,1) Gravitational parameter
                         .rEI (1,1) Radius of entry interface
                         .c1  (1,1) LTVCON parameter
                         .c2  (1,1) LTVCON parameter
                         .hS  (1,1) Separation altitude
                         .MS  (1,1) Separation Mach number
                         .MR  (1,1) Mach number to switch to ramjet
   f               (1,:) Filename for saving latex output
   tol             (1,1) Tolerance on mass

   -------
   Outputs
   -------
   d               (1,1) Data structure ef vehicle parameters
                         .stage0 Data structure of stage 0 parameters
                                 .events {:} Events
                                 .param (1,1) Parameter data structure
                         .stage1 Data structure of stage 1 parameters
                                 .events {:} Events
                                 .param (1,1) Parameter data structure
                         .stage2 Data structure of stage 1 parameters
                                 .events {:} Events
                                 .param (1,1) Parameter data structure

--------------------------------------------------------------------------

Children:

ACPro: ACPerformance/Takeoff
Common: Atmosphere/StdAtm
Math: Linear/Mag
Orbit: OrbitManeuver/DVReentry
Orbit: OrbitMechanics/OrbitInsertion
Propulsion: Chemical/RocketH2O2
SC: BasicOrbit/VOrbit