fr.cnes.sirius.patrius.wrenches
Class GravitationalAttractionWrench

java.lang.Object
  extended by fr.cnes.sirius.patrius.wrenches.GravitationalAttractionWrench
All Implemented Interfaces:
WrenchModel

public class GravitationalAttractionWrench
extends Object
implements WrenchModel

This class represents a gravitational attraction wrench

Since:
$$
Version:
2.1
Author:
Rami Houdroge
Concurrency :
conditionally thread-safe
Concurrency comment :
thread-safe if the inertia model is thread-safe

Constructor Summary
GravitationalAttractionWrench(IInertiaModel spacecraft, double mu)
          Create a wrench model from an inertia model and a gravitational parameter
 
Method Summary
 Vector3D computeTorque(SpacecraftState s)
          Compute the resulting torque at the mass centre of the spacecraft in the frame of the main part.
 Vector3D computeTorque(SpacecraftState s, Vector3D origin, Frame frame)
          Compute the resulting wrench.
 Wrench computeWrench(SpacecraftState s)
          Compute the resulting wrench at the mass centre of the spacecraft in the frame of the main part.
 Wrench computeWrench(SpacecraftState s, Vector3D origin, Frame frame)
          Compute the resulting wrench.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GravitationalAttractionWrench

public GravitationalAttractionWrench(IInertiaModel spacecraft,
                                     double mu)
Create a wrench model from an inertia model and a gravitational parameter

Parameters:
spacecraft - inertia model
mu - gravitational parameter
Method Detail

computeWrench

public Wrench computeWrench(SpacecraftState s)
                     throws OrekitException
Compute the resulting wrench at the mass centre of the spacecraft in the frame of the main part.

Specified by:
computeWrench in interface WrenchModel
Parameters:
s - spacecraft state
Returns:
resulting wrench
Throws:
OrekitException - if some error occurs

computeWrench

public Wrench computeWrench(SpacecraftState s,
                            Vector3D origin,
                            Frame frame)
                     throws OrekitException
Compute the resulting wrench.

Specified by:
computeWrench in interface WrenchModel
Parameters:
s - spacecraft state
origin - point in which to express wrench
frame - frame in which point is expressed
Returns:
resulting wrench
Throws:
OrekitException - if some error occurs

computeTorque

public Vector3D computeTorque(SpacecraftState s)
                       throws OrekitException
Compute the resulting torque at the mass centre of the spacecraft in the frame of the main part.

Specified by:
computeTorque in interface WrenchModel
Parameters:
s - spacecraft state
Returns:
resulting torque at center of spacecraft state frame
Throws:
OrekitException - if some error occurs

computeTorque

public Vector3D computeTorque(SpacecraftState s,
                              Vector3D origin,
                              Frame frame)
                       throws OrekitException
Compute the resulting wrench.

Specified by:
computeTorque in interface WrenchModel
Parameters:
s - spacecraft state
origin - point in which to express torque
frame - frame in which point is expressed
Returns:
resulting torque expressed at origin
Throws:
OrekitException - if some error occurs


Copyright © 2016 CNES. All Rights Reserved.