Class PythonThrustPropulsionModel

    • Field Detail

      • pythonObject

        protected long pythonObject
        Part of JCC Python interface to object
    • Constructor Detail

      • PythonThrustPropulsionModel

        public PythonThrustPropulsionModel()
    • Method Detail

      • pythonExtension

        public void pythonExtension​(long pythonObject)
      • pythonExtension

        public long pythonExtension()
      • pythonDecRef

        public void pythonDecRef()
      • init

        public void init​(SpacecraftState initialState,
                         AbsoluteDate target)
        Initialization method. Called in when Maneuver.init(...) is called (from ForceModel.init(...))
        Specified by:
        init in interface PropulsionModel
        Parameters:
        initialState - initial spacecraft state (at the start of propagation).
        target - date of propagation. Not equal to initialState.getDate().
      • getThrustVector

        public Vector3D getThrustVector​(SpacecraftState s,
                                        double[] parameters)
        Get the thrust vector in spacecraft frame (N).
        Specified by:
        getThrustVector in interface ThrustPropulsionModel
        Parameters:
        s - current spacecraft state
        parameters - propulsion model parameters
        Returns:
        thrust vector in spacecraft frame (N)
      • getFlowRate

        public double getFlowRate​(SpacecraftState s,
                                  double[] parameters)
        Get the flow rate (kg/s).
        Specified by:
        getFlowRate in interface ThrustPropulsionModel
        Parameters:
        s - current spacecraft state
        parameters - propulsion model parameters
        Returns:
        flow rate (kg/s)
      • getFlowRate

        public <T extends CalculusFieldElement<T>> T getFlowRate​(FieldSpacecraftState<T> s,
                                                                 T[] parameters)
        Get the flow rate (kg/s).
        Specified by:
        getFlowRate in interface ThrustPropulsionModel
        Type Parameters:
        T - extends CalculusFieldElement<T>
        Parameters:
        s - current spacecraft state
        parameters - propulsion model parameters
        Returns:
        flow rate (kg/s)