fr.cnes.sirius.patrius.stela.forces.gravity
Class SolidTidesAcc

java.lang.Object
  extended by fr.cnes.sirius.patrius.stela.forces.AbstractStelaLagrangeContribution
      extended by fr.cnes.sirius.patrius.stela.forces.gravity.SolidTidesAcc
All Implemented Interfaces:
StelaForceModel

public class SolidTidesAcc
extends AbstractStelaLagrangeContribution

Class representing the tidal contribution.

Since:
3.2
Version:
$Id: SolidTidesAcc.java 17584 2017-05-10 13:26:39Z bignon $
Author:
Emmanuel Bignon
Concurrency :
conditionally thread-safe
Concurrency comment :
thread safe if the CelestialBody used is thread safe

Field Summary
 
Fields inherited from class fr.cnes.sirius.patrius.stela.forces.AbstractStelaLagrangeContribution
dPot
 
Constructor Summary
SolidTidesAcc(boolean computeSunContributionFlag, boolean computeMoonContributionFlag, CelestialBody sunBody, CelestialBody moonBody)
          Advanced constructor: the user can choose if the sun or the moon contribution has to be deactivated.
SolidTidesAcc(CelestialBody sunBody, CelestialBody moonBody)
          Default constructor: both sun and moon contributions have to be computed.
 
Method Summary
 double[][] computePartialDerivatives(StelaEquinoctialOrbit orbit)
          Compute the partial derivatives for a given spacecraft state.
 double[] computePerturbation(StelaEquinoctialOrbit orbit)
          Compute the dE/dt force derivatives for a given spacecraft state.
 double[] computeShortPeriods(StelaEquinoctialOrbit orbit)
          Compute the short periodic variations for a given spacecraft state.
 CelestialBody getMoon()
          Get the Moon.
 CelestialBody getSun()
          Get the Sun.
 
Methods inherited from class fr.cnes.sirius.patrius.stela.forces.AbstractStelaLagrangeContribution
getdPot, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolidTidesAcc

public SolidTidesAcc(CelestialBody sunBody,
                     CelestialBody moonBody)
Default constructor: both sun and moon contributions have to be computed.

Parameters:
sunBody - Sun
moonBody - Moon

SolidTidesAcc

public SolidTidesAcc(boolean computeSunContributionFlag,
                     boolean computeMoonContributionFlag,
                     CelestialBody sunBody,
                     CelestialBody moonBody)
Advanced constructor: the user can choose if the sun or the moon contribution has to be deactivated.

Parameters:
computeSunContributionFlag - true if sun contribution to be taken into account
computeMoonContributionFlag - true if moon contribution to be taken into account
sunBody - Sun (may be null if Sun contribution is not taken into account)
moonBody - Moon (may be null if Moon contribution is not taken into account)
Method Detail

computePerturbation

public double[] computePerturbation(StelaEquinoctialOrbit orbit)
                             throws OrekitException
Compute the dE/dt force derivatives for a given spacecraft state.

Specified by:
computePerturbation in class AbstractStelaLagrangeContribution
Parameters:
orbit - current orbit information: date, kinematics
Returns:
the perturbation dE/dt for the current force
Throws:
OrekitException - if perturbation computation fails

getSun

public CelestialBody getSun()
Get the Sun.

Returns:
Sun

getMoon

public CelestialBody getMoon()
Get the Moon.

Returns:
Moon

computeShortPeriods

public double[] computeShortPeriods(StelaEquinoctialOrbit orbit)
                             throws OrekitException
Compute the short periodic variations for a given spacecraft state.

Parameters:
orbit - current orbit information: date, kinematics
Returns:
the short periodic variations of the current force
Throws:
OrekitException - if short periods computation fails

computePartialDerivatives

public double[][] computePartialDerivatives(StelaEquinoctialOrbit orbit)
                                     throws OrekitException
Compute the partial derivatives for a given spacecraft state.

Parameters:
orbit - current orbit information: date, kinematics
Returns:
the partial derivatives of the current force
Throws:
OrekitException - if partial derivatives computation fails


Copyright © 2017 CNES. All Rights Reserved.