Function lupnt::ShadowFunction

Function Documentation

Real lupnt::ShadowFunction(const Vec3 &r, const Vec3 &r_sun, Real R_body, Real R_sun)

Computes the solar-radiation shadow function of a spacecraft.

Computes the solar-radiation shadow function using apparent disk overlap.

Parameters:
  • r – Spacecraft position relative to occulting body [m]

  • r_sun – Sun position relative to occulting body [m]

  • R_body – Radius of occulting body [m]

  • R_sun – Radius of Sun [m]

  • r – Position vector of the spacecraft relative to the occulting body.

  • r_sun – Position vector of the Sun relative to the occulting body.

  • R_body – Radius of the occulting body.

  • R_sun – Radius of the Sun.

Returns:

Shadow function [0,1], 0 if in umbra, 1 if fully illuminated O. Montenbruck and G. Eberhard, Satellite orbits: models, methods, and applications, Sec. 3.4.2. Berlin: New York: Springer, 2000. doi: 10.1007/978-3-642-58351-3.

Returns:

Real Shadow function nu: 0 in umbra, 1 in sunlight, and between 0 and 1 in penumbra.