MagneticHysteresisOrbit:

Path: CubeSat/Damping

% Magnetic hysteresis over multiple orbits.

 Shows the magnetic field in a magnetic hysteresis damper over multiple
 orbits. The goal is to verify that appropriate hysteresis curves are seen 
 in the computed bar flux. Without external torque, there will be one
 hysteresis loop per orbit.

 When using the hysteresis function you must be very careful to have
 the field rate in the body frame. Otherwise the magnet can go 
 past saturation. In addition, use BFromHHysteresis to set the initial
 value for the b field in the bar.

 Things to try:

   1. Try different bar orientations in the body frame 
   2. Different orbits and initial rates
   3. Try different numbers of points per orbit.
   4. Add a nonzero torque


  See also BFromHHysteresis, MagneticHysteresis, BDipole, RVFromKepler,
  FRB, RK4
  ----------------------------------------------------------------------
%
--------------------------------------------------------------------------
   Copyright (c) 2014 Princeton Satellite Systems, Inc.
   All Rights Reserved
--------------------------------------------------------------------------
   Since version 2014.1
--------------------------------------------------------------------------