CubeSatEnvironment:

Path: CubeSat/Simulation

% Environment calculations for the CubeSat dynamical model.
 Uses the J70 atmosphere model or AtmDens2 if the data required by J70 is
 absent. Computes sun location with SunV1 and accounts for eclipses from the
 Earth via Eclipse. All environment constants including gravity are defined
 here.
--------------------------------------------------------------------------
   Form:
   env = CubeSatEnvironment             % data structure
   env = CubeSatEnvironment( x, t, d )
--------------------------------------------------------------------------

   ------
   Inputs
   ------
   x        (14,1)  State, [r;v;q;w;b]
   t         (1,1)  Time, sec
   d          (.)   Data structure
                     .jD0          Julian date of epoch
                     .att      (.) Attitude
                     .atm      (.) optional; empty to skip J70 and use AtmDens2
                     .surfData (.) optional; empty to skip drag/optical calcs

   -------
   Outputs
   -------
   env        (.)   Environmental data
                    .r            (3,1) ECI position (km)
                    .v            (3,1) ECI velocity (km/s)
                    .q            (4,1) ECI to body quaternion
                    .mu           (1)   Gravitational constant (km3/s2)
                    .radiusPlanet (1)   Radius of the planet (km)
                    .vRel         (3,1) Velocity relative to the atmosphere (km/s)
                    .rho          (1)   Atmospheric density (kg/m3)
                    .radiation    (1)   Planetary radiation (W/m2)
                    .albedo       (1)   Planet bond albedo fraction
                    .uSun         (3,1) Sun unit vector (ECI)
                    .rSun         (1)   Sun distance (km)
                    .solarFlux    (1)   Solar flux at position (W/m2)
                    .nEcl         (1)   Eclipse fraction (source intensity, 0-1)
                    .bField       (3,1) Magnetic field, ECI frame (T)
 
--------------------------------------------------------------------------
   See also SunV1, Eclipse, AtmDens2, AtmJ70, BDipole
--------------------------------------------------------------------------

Children:

AerospaceUtils: AtmosphericCalculations/AtmDens2
AerospaceUtils: AtmosphericCalculations/AtmJ70
AerospaceUtils: AtmosphericCalculations/BaromExp
AerospaceUtils: AtmosphericCalculations/DiffusionExp
AerospaceUtils: Coord/ECIToEF
AerospaceUtils: Coord/QLVLH
CubeSat: Utilities/CubeSatAttitude
SC: BasicOrbit/Period
SC: BasicOrbit/RVFromKepler
SC: Environs/BDipole
SC: Ephem/EarthRte
SC: Ephem/Eclipse
SC: Ephem/MSidDay
SC: Ephem/SunV1
Common: CommonData/SwooshWatermark
Common: General/CellToMat
Common: General/DeBlankLT
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/NPlot
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/Plot3D
Common: Graphics/PltStyle
Common: Graphics/TimeLabl
Common: Graphics/TitleS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: Quaternion/Mat2Q
Common: Quaternion/QMult
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/T2JD
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
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