Function lupnt::ShadowFunction

Function Documentation

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

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

Parameters:
  • 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:

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