Contenido principal

Aero.FixedWing Class

Namespace: Aero

Define fixed-wing aircraft

Description

An object of the Aero.FixedWing class defines a fixed-wing aircraft. Use this object to model and analyze a fixed-wing aircraft. It contains the static data for the aircraft, such as reference values, coefficients, and deflection angles.

To perform static analysis of fixed-wing aircraft, use this object in conjunction with the Aero.FixedWing.State object. The Aero.FixedWing.State object contains the aircraft information at a particular aircraft state.

For more information on fixed-wing aircraft definitions, see More About.

Class Attributes

Sealed
true

For information on class attributes, see Class Attributes.

Creation

Description

fixedWing = Aero.FixedWing creates a single Aero.FixedWing object with default property values.

fixedWing = Aero.FixedWing(N) creates an N-by-N matrix of Aero.FixedWing objects with default property values.

fixedWing = Aero.FixedWing(M,N,P,...) or Aero.FixedWing([M N P ...]) create an M-by-N-by-P-by-... array of Aero.FixedWing objects with default property values.

fixedWing = Aero.FixedWing(size(A)) creates an Aero.FixedWing object that is the same size as A and all Aero.FixedWing objects.

fixedWing = Aero.FixedWing(__,property,propertyValue) creates an array of Aero.FixedWing objects with property, propertyValue pairs applied to each of the Aero.FixedWing array objects. For a list of properties, see Properties.

example

Input Arguments

expand all

Number of fixed-wing objects, specified as a scalar.

Number of fixed-wing objects, specified as a scalar.

Number of fixed-wing objects, specified as a scalar.

Size of fixed-wing object, specified as a scalar.

Properties

expand all

Public Properties

Unit system, specified as a scalar string or character vector.

Attributes:

GetAccess
public
SetAccess
public

Data Types: string | char

Angle system, specified as 'Radians' or 'Degrees'.

Attributes:

GetAccess
public
SetAccess
public

Data Types: string | char

Temperature system, specified as 'Kelvin', 'Celsius', 'Rankine', or 'Fahrenheit'.

Attributes:

GetAccess
public
SetAccess
public

Data Types: string | char

Reference area, specified as a scalar numeric, commonly denoted as 'S', in units of:

UnitsUnitSystem
meters squared (m2) 'Metric'
feet squared (ft2)'English (kts)' or 'English (ft/s)'

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Reference span, specified as a scalar numeric, commonly denoted as 'b', in units of:

UnitsUnitSystem
meters squared (m) 'Metric'
feet squared (ft)'English (kts)' or 'English (ft/s)'

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Reference length, specified as a scalar numeric, commonly denoted as 'c', in units of:

UnitsUnitSystem
meters squared (m) 'Metric'
feet squared (ft)'English (kts)' or 'English (ft/s)'

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Aero.FixedWing.Coefficients class instance, specified as a scalar that contains the coefficients defining the fixed-wing aircraft. This object ignores this property if no value is set.

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Degrees of freedom, specified as a string or character vector.

Degrees of FreedomDescription
'6DOF'

Six degrees of freedom. Describes

translational and rotational movement

in 3-D space.

'3DOF'

Three degrees of freedom. Describes

translational and rotational movement

in 2-D space.

'PM4'

Fourth order point-mass. Describes

translational movement in 2-D space.

'PM6'

Sixth order point-mass. Describes

translational movement in 3-D space.

Attributes:

GetAccess
public
SetAccess
public

Data Types: string | char

Aero.FixedWing.Surface definitions, specified as a vector that contains the definitions of the surfaces on the fixed-wing aircraft. The object ignores this property if no value is set.

Attributes:

GetAccess
public
SetAccess
public

Data Types: double

Aero.FixedWing.Thrust definitions, specified as a vector that contains the definitions of the thrust on the fixed-wing aircraft. The object ignores this property if no value is set.

Attributes:

GetAccess
public
SetAccess
public

Data Types:

Protected Properties

Aspect ratio, specified as a scalar numeric, commonly denoted as 'AR'. This value depends on the values of ReferencedArea and ReferenceSpan, with this equation:

AspectRatio = ReferenceSpan2/ReferencedArea

The object ignores this property if no value is set.

Attributes:

GetAccess
Restricts access
SetAccess
protected

Data Types: double

Methods

expand all

Examples

collapse all

Create and set up dynamic behavior and the current state for an Aero.FixedWing object aircraft.

Create a fixed-wing object.

