Class CylindricalShadowEclipseDetector

  • All Implemented Interfaces:
    EventDetector

    public class CylindricalShadowEclipseDetector
    extends AbstractDetector<CylindricalShadowEclipseDetector>
    Event detector for eclipses from a single, infinitely-distant light source, occulted by a spherical central body. The shadow region is cylindrical, a model less accurate than a conical one but more computationally-performant.

    The so-called g function is negative in eclipse, positive otherwise.

    Since:
    12.1
    Author:
    Romain Serra
    See Also:
    EclipseDetector
    • Constructor Detail

      • CylindricalShadowEclipseDetector

        public CylindricalShadowEclipseDetector​(PVCoordinatesProvider sun,
                                                double occultingBodyRadius,
                                                EventDetectionSettings eventDetectionSettings,
                                                EventHandler handler)
        Constructor.
        Parameters:
        sun - light source provider (infinitely distant)
        occultingBodyRadius - occulting body radius
        eventDetectionSettings - detection settings
        handler - event handler
        Since:
        12.2
      • CylindricalShadowEclipseDetector

        public CylindricalShadowEclipseDetector​(PVCoordinatesProvider sun,
                                                double occultingBodyRadius,
                                                EventHandler handler)
        Constructor with default detection settings.
        Parameters:
        sun - light source provider
        occultingBodyRadius - occulting body radius
        handler - event handler
    • Method Detail

      • getOccultingBodyRadius

        public double getOccultingBodyRadius()
        Getter for occulting body radius.
        Returns:
        radius
      • g

        public double g​(SpacecraftState s)
        Compute the value of the switching function. This function must be continuous (at least in its roots neighborhood), as the integrator will need to find its roots to locate the events.
        Parameters:
        s - the current state information: date, kinematics, attitude
        Returns:
        value of the switching function