Class PythonAtmosphere

    • Constructor Detail

      • PythonAtmosphere

        public PythonAtmosphere()
    • Method Detail

      • pythonExtension

        public void pythonExtension​(long pythonObject)
        Part of JCC Python interface to object
      • pythonExtension

        public long pythonExtension()
        Part of JCC Python interface to object
      • pythonDecRef

        public void pythonDecRef()
        Part of JCC Python interface to object
      • getFrame

        public Frame getFrame()
        Get the frame of the central body.
        Specified by:
        getFrame in interface Atmosphere
        Returns:
        frame of the central body.
      • getDensity

        public double getDensity​(AbsoluteDate date,
                                 Vector3D position,
                                 Frame frame)
        Get the local density.
        Specified by:
        getDensity in interface Atmosphere
        Parameters:
        date - current date
        position - current position in frame
        frame - the frame in which is defined the position
        Returns:
        local density (kg/m³)
      • getDensity

        public <T extends CalculusFieldElement<T>> T getDensity​(FieldAbsoluteDate<T> date,
                                                                FieldVector3D<T> position,
                                                                Frame frame)
        Get the local density.
        Specified by:
        getDensity in interface Atmosphere
        Type Parameters:
        T - instance of CalculusFieldElement
        Parameters:
        date - current date
        position - current position in frame
        frame - the frame in which is defined the position
        Returns:
        local density (kg/m³)
      • getVelocity

        public Vector3D getVelocity​(AbsoluteDate date,
                                    Vector3D position,
                                    Frame frame)
        Get the inertial velocity of atmosphere molecules.

        By default, atmosphere is supposed to have a null velocity in the central body frame.

        Specified by:
        getVelocity in interface Atmosphere
        Parameters:
        date - current date
        position - current position in frame
        frame - the frame in which is defined the position
        Returns:
        velocity (m/s) (defined in the same frame as the position)
      • getVelocity

        public <T extends CalculusFieldElement<T>> FieldVector3D<T> getVelocity​(FieldAbsoluteDate<T> date,
                                                                                FieldVector3D<T> position,
                                                                                Frame frame)
        Get the inertial velocity of atmosphere molecules.
        Specified by:
        getVelocity in interface Atmosphere
        Type Parameters:
        T - instance of CalculusFieldElement
        Parameters:
        date - current date
        position - current position in frame
        frame - the frame in which is defined the position
        Returns:
        velocity (m/s) (defined in the same frame as the position)