User Manual 3.3 Maneuvers : Différence entre versions
(→List of maneuvers) |
(→Constant Thrust Maneuver) |
||
Ligne 37 : | Ligne 37 : | ||
== Features Description == | == Features Description == | ||
=== Constant Thrust Maneuver === | === Constant Thrust Maneuver === | ||
− | The [{{JavaDoc3.3}}/org/orekit/forces/maneuvers/ConstantThrustManeuver.html ConstantThrustManeuver class ] implements the [{{JavaDoc3.3}}/org/orekit/forces/ForceModel.html ForceModel interface ]. The thrust, the ISP and the acceleration direction are constant values. | + | The [{{JavaDoc3.3}}/org/orekit/forces/maneuvers/ConstantThrustManeuver.html ConstantThrustManeuver class] implements the [{{JavaDoc3.3}}/org/orekit/forces/ForceModel.html ForceModel interface]. The thrust, the ISP and the acceleration direction are constant values. |
'''The thrust direction can either be defined:''' | '''The thrust direction can either be defined:''' | ||
Ligne 73 : | Ligne 73 : | ||
* With a start date and a duration (former method) | * With a start date and a duration (former method) | ||
− | * With event detectors, first detector for starting the maneuver, second detector for stopping the maneuver.'''Action.STOP''' is required to trigger (start/stop) the thrust. Any other action will be discarded. | + | * With event detectors, first detector for starting the maneuver, second detector for stopping the maneuver. '''Action.STOP''' is required to trigger (start/stop) the thrust. Any other action will be discarded. |
When using event detectors, pay attention to events that may occur several times. If you want the maneuver to perform only once, the event detectors have to be included in a nth occurrence detector or its <code>shouldBeRemoved()</code> method have to return <code>true</code>. Otherwise the maneuver may be performed more than once: if a maneuver starts at the perigee (using a perigee detector) and stops at the apogee (using an apogee detector), then a maneuver will start at every perigee and stop at every apogee. | When using event detectors, pay attention to events that may occur several times. If you want the maneuver to perform only once, the event detectors have to be included in a nth occurrence detector or its <code>shouldBeRemoved()</code> method have to return <code>true</code>. Otherwise the maneuver may be performed more than once: if a maneuver starts at the perigee (using a perigee detector) and stops at the apogee (using an apogee detector), then a maneuver will start at every perigee and stop at every apogee. | ||
− | '''[{{JavaDoc3.3}}/org/orekit/parameter/Parameter.html Parameter ] objects can also be used to define thrust and flow rate:''' | + | '''[{{JavaDoc3.3}}/org/orekit/parameter/Parameter.html Parameter] objects can also be used to define thrust and flow rate:''' |
<syntaxhighlight lang="java"> | <syntaxhighlight lang="java"> | ||
final double duration = 1000; | final double duration = 1000; |
Version actuelle en date du 28 février 2018 à 08:14
Sommaire
Introduction
Scope
The scope of this section is to present the maneuver models available through the Orekit and Patrius libraries.
It is possible to define the thrust direction in a frame. If this frame is set to null, it means that the thrust direction is defined in spacecraft frame. The SpacecraftFrame class cannot be used.
Javadoc
All the classes related to maneuvers are in the following packages:
Library | Javadoc |
---|---|
Orekit | Package org.orekit.forces.maneuvers |
Orekit addons | Package org.orekit.forces.maneuvers |
Patrius | Package fr.cnes.sirius.patrius.forces.maneuvers |
Links
Modèle:SpecialInclusion prefix=$theme sub section="Links"/
Useful Documents
Modèle:SpecialInclusion prefix=$theme sub section="UsefulDocs"/
Package Overview
The maneuvers conception is described hereafter :
Features Description
Constant Thrust Maneuver
The ConstantThrustManeuver class implements the ForceModel interface. The thrust, the ISP and the acceleration direction are constant values.
The thrust direction can either be defined:
- In spacecraft frame:
final double duration = 1000; final double thrust = 420; final double isp = 318; final Vector3D direction = Vector3D.PLUS_I; final ConstantThrustManeuver maneuver = new ConstantThrustManeuver(date, duration, thrust, isp, direction, massProvider, "thruster");
- In a frame:
final double duration = 1000; final double thrust = 420; final double isp = 318; final Vector3D direction = Vector3D.PLUS_I; final Frame frame = FramesFactory.getGCRF(); final ConstantThrustManeuver maneuver = new ConstantThrustManeuver(date, duration, thrust, isp, direction, massProvider, "thruster", frame);
- In a local orbital frame frame:
final double duration = 1000; final double thrust = 420; final double isp = 318; final Vector3D direction = Vector3D.PLUS_I; final LOFType lof = LOFType.TNW; final ConstantThrustManeuver maneuver = new ConstantThrustManeuver(date, duration, thrust, isp, direction, massProvider, "thruster", lof);
Maneuver start and stop criterion can either be defined:
- With a start date and a duration (former method)
- With event detectors, first detector for starting the maneuver, second detector for stopping the maneuver. Action.STOP is required to trigger (start/stop) the thrust. Any other action will be discarded.
When using event detectors, pay attention to events that may occur several times. If you want the maneuver to perform only once, the event detectors have to be included in a nth occurrence detector or its shouldBeRemoved()
method have to return true
. Otherwise the maneuver may be performed more than once: if a maneuver starts at the perigee (using a perigee detector) and stops at the apogee (using an apogee detector), then a maneuver will start at every perigee and stop at every apogee.
Parameter objects can also be used to define thrust and flow rate:
final double duration = 1000; final Parameter thrust = new Parameter("thrust", 420); final Parameter flowRate = new Parameter("flow rate", 0.); final Vector3D direction = Vector3D.PLUS_I; final ConstantThrustManeuver maneuver = new ConstantThrustManeuver(date, duration, thrust, flowRate, direction, massProvider, "thruster");
At last, two methods are available in ConstantThrustManeuver
to start/restart a propagation during a maneuver:
-
isFiring()
-
setFiring(final boolean isFiring)
A user wanting to start a propagation during a maneuver will call setFiring(true)
before launching the propagation.
This is useful since maneuver start and stop criteria are defined through event detectors.
This mecanism is available for any non-impulsive maneuver i.e. ConstantThrustManeuver
, VariableThrustManeuver
and ConstantThrustError
.
Variable Thrust Maneuver
The following diagram shows the classes and interfaces used to compute a variable thrust maneuver:
The VariableThrustManeuver
class implements the ForceModel
interface as the ConstantThrustManeuver
class. The difference is that thrust, ISP and acceleration direction are constant values in ConstantThrustManeuver
, whereas in VariableThrustManeuver
they are represented by the following interfaces:
-
IDependentVariable<SpacecraftState>
(thrust and ISP) -
IDependentVectorVariable<SpacecraftState>
(acceleration direction)
In this way thrust, ISP and thrust direction can be customized. In particular they can depend on spacecraft state.
Variable thrust maneuver are used in the same way as constant thrust maneuvers (see section above). In particular maneuver start and stop criterion can either be defined using a date and a duration (former method) or two event detectors.
Impulse Maneuver
This ImpulseManeuver
class implements the EventDetector
interface.
This maneuver is provided with an underlying event detector; when an underlying event is triggered, and only if its action is set to STOP, the maneuver is triggered and the current SpacecraftState
is reset. An increment or a decrement is applied to its velocity and a ratio is applied to the mass. These changes depend on the direction of variation of the integration variable (time) during integration : propagation or retro-propagation case.
List of maneuvers
The class ManeuversSequence
handles the creation and the operations on a list of maneuvers; the maneuvers that can be added to the list are the following ones :
- Impulse maneuvers;
- Continue constant maneuvers;
- Continue maneuvers with variable thrust and ISP;
The user can do the following operations on the list:
- add a new maneuver; to add it, the following conditions must be met:
- there must be no superposition between the new maneuver and any maneuver in the list.
If the new maneuver is an impulse one and its triggering event detector is not a date detector, it always adds the maneuver (there is no way to know in advance its date). Otherwise if the new maneuver is an impulse one and its triggering event detector is a date detector, it gets the date of the maneuver from the triggering detector and uses this information to check the superposition; - the time between the end of the previous maneuver and the start of the new maneuver, as well as the time between the end of the new maneuver and the start of the next maneuver, must be bigger than a threshold value. The threshold value depends on the type of maneuver (impulse or continue) and can be chosen by the user.
- there must be no superposition between the new maneuver and any maneuver in the list.
- remove a maneuver already in the list;
- get the number of maneuvers in the list;
- add all the maneuvers of the list to the propagator;
The following lines show the usage of the class:
final ManeuversSequence sequence = new ManeuversSequence(0.0, 0.0); // add the maneuvers to the sequence: sequence.add(constantManeuver); sequence.add(impulseManeuver); // apply the maneuvers to the propagator: sequence.applyTo(numericalPropagator);
Getting Started
Modèle:SpecialInclusion prefix=$theme sub section="GettingStarted"/
Contents
Interfaces
Classes
Class | Summary | Javadoc |
---|---|---|
ContinuousThrustManeuver | This class implements a continuous thrust maneuver. | ... |
ImpulseManeuver | This class implements an impulse maneuver model. | ... |
SmallManeuverAnalyticalModel | This class implements an analytical model for small maneuvers. | ... |
ManeuversSequence | This class implements a sequence of maneuvers. | ... |
Tutorials
Tutorial 1
Modèle:SpecialInclusion prefix=$theme sub section="Tuto1"/
Tutorial 2
Modèle:SpecialInclusion prefix=$theme sub section="Tuto2"/