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)
------------------------------------------------------------------------
AerospaceUtils: Coord/QIToBDot SC: Environs/BDipole Common: Database/Constant Common: Quaternion/QForm Common: Time/Date2JD Math: Linear/Cross Math: Linear/Mag
Back to the SC Module page