FOrbitMultiSpacecraft:

Path: CubeSat/Simulation

% Multispacecraft orbit model designed to work with ode113.
 You can include aerodynamic, radiation pressure and thrust models. Sun,
 earth, and moon perturbations are computed if the planet (Earth or
 Moon) is given. Uses SunV1 and MoonV1 for ephemeris. 
--------------------------------------------------------------------------
   Form:
      d = FOrbitMultiSpacecraft             % data structure
   xDot = FOrbitMultiSpacecraft( t, x, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   t                Time
   x       (7*n,1)  The state vector [r1;v1;m1;r2;v2;m2;...]
   d       (:)      Data structure array
                    .jD0                       (1,1)   Julian date at start

                    This is only needed for planetary disturbances
                    and if a gravity model is entered:

                    .planet                   (1,:)   Planet name, 'earth', 'moon'

                    These are optional:

                    .thrusterModel            (1,:)   Thrust function handle
                    .thrusterData             (.)     Thrust data structure
                    .opticalModel             (1,:)   Optical function handle
                    .aeroModel                (1,:)   Aero function handle
                    .surfData                 (.)     Surface data structure
                    .gravityModel             (.)     Gravity model structure;
                                                        default is point-mass.
                    The following are only needed if you want J70, otherwise
                    AtmDens2 will be used.

                    .atm.aP                   (1,1)   Geomagnetic index 6.7 hours before the computation
                    .atm.f                    (1,1)   Daily 10.7 cm solar flux (e-22 watts/m^2/cycle/sec)
                    .atm.fHat                 (1,1)   81-day mean of f (e-22 watts/m^2/cycle/sec)
                    .atm.fHat400              (1,1)   fHat 400 days before computation date

   -------
   Outputs
   -------
   xDot    (7*n,1)  The state vector derivative [v1;r1Dot;m1Dot...]

--------------------------------------------------------------------------
   See also CubeSatEnvironment, ECIToPlanet, AGravityC, FOrbCart,
   PlanetaryAccelerations CubeSatRadiationPressure, CubeSatAero,
   CubeSatPropulsion
--------------------------------------------------------------------------

Children:

AC: ACData/ACTConstants
AerospaceUtils: AtmosphericCalculations/AtmDens2
AerospaceUtils: AtmosphericCalculations/AtmJ70
AerospaceUtils: AtmosphericCalculations/BaromExp
AerospaceUtils: AtmosphericCalculations/DiffusionExp
AerospaceUtils: Coord/QLVLH
CubeSat: Utilities/CubeSatAttitude
Orbit: GravityModels/LoadGEM
Orbit: GravityModels/NormalizationMatrix
Orbit: OrbitMechanics/AGravityC
Orbit: OrbitMechanics/APlanet
SC: BasicOrbit/FOrbCart
SC: Ephem/ECIToPlanet
SC: Ephem/EOfE
SC: Ephem/EarthNut
SC: Ephem/EarthPre
SC: Ephem/EarthRot
SC: Ephem/Eclipse
SC: Ephem/GMSTime
SC: Ephem/MSidDay
SC: Ephem/MoonRot
SC: Ephem/MoonV1
SC: Ephem/Moons
SC: Ephem/NutDelta
SC: Ephem/ObOfE
SC: Ephem/SunV1
SC: Ephem/TruEarth
SC: SCData/sCTConstants
SC: SCMat/GEMT1
Common: CommonData/Constants
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: Database/Constant
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/DeleteCell
Common: General/DispWithTitle
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/Mesh2
Common: Graphics/NPlot
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/PltStyle
Common: Graphics/TitleS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/Mat2Q
Common: Quaternion/QMult
Common: Quaternion/QZero
Common: Time/DTAToDTS
Common: Time/DTSToDTA
Common: Time/Date2DN
Common: Time/Date2JD
Common: Time/JD2000
Common: Time/JD2DN
Common: Time/JD2Date
Common: Time/JD2T
Common: Time/JDToMidnight
Common: Time/T2JD
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Factorl
Math: Linear/Mag
Math: Linear/Skew
Math: Linear/Unit
Math: MathUtils/R2P5
Math: Trigonometry/ACosD
Math: Trigonometry/CosD
Math: Trigonometry/SinD

Back to the CubeSat Module page