LyapunovOrbit.java

  1. /* Copyright 2002-2022 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 Lyapunov Orbit.
  21.  * @author Vincent Mouraux
  22.  * @since 10.2
  23.  */
  24. public class LyapunovOrbit 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 Lyapunov Orbit.
  30.      * In that case, it is assumed that the user knows the
  31.      * characteristics of the Lyapunov Orbit leading to this first guess/point. Also, the
  32.      * orbital period of this Lyapunov 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 Lyapunov Orbit first guess
  38.      */
  39.     public LyapunovOrbit(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 ay y-axis amplitude of the required Lyapunov Orbit, meters
  51.      */
  52.     public LyapunovOrbit(final RichardsonExpansion richardson,
  53.                          final double ay) {
  54.         super(richardson.getCr3bpSystem(),
  55.               richardson.computeLyapunovFirstGuess(ay, 0.0, 0.0),
  56.               richardson.getLyapunovOrbitalPeriod(ay));
  57.     }

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

  63. }