HaloOrbit.java

  1. /* Copyright 2002-2025 CS GROUP
  2.  * Licensed to CS GROUP (CS) under one or more
  3.  * contributor license agreements.  See the NOTICE file distributed with
  4.  * this work for additional information regarding copyright ownership.
  5.  * CS licenses this file to You under the Apache License, Version 2.0
  6.  * (the "License"); you may not use this file except in compliance with
  7.  * the License.  You may obtain a copy of the License at
  8.  *
  9.  *   http://www.apache.org/licenses/LICENSE-2.0
  10.  *
  11.  * Unless required by applicable law or agreed to in writing, software
  12.  * distributed under the License is distributed on an "AS IS" BASIS,
  13.  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14.  * See the License for the specific language governing permissions and
  15.  * limitations under the License.
  16.  */
  17. package org.orekit.orbits;

  18. import org.orekit.bodies.CR3BPSystem;
  19. import org.orekit.utils.PVCoordinates;

  20. /** Class calculating different parameters of a Halo Orbit.
  21.  * @author Vincent Mouraux
  22.  * @since 10.2
  23.  */
  24. public class HaloOrbit extends LibrationOrbit {

  25.     /**
  26.      * Simple Constructor.
  27.      * <p>
  28.      * This constructor can be used if the user wants to use a first guess from
  29.      * any other sources or if he has the initial conditions of a well defined Halo Orbit.
  30.      * In that case, it is assumed that the user knows the
  31.      * characteristics of the Halo Orbit leading to this first guess/point. Also, the
  32.      * orbital period of this Halo Orbit has to be specified for further
  33.      * computation.
  34.      * </p>
  35.      * @param syst CR3BP System considered
  36.      * @param pv PVCoordinates of the initial point or of the first guess
  37.      * @param orbitalPeriod Normalized orbital period linked to the given Halo Orbit first guess
  38.      */
  39.     public HaloOrbit(final CR3BPSystem syst,
  40.                      final PVCoordinates pv, final double orbitalPeriod) {
  41.         super(syst, pv, orbitalPeriod);
  42.     }

  43.     /**
  44.      * Simple Constructor.
  45.      * <p>
  46.      * Standard constructor, the first guess will be computed with both start
  47.      * time and phase equal to zero.
  48.      * </p>
  49.      * @param richardson third-Order Richardson Expansion
  50.      * @param az z-axis Amplitude of the required Halo Orbit, meters
  51.      * @param type type of the Halo Orbit (Northern or Southern)
  52.      */
  53.     public HaloOrbit(final RichardsonExpansion richardson,
  54.                      final double az, final LibrationOrbitFamily type) {
  55.         super(richardson.getCr3bpSystem(),
  56.               richardson.computeHaloFirstGuess(az, type, 0.0, 0.0),
  57.               richardson.getHaloOrbitalPeriod(az));
  58.     }

  59.     /** {@inheritDoc} */
  60.     @Override
  61.     protected PVCoordinates applyCorrectionOnPV(final CR3BPDifferentialCorrection diff) {
  62.         return diff.compute(LibrationOrbitType.HALO);
  63.     }

  64. }