Path: SC/Dynamics
% Rigid body dynamics with damping. d.dampingFun is of the form DampingFun( x, jD, bFieldBody, d ) where d is the damping data. ------------------------------------------------------------------------ Form: d = RHSRigidBodyWithDamping; [xDot, p] = RHSRigidBodyWithDamping( x, t, d ) ------------------------------------------------------------------------ ------ Inputs ------ x (13+n,1) [r;v;q;omega;z] t (1,1) Time since start (s) d (1,1) Data structure .inertia (3,3) Spacecraft inertia (kg-m^2) .dampingFun (1,1) Handle to the damping function .dampingData (1,1) Damping function data .dipole (3,1) Fixed dipole .dampingType (1,1) 1 is used constant, 2 use fun .jD0 (1,1) Julian date .mu (1,1) Gravitational constant ------- Outputs ------- xDot (13+n,1) Right hand side p (1,1) Data structure .torqueDamper (3,1) Damper torque (Nm) .torqueDipole (3,1) Dipole torque (Nm) .bfieldBody (3,1) Magnetic field (T) .bfieldECI (3,1) Magnetic field (T) ------------------------------------------------------------------------
AC: ACData/ACTConstants AerospaceUtils: Coord/ECIToEF AerospaceUtils: Coord/QIToBDot SC: BasicOrbit/Period SC: BasicOrbit/RVFromKepler SC: Environs/BDipole SC: Ephem/EarthRte SC: Ephem/MSidDay SC: SCData/sCTConstants Common: CommonData/Constants Common: CommonData/SwooshWatermark Common: CommonData/xSplashSmall Common: Control/C2DZOH Common: Database/Constant Common: General/CellToMat Common: General/DeBlankLT Common: General/DeleteCell Common: General/MatToCell Common: General/Watermark Common: Graphics/NewFig Common: Graphics/Plot2D Common: Graphics/Plot3D Common: Graphics/PltStyle Common: Graphics/TimeLabl Common: Graphics/XLabelS Common: Graphics/YLabelS Common: Graphics/ZLabelS Common: Quaternion/QForm Common: Time/DTSToDTA Common: Time/Date2JD Common: Time/JD2000 Common: Time/JD2T Common: Time/T2JD Math: Linear/Cross Math: Linear/Mag Math: Linear/Skew Math: Linear/SkewSymm Math: MathUtils/R2P5
Back to the SC Module page