Class AbstractCartesianCost
java.lang.Object
org.orekit.control.indirect.adjoint.cost.AbstractCartesianCost
- All Implemented Interfaces:
CartesianCost
- Direct Known Subclasses:
BoundedCartesianEnergy,CartesianFlightDurationCost,CartesianFuelCost,PenalizedCartesianFuelCost,UnboundedCartesianEnergy,UnboundedCartesianEnergyNeglectingMass
Abstract class for cost with Cartesian coordinates.
- Since:
- 13.0
- Author:
- Romain Serra
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractCartesianCost(String name, double massFlowRateFactor) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected EventDetectorbuildSwitchDetector(ControlSwitchFunction controlSwitchFunction, EventDetectionSettings detectionSettings) Build event detector for control switches.intGetter for adjoint vector dimension.Getter for adjoint vector name.protected doublegetAdjointVelocityNorm(double[] adjointVariables) Computes the Euclidean norm of the adjoint velocity vector.doubleGetter for mass flow rate factor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.control.indirect.adjoint.cost.CartesianCost
getCostDerivativeProvider, getEventDetectors, getHamiltonianContribution, getThrustAccelerationVector, updateAdjointDerivatives
-
Constructor Details
-
AbstractCartesianCost
Constructor.- Parameters:
name- namemassFlowRateFactor- mass flow rate factor
-
-
Method Details
-
getAdjointDimension
public int getAdjointDimension()Getter for adjoint vector dimension.- Specified by:
getAdjointDimensionin interfaceCartesianCost- Returns:
- adjoint dimension
-
getAdjointName
Getter for adjoint vector name.- Specified by:
getAdjointNamein interfaceCartesianCost- Returns:
- name
-
getMassFlowRateFactor
public double getMassFlowRateFactor()Getter for mass flow rate factor. It is negated and multiplied by the thrust force magnitude to obtain the mass time derivative. The fact that it is a constant means that the exhaust speed is assumed to be independent of time.- Specified by:
getMassFlowRateFactorin interfaceCartesianCost- Returns:
- mass flow rate factor
-
getAdjointVelocityNorm
protected double getAdjointVelocityNorm(double[] adjointVariables) Computes the Euclidean norm of the adjoint velocity vector.- Parameters:
adjointVariables- adjoint vector- Returns:
- norm of adjoint velocity
-
buildSwitchDetector
protected EventDetector buildSwitchDetector(ControlSwitchFunction controlSwitchFunction, EventDetectionSettings detectionSettings) Build event detector for control switches.- Parameters:
controlSwitchFunction- switch functiondetectionSettings- event detection settings- Returns:
- event detector
- Since:
- 14.0
-