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: e = CubeSatEnvironment % data structure e = CubeSatEnvironment( x, t, d ) -------------------------------------------------------------------------- ------ Inputs ------ x (14,1) [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 ECI position (km) .v ECI velocity (km/s) .q ECI to body quaternion .mu Gravitational constant (km3/s2) .planetRadius Radius of the planet (km) .vRel Velocity relative to the atmosphere (km/s) .rho Atmospheric density (kg/m3) .radiation Planetary radiation W/m2 .albedo Planet bond albedo fraction .uSun Sun unit vector (ECI) .rSun Sun distance (km) .solarFlux Solar flux at position (W/m2) .nEcl Eclipse fraction (source intensity, 0-1) .bField Magnetic field (T) -------------------------------------------------------------------------- See also SunV1, Eclipse, AtmDens2, AtmJ70, BDipole --------------------------------------------------------------------------
AeroUtils: AtmosphericCalculations/AtmDens2 AeroUtils: AtmosphericCalculations/AtmJ70 AeroUtils: Coord/ECIToEF Common: Time/JD2T CubeSat: Utilities/CubeSatAttitude Math: Linear/Mag Math: Linear/Skew SC: Environs/BDipole SC: Ephem/Eclipse SC: Ephem/SunV1
Back to the CubeSat Module page