Path: CubeSat/Simulation
% Demonstrate a TubeSat attitude and power system dynamics. This multi-day simulation includes drag and radiation pressure. The only actuator available for attitude is magnetic torquers, which is modeled as a dipole. Compare the resulting gravity gradient torques to those produced by the constant magnetic dipole. Try it: try zero magnetic dipole, and larger or smaller values. Hint: with a strong enough magnetic dipole the satellite will align itself to the Earth's magnetic field. Also note the drag force and change in orbital altitude over the simulation. To perform an attitude animation via AnimQ at the end uncomment the last line; it takes a few minutes to run. ---------------------------------------------------------------------- See also AnimQ, QForm, Plot2D, TimeLabl, RK4, Skew, Date2JD, InertiaCubeSat, CubeSatAero, RHSCubeSat, TubeSatFaces, BDipole, SolarFluxPrediction, TubeSatDefaultDataStructure, DrawCubeSatSolarAreas ---------------------------------------------------------------------- % ------------------------------------------------------------------------ Copyright (c) 2009, 2013, 2016 Princeton Satellite Systems, Inc. All rights reserved. ------------------------------------------------------------------------ Since version 8. 2016.1 - Update to use TubeSatDefaultDataStructure and DrawCubeSatSolarAreas. Change initial attitude to be gravity gradient stable. ------------------------------------------------------------------------
AC: ACData/ACTConstants AerospaceUtils: AtmosphericCalculations/AtmDens2 AerospaceUtils: AtmosphericCalculations/AtmJ70 AerospaceUtils: AtmosphericCalculations/BaromExp AerospaceUtils: AtmosphericCalculations/DiffusionExp AerospaceUtils: CAD/GenericProperties AerospaceUtils: Coord/ECIToEF AerospaceUtils: Coord/QIToBDot AerospaceUtils: Coord/QLVLH AerospaceUtils: Coord/R2LatLon CubeSat: AttitudeControl/InertiaTubeSat CubeSat: Power/SolarCellPower CubeSat: Simulation/CubeSatAero CubeSat: Simulation/CubeSatEnvironment CubeSat: Simulation/CubeSatRadiationPressure CubeSat: Simulation/RHSCubeSat CubeSat: Simulation/TubeSatDefaultDataStructure CubeSat: Utilities/CubeSatAttitude CubeSat: Utilities/CubeSatFaces CubeSat: Utilities/CubeSatModel CubeSat: Utilities/TubeSatFaces CubeSat: Utilities/TubeSatModel CubeSat: Visualization/DrawCubeSat CubeSat: Visualization/DrawCubeSatSolarAreas CubeSat: Visualization/GroundTrack CubeSat: Visualization/PlotOrbit Orbit: OrbitCoord/ConvertNORAD Orbit: OrbitCoord/SLR Orbit: OrbitMechanics/NORAD Orbit: OrbitMechanics/NORADToEl Orbit: OrbitMechanics/PropagateTLE Orbit: OrbitMechanics/RVOrbGen Orbit: Visualization/OrbTrack Plotting: Help/HelpSystem SC: BasicOrbit/CP2I SC: BasicOrbit/E2M SC: BasicOrbit/E2Nu SC: BasicOrbit/El2RV SC: BasicOrbit/M2E SC: BasicOrbit/M2EApp SC: BasicOrbit/M2EEl SC: BasicOrbit/M2EHy SC: BasicOrbit/M2Nu SC: BasicOrbit/M2NuPb SC: BasicOrbit/Nu2E SC: BasicOrbit/Nu2M SC: BasicOrbit/OrbRate SC: BasicOrbit/Period SC: BasicOrbit/RV2El SC: BasicOrbit/RVFromKepler SC: BasicOrbit/VOrbit SC: Disturbances/GravityGradientFromR SC: Disturbances/OpticalSurfaceProperties SC: Disturbances/SolarF SC: Environs/BDipole SC: Environs/SolarFluxPrediction SC: Ephem/ECIToPlanet SC: Ephem/EOfE SC: Ephem/EarthNut SC: Ephem/EarthPre SC: Ephem/EarthRot SC: Ephem/EarthRte SC: Ephem/Eclipse SC: Ephem/GMSTime SC: Ephem/MSidDay SC: Ephem/MoonRot SC: Ephem/Moons SC: Ephem/NutDelta SC: Ephem/ObOfE SC: Ephem/SunV1 SC: Ephem/TruEarth SC: SCData/sCTConstants SC: SCMat/EarthMR SC: SCMat/SolarFluxPredictions SC: Visualization/LoadEarthMap SC: Visualization/PlotPlanet SCPro: MannedVehicle/ISSOrbit Common: CommonData/Constants Common: CommonData/EarthMapData Common: CommonData/Sosumi Common: CommonData/SwooshWatermark Common: CommonData/xSplashSmall Common: ComponentModels/Box Common: ComponentModels/Frustrum 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/DispWithTitle Common: General/FSWClock Common: General/ListCases Common: General/MatToCell Common: General/Watermark Common: Graphics/AddFillToPlots Common: Graphics/Axis3D Common: Graphics/DrawVertices Common: Graphics/Ellipsd Common: Graphics/Map Common: Graphics/Mesh2 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/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/JD2Array Common: Time/JD2DN Common: Time/JD2Date Common: Time/JD2T Common: Time/JDToMidnight Common: Time/T2JD Math: Integration/RK4 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
Back to the CubeSat Module page