aircraft = Aero.FixedWing()
aircraft = 
  FixedWing with properties:

        ReferenceArea: 0
        ReferenceSpan: 0
      ReferenceLength: 0
         Coefficients: [1×1 Aero.FixedWing.Coefficient]
     DegreesOfFreedom: "6DOF"
             Surfaces: [1×0 Aero.FixedWing.Surface]
              Thrusts: [1×0 Aero.FixedWing.Thrust]
          AspectRatio: NaN
           Properties: [1×1 Aero.Aircraft.Properties]
           UnitSystem: "Metric"
    TemperatureSystem: "Kelvin"
          AngleSystem: "Radians"

Define the reference area, span, and length. These quantities are used to compute forces and moments from nondimensional coefficients.

aircraft.ReferenceArea = 16;
aircraft.ReferenceSpan = 11;
aircraft.ReferenceLength = 1.5
aircraft = 
  FixedWing with properties:

        ReferenceArea: 16
        ReferenceSpan: 11
      ReferenceLength: 1.5000
         Coefficients: [1×1 Aero.FixedWing.Coefficient]
     DegreesOfFreedom: "6DOF"
             Surfaces: [1×0 Aero.FixedWing.Surface]
              Thrusts: [1×0 Aero.FixedWing.Thrust]
          AspectRatio: 7.5625
           Properties: [1×1 Aero.Aircraft.Properties]
           UnitSystem: "Metric"
    TemperatureSystem: "Kelvin"
          AngleSystem: "Radians"

To define the aircraft dynamic behavior, set lift and drag coefficients.

aircraft = setCoefficient(aircraft, ["CD", "CD", "CL", "CL"], ["Zero", "Alpha", "Zero", "Alpha"], [0.027, 0.121, 0.307, 4.41])
aircraft = 
  FixedWing with properties:

        ReferenceArea: 16
        ReferenceSpan: 11
      ReferenceLength: 1.5000
         Coefficients: [1×1 Aero.FixedWing.Coefficient]
     DegreesOfFreedom: "6DOF"
             Surfaces: [1×0 Aero.FixedWing.Surface]
              Thrusts: [1×0 Aero.FixedWing.Thrust]
          AspectRatio: 7.5625
           Properties: [1×1 Aero.Aircraft.Properties]
           UnitSystem: "Metric"
    TemperatureSystem: "Kelvin"
          AngleSystem: "Radians"

Define the current state of the aircraft.

state = Aero.FixedWing.State(...
  "Mass", 1400,...
  "Airspeed", 67,...
  "AltitudeMSL",2000)
state = 
  State with properties:

                     Mass: 1400
                  Inertia: [3×3 table]
          CenterOfGravity: [0 0 0]
         CenterOfPressure: [0 0 0]
              AltitudeMSL: 2000
             GroundHeight: 0
                       XN: 0
                       XE: 0
                       XD: -2000
                        U: 67
                        V: 0
                        W: 0
                 Airspeed: 67
                      Phi: 0
                    Theta: 0
                      Psi: 0
                        P: 0
                        Q: 0
                        R: 0
                    Alpha: 0
                     Beta: 0
                 AlphaDot: 0
                  BetaDot: 0
                   Weight: 13734
              AltitudeAGL: 2000
              GroundSpeed: 67
               MachNumber: 0.1969
             BodyVelocity: [67 0 0]
           GroundVelocity: [67 0 0]
                       Ug: 67
                       Vg: 0
                       Wg: 0
          FlightPathAngle: 0
              CourseAngle: 0
     InertialToBodyMatrix: [3×3 double]
     BodyToInertialMatrix: [3×3 double]
         BodyToWindMatrix: [3×3 double]
         WindToBodyMatrix: [3×3 double]
    BodyToStabilityMatrix: [3×3 double]
    StabilityToBodyMatrix: [3×3 double]
          DynamicPressure: 2.7495e+03
              Environment: [1×1 Aero.Aircraft.Environment]
            ControlStates: [1×0 Aero.Aircraft.ControlState]
         OutOfRangeAction: "Limit"
         DiagnosticAction: "Warning"
               Properties: [1×1 Aero.Aircraft.Properties]
               UnitSystem: "Metric"
        TemperatureSystem: "Kelvin"
              AngleSystem: "Radians"

Calculate the forces and moments on the aircraft.

[F, M] = forcesAndMoments(aircraft, state)
F = 3×1
103 ×

   -1.1878
         0
    0.2284

M = 3×1

     0
     0
     0

Limitations

You cannot subclass Aero.FixedWing.

More About

expand all

Version History

Introduced in R2021a