Class BasicConstantThrustPropulsionModel
- java.lang.Object
-
- org.orekit.forces.maneuvers.propulsion.AbstractConstantThrustPropulsionModel
-
- org.orekit.forces.maneuvers.propulsion.BasicConstantThrustPropulsionModel
-
- All Implemented Interfaces:
PropulsionModel
,ThrustPropulsionModel
public class BasicConstantThrustPropulsionModel extends AbstractConstantThrustPropulsionModel
Constant thrust propulsion model with: - Constant thrust direction in spacecraft frame - Parameter drivers (for estimation) for the thrust norm or the flow rate. Note that both parameters CANNOT be selected at the same time since they depend on one another.- Since:
- 10.2
- Author:
- Maxime Journot
-
-
Field Summary
Fields Modifier and Type Field Description static String
FLOW_RATE
Parameter name for flow rate.static double
FLOW_RATE_SCALE
Flow rate scaling factor.static String
THRUST
Parameter name for thrust.static double
THRUST_SCALE
Thrust scaling factor.
-
Constructor Summary
Constructors Constructor Description BasicConstantThrustPropulsionModel(double thrust, double isp, Vector3D direction, String name)
Simple constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getFlowRate()
Get the flow rate (kg/s).double
getFlowRate(double[] parameters)
Get the flow rate (kg/s).<T extends CalculusFieldElement<T>>
TgetFlowRate(T[] parameters)
Get the flow rate (kg/s).List<ParameterDriver>
getParametersDrivers()
Get the propulsion model parameter drivers.Vector3D
getThrustVector()
Get the thrust vector in spacecraft frame (N).Vector3D
getThrustVector(double[] parameters)
Get the thrust vector in spacecraft frame (N).<T extends CalculusFieldElement<T>>
FieldVector3D<T>getThrustVector(T[] parameters)
Get the thrust vector in spacecraft frame (N).-
Methods inherited from class org.orekit.forces.maneuvers.propulsion.AbstractConstantThrustPropulsionModel
getDirection, getFlowRate, getFlowRate, getFlowRate, getInitialFlowrate, getInitialThrustVector, getIsp, getName, getThrust, getThrustVector, getThrustVector, getThrustVector
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.forces.maneuvers.propulsion.PropulsionModel
init, init
-
Methods inherited from interface org.orekit.forces.maneuvers.propulsion.ThrustPropulsionModel
getAcceleration, getAcceleration, getDirection, getIsp, getMassDerivatives, getMassDerivatives, getThrust
-
-
-
-
Field Detail
-
THRUST
public static final String THRUST
Parameter name for thrust.- See Also:
- Constant Field Values
-
FLOW_RATE
public static final String FLOW_RATE
Parameter name for flow rate.- See Also:
- Constant Field Values
-
THRUST_SCALE
public static final double THRUST_SCALE
Thrust scaling factor.We use a power of 2 to avoid numeric noise introduction in the multiplications/divisions sequences.
-
FLOW_RATE_SCALE
public static final double FLOW_RATE_SCALE
Flow rate scaling factor.We use a power of 2 to avoid numeric noise introduction in the multiplications/divisions sequences.
-
-
Method Detail
-
getThrustVector
public Vector3D getThrustVector()
Get the thrust vector in spacecraft frame (N). Here it does not depend on current S/C state.- Specified by:
getThrustVector
in classAbstractConstantThrustPropulsionModel
- Returns:
- thrust vector in spacecraft frame (N)
-
getFlowRate
public double getFlowRate()
Get the flow rate (kg/s). Here it does not depend on current S/C.- Specified by:
getFlowRate
in classAbstractConstantThrustPropulsionModel
- Returns:
- flow rate (kg/s)
-
getParametersDrivers
public List<ParameterDriver> getParametersDrivers()
Get the propulsion model parameter drivers.- Returns:
- propulsion model parameter drivers
-
getThrustVector
public Vector3D getThrustVector(double[] parameters)
Get the thrust vector in spacecraft frame (N). Here it does not depend on current S/C state.- Specified by:
getThrustVector
in classAbstractConstantThrustPropulsionModel
- Parameters:
parameters
- propulsion model parameters- Returns:
- thrust vector in spacecraft frame (N)
-
getFlowRate
public double getFlowRate(double[] parameters)
Get the flow rate (kg/s). Here it does not depend on current S/C state.- Specified by:
getFlowRate
in classAbstractConstantThrustPropulsionModel
- Parameters:
parameters
- propulsion model parameters- Returns:
- flow rate (kg/s)
-
getThrustVector
public <T extends CalculusFieldElement<T>> FieldVector3D<T> getThrustVector(T[] parameters)
Get the thrust vector in spacecraft frame (N). Here it does not depend on current S/C state.- Specified by:
getThrustVector
in classAbstractConstantThrustPropulsionModel
- Type Parameters:
T
- extends CalculusFieldElement<T>- Parameters:
parameters
- propulsion model parameters- Returns:
- thrust vector in spacecraft frame (N)
-
getFlowRate
public <T extends CalculusFieldElement<T>> T getFlowRate(T[] parameters)
Get the flow rate (kg/s). Here it does not depend on current S/C state.- Specified by:
getFlowRate
in classAbstractConstantThrustPropulsionModel
- Type Parameters:
T
- extends CalculusFieldElement<T>- Parameters:
parameters
- propulsion model parameters- Returns:
- flow rate (kg/s)
-
-