pyRTX.classes.Drag
Classes
|
A class for computing the drag acceleration on a spacecraft. |
- class pyRTX.classes.Drag.Drag(spacecraft, crossectionLUT, density, CD, body, precomputation=None)[source]
A class for computing the drag acceleration on a spacecraft.
- __init__(spacecraft, crossectionLUT, density, CD, body, precomputation=None)[source]
Initializes the Drag object.
- Parameters:
spacecraft (
pyRTX.Spacecraft) – The spacecraft object.crossectionLUT (
pyRTX.classes.LookUpTable) – A lookup table of the spacecraft’s cross-sectional area.density (
callable) – A function that returns the atmospheric density in kg/km^3 as a function of altitude.CD (
float) – The drag coefficient of the spacecraft.body (
str) – The name of the celestial body causing the drag.precomputation (
pyRTX.classes.Precompute, optional) – A Precompute object with precomputed SPICE data.