pyRTX.classes.Radiation

Classes

Albedo(spacecraft, lookup, Planet[, ...])

A class for computing the albedo acceleration on a spacecraft.

Emissivity(spacecraft, lookup, Planet[, ...])

A class for computing the thermal emissivity acceleration on a spacecraft.

class pyRTX.classes.Radiation.Albedo(spacecraft, lookup, Planet, precomputation=None, baseflux=1361.5)[source]

A class for computing the albedo acceleration on a spacecraft.

__init__(spacecraft, lookup, Planet, precomputation=None, baseflux=1361.5)[source]

Initializes the Albedo object.

Parameters:
  • spacecraft (pyRTX.Spacecraft) – The spacecraft object.

  • lookup (pyRTX.classes.LookUpTable) – A lookup table for the spacecraft’s albedo properties.

  • Planet (pyRTX.Planet) – The planet object.

  • precomputation (pyRTX.classes.Precompute, optional) – A Precompute object with precomputed SPICE data.

  • baseflux (float, default 1361.5) – The base solar flux at 1 AU in W/m^2.

run(epoch)[source]

Computes the albedo acceleration at a single epoch.

Parameters:

epoch (float) – The epoch in TDB seconds past J2000.

Returns:

A tuple containing the albedo acceleration vector, the normalized fluxes, the directions of the rays, and the albedo values.

Return type:

tuple

compute(epochs, n_cores=None)[source]

Computes the albedo acceleration for a series of epochs.

Parameters:
  • epochs (list of float) – A list of epochs in TDB seconds past J2000.

  • n_cores (int, optional) – The number of CPU cores to use for parallel computation.

Returns:

A tuple containing the albedo acceleration vectors, the normalized fluxes, the directions of the rays, and the albedo values for each epoch.

Return type:

tuple

class pyRTX.classes.Radiation.Emissivity(spacecraft, lookup, Planet, precomputation=None, baseflux=1361.5)[source]

A class for computing the thermal emissivity acceleration on a spacecraft.

__init__(spacecraft, lookup, Planet, precomputation=None, baseflux=1361.5)[source]

Initializes the Emissivity object.

Parameters:
  • spacecraft (pyRTX.Spacecraft) – The spacecraft object.

  • lookup (pyRTX.classes.LookUpTable) – A lookup table for the spacecraft’s emissivity properties.

  • Planet (pyRTX.Planet) – The planet object.

  • precomputation (pyRTX.classes.Precompute, optional) – A Precompute object with precomputed SPICE data.

  • baseflux (float, default 1361.5) – The base solar flux at 1 AU in W/m^2.

run(epoch)[source]

Computes the emissivity acceleration at a single epoch.

Parameters:

epoch (float) – The epoch in TDB seconds past J2000.

Returns:

A tuple containing the emissivity acceleration vector, the normalized fluxes, the directions of the rays, and the face emissivities.

Return type:

tuple

compute(epochs, n_cores=None)[source]

Computes the emissivity acceleration for a series of epochs.

Parameters:
  • epochs (list of float) – A list of epochs in TDB seconds past J2000.

  • n_cores (int, optional) – The number of CPU cores to use for parallel computation.

Returns:

A tuple containing the emissivity acceleration vectors, the normalized fluxes, the directions of the rays, and the face emissivities for each epoch.

Return type:

tuple