|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.orekit.propagation.events.AbstractDetector org.orekit.propagation.events.NullMassPartDetector
public class NullMassPartDetector
This class creates an event detector that detects when the mass of the element becomes null. This detector is automatically added (through the continuous thrust) to every propagator and throws a reset_derivatives (because the thrust became null) once it detects a null mass and the mass is set to exactly zero. Since the initial mass of the part is positive or null, the first time where g = 0 will indicate the first time when the mass becomes null.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.orekit.propagation.events.EventDetector |
---|
EventDetector.Action |
Field Summary |
---|
Fields inherited from class org.orekit.propagation.events.AbstractDetector |
---|
DEFAULT_MAXCHECK, DEFAULT_THRESHOLD |
Fields inherited from interface org.orekit.propagation.events.EventDetector |
---|
DECREASING, INCREASING, INCREASING_DECREASING |
Constructor Summary | |
---|---|
NullMassPartDetector(double maxCheck,
double threshold,
MassProvider massModel,
String part)
Inherited constructor. |
|
NullMassPartDetector(int slopeSelection,
double maxCheck,
double threshold,
MassProvider massModel,
String part)
Inherited constructor. |
|
NullMassPartDetector(MassProvider massModel,
String part)
Build a new instance MaxCheck is set to 10.e9, so almost no other date can be added. |
Method Summary | |
---|---|
EventDetector.Action |
eventOccurred(SpacecraftState s,
boolean increasing,
boolean forward)
If the mass of the element becomes negative, a reset_state is performed. |
double |
g(SpacecraftState s)
Compute the value of the switching function. |
String |
getPartName()
Get the name of the part (attribute). |
SpacecraftState |
resetState(SpacecraftState oldState)
Reset the state (including additional states) prior to continue propagation. |
boolean |
shouldBeRemoved()
This method is called after EventDetector.eventOccurred(org.orekit.propagation.SpacecraftState, boolean, boolean) has been triggered. |
Methods inherited from class org.orekit.propagation.events.AbstractDetector |
---|
getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.orekit.propagation.events.EventDetector |
---|
getMaxCheckInterval, getMaxIterationCount, getSlopeSelection, getThreshold, init |
Constructor Detail |
---|
public NullMassPartDetector(double maxCheck, double threshold, MassProvider massModel, String part)
maxCheck
- maximum checking interval (s)threshold
- convergence threshold (s)massModel
- mass modelpart
- name of the partpublic NullMassPartDetector(int slopeSelection, double maxCheck, double threshold, MassProvider massModel, String part)
slopeSelection
- g-function slope selection (0, 1, or 2)maxCheck
- maximum checking interval (s)threshold
- convergence threshold (s)massModel
- mass modelpart
- name of the partpublic NullMassPartDetector(MassProvider massModel, String part)
massModel
- mass modelpart
- name of the partMethod Detail |
---|
public SpacecraftState resetState(SpacecraftState oldState) throws OrekitException
resetState
in interface EventDetector
resetState
in class AbstractDetector
oldState
- the current SpacecraftState whose MassProvider has to be updated
OrekitException
- if mass is negative : bcs function updateMasspublic EventDetector.Action eventOccurred(SpacecraftState s, boolean increasing, boolean forward)
eventOccurred
in interface EventDetector
eventOccurred
in class AbstractDetector
s
- the current state information : date, kinematics, attitudeincreasing
- if true, the value of the switching function increases when times increases around event (note that increase is measured with respect to physical time, not with respect to propagation which may go backward in time)forward
- if true, the integration variable (time) increases during integration.
public boolean shouldBeRemoved()
AbstractDetector
EventDetector.eventOccurred(org.orekit.propagation.SpacecraftState, boolean, boolean)
has been triggered.
It returns true if the current detector should be removed after first event detection.
WARNING: this method can be called only once a event has been triggered. Before,
the value is not available.
shouldBeRemoved
in interface EventDetector
shouldBeRemoved
in class AbstractDetector
public double g(SpacecraftState s) throws OrekitException
g
in interface EventDetector
g
in class AbstractDetector
s
- the current state information: date, kinematics, attitude
OrekitException
- if some specific error occurspublic String getPartName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |