Drag Torque
===========
.. image:: ../_static/tutorials/torques_on_a_spacecraft/drag_torque.gif
:alt: A 3U spacecraft turning its long axis toward its flight direction under drag torque.
:width: 80%
:align: center
Atmospheric drag acts on the spacecraft's surfaces. When the centre of pressure
and centre of mass differ, it also produces a torque. Here we follow that torque
over several minutes. Drag force on the orbit is left for *Forces on a Spacecraft*.
At an illustrative altitude of 300 km, the 10 × 30 × 10 cm 3U body starts 45°
from its flight direction, without a spin. Its centre of mass is offset 2 cm
along the long axis, and drag is its only applied torque. In the animation,
green is the long body axis and yellow is the flight direction.
This simple model shows the first turn toward the flow, without rotational damping.
.. code-block:: python
:caption: drag_torque.py
import matplotlib.pyplot as plt
import numpy as np
import ADCS
environment = ADCS.Environment(atmosphere=ADCS.SMADAtmosphere())
size = np.array([0.1, 0.3, 0.1])
faces = []
for axis in range(3):
for sign in (-1.0, 1.0):
normal = sign * np.eye(3)[axis]
faces.append(ADCS.disturbances.GeometryFace(
area=np.prod(np.delete(size, axis)),
centroid=0.5 * size[axis] * normal,
normal=normal, CD=2.2,
))
geometry = ADCS.disturbances.GeometryConfig(faces)
drag = ADCS.disturbances.Drag_Disturbance(geometry)
satellite = ADCS.Satellite(
mass=4.0,
COM=np.array([0.0, 0.02, 0.0]),
J_0=np.diag([0.0333, 0.00667, 0.0333]),
disturbances=[drag],
)
initial_state = ADCS.State(
w=np.zeros(3),
q=np.array([np.cos(np.pi / 8), 0.0, 0.0, -np.sin(np.pi / 8)]),
)
orbit = ADCS.Orbital_State(
environment=environment, J2000=0.22,
R=np.array([6678.1363, 0.0, 0.0]),
V=np.array([0.0, np.sqrt(398600.4415 / 6678.1363), 0.0]),
)
results = ADCS.simulate(
x=initial_state, satellite=satellite, os0=orbit,
environment=environment, dt=5.0, tf=390.0,
)
.. admonition:: Geometry tip
:class: tutorial-tip
Specify a drag coefficient for each face in the geometry. A commonly used
value is :math:`C_D=2.2` [1]_.
.. code-block:: python
face = ADCS.disturbances.GeometryFace(
area=area, centroid=centroid, normal=normal, CD=2.2,
)
.. [1] D. L. Oltrogge and K. Leveque, `An Evaluation of CubeSat Orbital Decay