public class MagneticWrench extends Object implements WrenchModel
Constructor and Description |
---|
MagneticWrench(MagneticMomentProvider moment,
GeoMagneticField field)
Constructor
|
Modifier and Type | Method and Description |
---|---|
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.
|
public MagneticWrench(MagneticMomentProvider moment, GeoMagneticField field)
moment
- dipole model of spacecraft expressed in spacecraft framefield
- geomagnetic fieldpublic Wrench computeWrench(SpacecraftState s) throws PatriusException
computeWrench
in interface WrenchModel
s
- spacecraft statePatriusException
- if some error occurspublic Wrench computeWrench(SpacecraftState s, Vector3D origin, Frame frame) throws PatriusException
computeWrench
in interface WrenchModel
s
- spacecraft stateorigin
- point in which to express wrenchframe
- frame in which point is expressedPatriusException
- if some error occurspublic Vector3D computeTorque(SpacecraftState s) throws PatriusException
computeTorque
in interface WrenchModel
s
- spacecraft statePatriusException
- if some error occurspublic Vector3D computeTorque(SpacecraftState s, Vector3D origin, Frame frame) throws PatriusException
computeTorque
in interface WrenchModel
s
- spacecraft stateorigin
- point in which to express torqueframe
- frame in which point is expressedPatriusException
- if some error occursCopyright © 2019 CNES. All rights reserved.