Class AttitudePhysicalProperties

  • All Implemented Interfaces:
    Section

    public class AttitudePhysicalProperties
    extends CommentsContainer
    Spacecraft physical properties.
    Since:
    12.0
    Author:
    Luc Maisonobe
    • Constructor Detail

      • AttitudePhysicalProperties

        public AttitudePhysicalProperties​(AbsoluteDate epochT0)
        Simple constructor.
        Parameters:
        epochT0 - T0 epoch from file metadata
    • Method Detail

      • validate

        public void validate​(double version)
        Check is all mandatory entries have been initialized.

        This method should throw an exception if some mandatory entries are missing or not compatible with version number.

        Specified by:
        validate in interface Section
        Overrides:
        validate in class CommentsContainer
        Parameters:
        version - format version
      • getDragCoefficient

        public double getDragCoefficient()
        Get the drag coefficient.
        Returns:
        the drag coefficient
      • setDragCoefficient

        public void setDragCoefficient​(double dragCoefficient)
        Set the the drag coefficient.
        Parameters:
        dragCoefficient - the drag coefficient
      • getWetMass

        public double getWetMass()
        Get the total mass at T₀.
        Returns:
        total mass at T₀
      • setWetMass

        public void setWetMass​(double wetMass)
        Set the total mass at T₀.
        Parameters:
        wetMass - total mass at T₀
      • getDryMass

        public double getDryMass()
        Get the mass without propellant.
        Returns:
        mass without propellant
      • setDryMass

        public void setDryMass​(double dryMass)
        Set the mass without propellant.
        Parameters:
        dryMass - mass without propellant
      • getCenterOfPressureReferenceFrame

        public FrameFacade getCenterOfPressureReferenceFrame()
        Get reference frame for center of pressure.
        Returns:
        reference frame for center of pressure
      • setCenterOfPressureReferenceFrame

        public void setCenterOfPressureReferenceFrame​(FrameFacade centerOfPressureReferenceFrame)
        Set reference frame for center of pressure.
        Parameters:
        centerOfPressureReferenceFrame - reference frame for center of pressure
      • getCenterOfPressure

        public Vector3D getCenterOfPressure()
        Get the location of center of pressure.
        Returns:
        location of center of pressure
      • setCenterOfPressure

        public void setCenterOfPressure​(Vector3D centerOfPressure)
        Set the location of center of pressure.
        Parameters:
        centerOfPressure - location of center of pressure
      • getInertiaReferenceFrame

        public FrameFacade getInertiaReferenceFrame()
        Get reference frame for inertia.
        Returns:
        reference frame for inertia
      • setInertiaReferenceFrame

        public void setInertiaReferenceFrame​(FrameFacade inertiaReferenceFrame)
        Set reference frame for inertia.
        Parameters:
        inertiaReferenceFrame - reference frame for inertia
      • getInertiaMatrix

        public RealMatrix getInertiaMatrix()
        Get the inertia matrix.
        Returns:
        the inertia matrix
      • setInertiaMatrixEntry

        public void setInertiaMatrixEntry​(int j,
                                          int k,
                                          double entry)
        Set an entry in the inertia matrix.

        Both I(j, k) and I(k, j) are set.

        Parameters:
        j - row index (must be between 0 and 3 (inclusive)
        k - column index (must be between 0 and 3 (inclusive)
        entry - value of the matrix entry