fr.cnes.sirius.patrius.wrenches
Class DragWrench

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

public class DragWrench
extends Object
implements WrenchModel

This class represents a drag wrench model. It requires a spacecraft capable of computing the wrench caused by drag forces.

Since:
2.1
Version:
$Id: DragWrench.java 17584 2017-05-10 13:26:39Z bignon $
Author:
Rami Houdroge
See Also:
DragWrenchSensitive
Concurrency :
not thread-safe
Concurrency comment :
class uses internal mutable attributes and frames

Constructor Summary
DragWrench(Atmosphere atmosphere, DragWrenchSensitive spacecraft)
          Simple constructor.
 
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

DragWrench

public DragWrench(Atmosphere atmosphere,
                  DragWrenchSensitive spacecraft)
Simple constructor.

Parameters:
atmosphere - atmospheric model
spacecraft - the object physical and geometrical information
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 © 2017 CNES. All Rights Reserved.