CubeSatDisturbanceAnalysis:

Path: CubeSat/AttitudeControl

% CubeSat disturbance analysis from batch data using RHSCubeSat. 

 Compute the drag, magnetic, gravity gradient, and optical disturbances. The
 environment is computed using AtmJ70, BDipole, and SunV1. AtmDens2
 can be used instead by supplying an empty matrix for d.atm.

 The built-in demo computes the disturbances on a 3U satellite for one day.
 The center of mass is assumed to be offset from the geometric center of the
 spacecraft by a few cm. Note the growth in momentum. the gravity gradient
 torque is zero in the demo because the attitude entered is perfect LVLH and
 the inertia is symmetric.
------------------------------------------------------------------------
   Form:
   [t, fECI, h, hECI] = CubeSatDisturbanceAnalysis( d, q, r, v, jD )
   CubeSatDisturbanceAnalysis  % demo
------------------------------------------------------------------------

   ------
   Inputs
   ------
   d        (.)      Data structure from RHSCubeSat
   q       (4,:)     Quaternion, ECI to body
   r       (3,:)     Position vector
   v       (3,:)     Velocity vector
   jD      (1,:)     Julian dates

   -------
   Outputs
   -------
   tT      (3,:)   Torque in body (Nms)
   fECI    (3,:)   Force in ECI (N)
   h       (3,:)   Body momentum (Nms)
   hECI    (3,:)   ECI momentum (Nms)
   torque   (.)    Torque structure
                     .total   (3,:)  Torque in body frame
                     .aero    (3,:)  Aerodynamic torque
                     .mag     (3,:)  Magnetic torque
                     .optical (3,:)  Optical torque
                     .gg      (3,:)  Gravity gradient torque
   force    (.)    Force structure
                    .total   (3,:)  Force in ECI frame
                    .aero    (3,:)  Aerodynamic force
                    .optical (3,:)  Optical force

------------------------------------------------------------------------
   See also CubeSatAero, CubeSatRadiationPressure, GravityGradientFromR,
   RHSCubeSat
------------------------------------------------------------------------

Children:

AC: ACData/ACTConstants
ACPro: Help/HelpSystem
AerospaceUtils: AtmosphericCalculations/AtmDens2
AerospaceUtils: AtmosphericCalculations/AtmJ70
AerospaceUtils: AtmosphericCalculations/BaromExp
AerospaceUtils: AtmosphericCalculations/DiffusionExp
AerospaceUtils: CAD/GenericProperties
AerospaceUtils: Coord/ECIToEF
AerospaceUtils: Coord/QIToBDot
AerospaceUtils: Coord/QLVLH
Common: CommonData/Constants
Common: CommonData/Sosumi
Common: CommonData/SwooshWatermark
Common: CommonData/xSplashSmall
Common: ComponentModels/Box
Common: Control/C2DZOH
Common: Database/Constant
Common: FileUtils/FindDirectory
Common: GUIs/Figui
Common: GUIs/MessageQueue
Common: General/CellToMat
Common: General/CloseFigure
Common: General/DeBlankLT
Common: General/DeleteCell
Common: General/FSWClock
Common: General/ListCases
Common: General/MatToCell
Common: General/Watermark
Common: Graphics/AddFillToPlots
Common: Graphics/AxesCart
Common: Graphics/DrawVertices
Common: Graphics/NPlot
Common: Graphics/NewFig
Common: Graphics/Plot2D
Common: Graphics/Plot3D
Common: Graphics/PltStyle
Common: Graphics/SortFigs
Common: Graphics/TimeLabl
Common: Graphics/TitleS
Common: Graphics/XLabelS
Common: Graphics/YLabelS
Common: Graphics/ZLabelS
Common: MassProperties/AddMass
Common: MassProperties/IC623X3
Common: MassProperties/Inertias
Common: Quaternion/AU2Q
Common: Quaternion/Mat2Q
Common: Quaternion/QForm
Common: Quaternion/QMult
Common: Quaternion/QTForm
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
CubeSat: Power/SolarCellPower
CubeSat: Simulation/CubeSatAero
CubeSat: Simulation/CubeSatEnvironment
CubeSat: Simulation/CubeSatRadiationPressure
CubeSat: Simulation/RHSCubeSat
CubeSat: Utilities/CubeSatAttitude
CubeSat: Utilities/CubeSatFaces
CubeSat: Utilities/CubeSatModel
CubeSat: Visualization/DrawCubeSat
Math: Linear/Cross
Math: Linear/Dot
Math: Linear/DupVect
Math: Linear/Mag
Math: Linear/Skew
Math: Linear/SkewSq
Math: Linear/SkewSymm
Math: Linear/Unit
Math: MathUtils/R2P5
Math: Trigonometry/ACosD
Math: Trigonometry/CosD
Math: Trigonometry/SinD
SC: BasicOrbit/E2M
SC: BasicOrbit/Nu2E
SC: BasicOrbit/Nu2M
SC: BasicOrbit/Period
SC: BasicOrbit/RV2El
SC: BasicOrbit/RVFromKepler
SC: Disturbances/GravityGradientFromR
SC: Disturbances/OpticalSurfaceProperties
SC: Disturbances/SolarF
SC: Environs/BDipole
SC: Environs/SolarFluxPrediction
SC: Ephem/EarthRte
SC: Ephem/Eclipse
SC: Ephem/MSidDay
SC: Ephem/SunV1
SC: SCData/sCTConstants
SC: SCMat/EarthMR
SC: SCMat/SolarFluxPredictions
SC: Visualization/PlotPlanet

Back to the CubeSat Module page