pyRTX.classes.Drag

Classes

Drag(spacecraft, crossectionLUT, density, ...)

class pyRTX.classes.Drag.Drag(spacecraft, crossectionLUT, density, CD, body, precomputation=None)[source]
__init__(spacecraft, crossectionLUT, density, CD, body, precomputation=None)[source]

Initialize the Drag instance

Parameters: Spacecraft: Spacecraft object crossectionLUT: str or LookupTableND density: function that takes as input the height and returns the density in kg/km**2 CD: [float] the object CD

compute(epochs, frame='', n_cores=None)[source]

Method to compute the drag acceleration.

Parameters: - epochs: list of epochs - ncores: number of cores to use for parallel computations

run(epoch)[source]

Compute the drag at epoch in the spacecraft body frame