Class FieldUnboundedCartesianEnergyNeglectingMass<T extends CalculusFieldElement<T>>
java.lang.Object
org.orekit.control.indirect.adjoint.cost.FieldUnboundedCartesianEnergyNeglectingMass<T>
- Type Parameters:
T- field type
- All Implemented Interfaces:
FieldCartesianCost<T>
public class FieldUnboundedCartesianEnergyNeglectingMass<T extends CalculusFieldElement<T>>
extends Object
implements FieldCartesianCost<T>
Class for unbounded energy cost with Cartesian coordinates neglecting the mass consumption.
Under this assumption, the mass is constant and there is no need to consider the corresponding adjoint variable.
Here, the control vector is chosen as the acceleration given by thrusting, expressed in the propagation frame.
This leads to the optimal thrust force being equal to the adjoint velocity vector times the mass.
- Since:
- 13.0
- Author:
- Romain Serra
-
Constructor Summary
ConstructorsConstructorDescriptionFieldUnboundedCartesianEnergyNeglectingMass(String name, Field<T> field) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintGetter for adjoint vector dimension.Getter for adjoint vector name.getFieldHamiltonianContribution(T[] adjointVariables, T mass) Computes the Hamiltonian contribution to the cost function.getFieldThrustAccelerationVector(T[] adjointVariables, T mass) Computes the thrust acceleration vector in propagation frame from the adjoint variables and the mass.Getter for mass flow rate factor.Method returning equivalent in non-Field.voidupdateFieldAdjointDerivatives(T[] adjointVariables, T mass, T[] adjointDerivatives) Update the adjoint derivatives if necessary.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.FieldCartesianCost
getCostDerivativeProvider, getFieldEventDetectors
-
Constructor Details
-
FieldUnboundedCartesianEnergyNeglectingMass
Constructor.- Parameters:
name- namefield- field
-
-
Method Details
-
getAdjointName
Getter for adjoint vector name.- Specified by:
getAdjointNamein interfaceFieldCartesianCost<T extends CalculusFieldElement<T>>- Returns:
- name
-
getAdjointDimension
public int getAdjointDimension()Getter for adjoint vector dimension.- Specified by:
getAdjointDimensionin interfaceFieldCartesianCost<T extends CalculusFieldElement<T>>- Returns:
- adjoint dimension
-
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 interfaceFieldCartesianCost<T extends CalculusFieldElement<T>>- Returns:
- mass flow rate factor
-
getFieldThrustAccelerationVector
Computes the thrust acceleration vector in propagation frame from the adjoint variables and the mass.- Specified by:
getFieldThrustAccelerationVectorin interfaceFieldCartesianCost<T extends CalculusFieldElement<T>>- Parameters:
adjointVariables- adjoint vectormass- mass- Returns:
- thrust vector
-
updateFieldAdjointDerivatives
Update the adjoint derivatives if necessary.- Specified by:
updateFieldAdjointDerivativesin interfaceFieldCartesianCost<T extends CalculusFieldElement<T>>- Parameters:
adjointVariables- adjoint vectormass- massadjointDerivatives- derivatives to update
-
getFieldHamiltonianContribution
Computes the Hamiltonian contribution to the cost function. It equals the Lagrange-form integrand multiplied by -1.- Specified by:
getFieldHamiltonianContributionin interfaceFieldCartesianCost<T extends CalculusFieldElement<T>>- Parameters:
adjointVariables- adjoint vectormass- mass- Returns:
- contribution to Hamiltonian
-
toCartesianCost
Method returning equivalent in non-Field.- Specified by:
toCartesianCostin interfaceFieldCartesianCost<T extends CalculusFieldElement<T>>- Returns:
- cost function for non-Field applications
-