1

A.3.6 User’s Guide for Spin Stabilization Codes

A.3.6: User’s Guide for Spin Stabilization Codes

A.3.6.1 User’s Guide for Spin_Rate.m

Written by Albert Chaney

Revision by Jeffrey Stuart – 2/27/2008, 3/1/2008, 3/21/2008

Description:

This code calculates the needed spin rate based on an acceptable velocity pointing error that has been pre-determined. It outputs plots of the angular momentum vector in inertial space. It uses a body fixed 3-1-2 Euler angle sequence to convert to inertial space. It numerically integrates the EOMs using the MATLAB function ode45. The EOMs are calculated in the function Spin_Rate_EOMs.m which is called in the ode45 function.

Assumptions:

It is assumed that there is only one moment on the vehicle during the thrusting due to a pre-determined offset in the thrust. Also assumed is that there is constant thrust and that the inertia matrices are calculated using a distributed mass model.

Important Notes:

For this code to work Spin_Rate_EOMs.m needs to be in the same directory.

Input Section:

The variables below are what one would change between cases. Then one would simply save and run Spin_Rate.m.

Variable Name / Description
r / Radius of the stage [m]
L_tot / Length of stage [m]
tburn / Burn time of the stage [sec]
T / Thrust of the stage [N]
rpm / Spin rate of the stage [rpm]
m0 / Initial mass of the stage [kg]
mdot / Mass flow rate of the stage [kg/s]
off / Offset of the thrust [rad]
cm0 / Initial location of center of mass from the forward point of stage [m]
cmf / Final location of center of mass from the forward point of stage [m]
I10, I20, I30 / Initial values for moments of inertia along the principle axes 1,2, and 3 [kg*m2]
I1f, I2f, I3f / Final values for moments of inertia along the principle axes 1,2, and 3 [kg*m2]

Output:

The output of this program is four plots. Below is an example case using the following inputs:

Variable Name / Value
r / 0.13605 [m]
L_tot / 0.9874 [m]
tburn / 191.9 [sec]
T / 625.0 [N]
rpm / 180 [rpm]
m0 / 60.4611 [kg]
mdot / 0.194 [kg/s]
off / 0.5871 [deg]
cm0 / 0.6313 [m]
cmf / 0.7136 [m]
I10, I20, I30 / 19.2267, 19.2267, 0.4378 [kg*m2]
I1f, I2f, I3f / 4.8343, 4.8343, 0.1041 [kg*m2]

Fig. 3.6.1.1: Angular Momentum for the total burn

Figure 3.6.1 is the first figure formed by this code. It shows the angular momentum vector for the total burn. Plotted is the inertial y-component versus the inertial x-component. The distance the center of the circle is from the origin is the pointing error for the burn.

Fig. 3.6.1.2: Angular Momentum for the beginning of the burn

Figure 3.6.2 is the second figure formed by this code. It displays angular momentum vector for the beginning of the burn.

Fig. 3.6.1.3: Angular Momentum for the end of the burn

Figure 3.6.2 is the third figure formed by this code. It displays angular momentum vector for the end of the burn. This figure is the most useful as it is simple to see the distance from the center of the circle to the origin.

Fig. 3.6.1.4: Change in velocity error for the entire burn

Figure 3.6.4 is the fourth and final figure formed by this code. It shows the change in the velocity error for the entire burn.

A.3.6.2: User’s Guide for AAE450_DNC_spin_offset.m

Written by Jeffrey Stuart

Description:

This code calculates the values associated with spinning up the third stage of the launch vehicle. It numerically integrates EOMs using MATLAB’s ode45 function which calls AAE450_DNC_spin_eom.

Assumptions:

It is assumed that there is an offset in the thrust of the motors that spin up the third stage which causes a disturbance, and there is no active control in the third stage.

Important Notes:

For this code to work AAE450_DNC_spin_eom.mneeds to be in the same directory.

Input Section:

The variables below are what one would change between cases. Then one would simply save and run AAE450_DNC_spin_offset.m.

Variable Name / Description
R / Radius of the stage [m]
tb / Burn time of the spin up motor [m]
S / Spin moment [N*m]
P / Offset spin moment [N*m]
cm0 / Center of mass of the stage from forward point [m]
I10, I20, I30 / Initial values for moments of inertia along the principle axes 1,2, and 3 [kg*m2]

Output:

The output of this program is two figures. Below is an example case using the following inputs:

Variable Name / Description
R / 0.1375 [m]
tb / 5 [m]
S / 2.15 [N*m]
P / 0.0215 [N*m]
cm0 / 0.6141 [m]
I10, I20, I30 / 20.1985, 20.1985, 0.4608 [kg*m2]

Fig. 3.6.2.1: Angular velocities for the entire spin up maneuver

Figure 3.6.2.1 shows the angular velocities for the entire spin up maneuver.

Fig. 3.6.2.2: Angular momentum vector for the spin up maneuver

Figure 3.6.2.2 shows the angular momentum vector for the spin up maneuver.

Author: Albert Chaney