Class AbstractCartesianEnergy

    • Constructor Detail

      • AbstractCartesianEnergy

        protected AbstractCartesianEnergy​(String name,
                                          double massFlowRateFactor)
        Constructor.
        Parameters:
        name - name
        massFlowRateFactor - mass flow rate factor
    • Method Detail

      • 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:
        getMassFlowRateFactor in interface CartesianCost
        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
      • getFieldAdjointVelocityNorm

        protected <T extends CalculusFieldElement<T>> T getFieldAdjointVelocityNorm​(T[] adjointVariables)
        Computes the Euclidean norm of the adjoint velocity vector.
        Type Parameters:
        T - field type
        Parameters:
        adjointVariables - adjoint vector
        Returns:
        norm of adjoint velocity