RHSRigidBodyWithDamping:

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.

   Since version 2014.1
------------------------------------------------------------------------
   Form:
   [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


   -------
   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)

------------------------------------------------------------------------

Children:

AerospaceUtils: Coord/QIToBDot
Common: Quaternion/QForm
Math: Linear/Cross
Math: Linear/Mag
SC: Environs/BDipole

Back to the SC Module page