Main Content

fixedWingCoefficient

Define numeric coefficients of fixed-wing aircraft

Since R2021b

    Description

    example

    coefficient = fixedWingCoefficient( ) returns a fixed-wing coefficient object with default properties.

    coefficient = fixedWingCoefficient(statevariables) returns a fixed-wing coefficient object with the specified state variables, statevariables.

    coefficient = fixedWingCoefficient(statevariables,referenceframe) returns a fixed-wing coefficient object with the specified reference frame, referenceframe.

    coefficient = fixedWingCoefficient(statevariables,referenceframe,multiplystatevariables) returns a fixed-wing coefficient object with the specified multiply state variables switch, multiplystatevariables.

    coefficient = fixedWingCoefficient(statevariables,multiplystatevariables,nondimensional) returns a fixed-wing coefficient object with the specified nondimensional switch, nondimensional.

    coefficient = fixedWingCoefficient(___,Name=Value) returns a fixed-wing coefficient object created with one or more Name=Value arguments.

    Examples

    collapse all

    Create a fixed-wing coefficient object.

    coeffs = fixedWingCoefficient( )
     
    coeffs = 
    
      Coefficient with properties:
    
                         Table: [6×1 table]
                        Values: {6×1 cell}
                StateVariables: "Zero"
                   StateOutput: [6×1 string]
                ReferenceFrame: "Wind"
        MultiplyStateVariables: on
                NonDimensional: on
                    Properties: [1×1 Aero.Aircraft.Properties]

    Create a fixed-wing coefficient object in the body frame nondimensional coefficients and nondefault state variables.

    coeffs = fixedWingCoefficient(["U","Alpha"],"body","on","off")
    coeffs = 
    
      Coefficient with properties:
    
                         Table: [6×2 table]
                        Values: {6×2 cell}
                StateVariables: ["U"    "Alpha"]
                   StateOutput: [6×1 string]
                ReferenceFrame: "Body"
        MultiplyStateVariables: on
                NonDimensional: off
                    Properties: [1×1 Aero.Aircraft.Properties]

    Input Arguments

    collapse all

    State variable names, specified as a 1-by-N vector of strings. Each entry in this property corresponds to a column in the Values property. Each entry in StateVariables must be a valid property in the Aero.FixedWing.State object. Adding a state variable adds a column of zeros to the end of the Values cell array.

    Tip

    This argument also exists as the Name=Value argument StateVariables. If you specify the StateVariables Name=Value argument, its value supersedes the statevariables argument.

    Data Types: string

    Reference frame for coefficients, specified as 'Wind' or 'Body' with these outputs.

    Reference FrameCoefficient Output

    Wind

    Forces:

    • drag (CD)

    • Y (CY)

    • lift (CL)

    Moments:

    • L (Cl)

    • M (Cm)

    • N (Cn)

    Body

    Forces:

    • X (CX)

    • Y (CY)

    • Z (CZ)

    Moments:

    • L (Cl)

    • M (Cm)

    • N (Cn)

    Example of 'Wind' table:

    CoefficientState

    CD

    state

    CY

    state

    CL

    state

    Cl

    state

    Cm

    state

    Cn

    state

    Example of 'Body' table:

    CoefficientState

    CX

    state

    CY

    state

    CZ

    state

    Cl

    state

    Cm

    state

    Cn

    state

    Tip

    This argument also exists as the name-value argument ReferenceFrame. If you specify the ReferenceFrame name-value argument, its value supersedes the referenceframe argument.

    Data Types: string

    Option to multiply coefficients by state variables when calculating forces and moments. To multiply coefficients by state variables, set this property to 'on'. Otherwise, set this property to 'off'.

    Tip

    This argument also exists as the name-value argument MultiplyStateVariables. If you specify the MultiplyStateVariables name-value argument, its value supersedes the multiplystatevariables argument.

    Data Types: string

    Option to specify nondimensional coefficients, specified as 'on' or 'off'. To specify nondimensional coefficients, set this property to 'on'. Otherwise, set this property to 'off'.

    Data Types: double

    Name-Value Arguments

    Specify optional pairs of arguments as Name1=Value1,...,NameN=ValueN, where Name is the argument name and Value is the corresponding value. Name-value arguments must appear after other arguments, but the order of the pairs does not matter.

    Before R2021a, use commas to separate each name and value, and enclose Name in quotes.

    Example: 'ReferenceFrame','Body'

    Coefficient values, specified in a 6-by-N table. Each row in the table must be a member of and in the same order as the StateOutput property.

    Setting the Table property also sets the contents of the Values property and StateVariables to the Table property variables. To have a Simulink.LookupTable object and a constant value in the same column, use the setCoefficient function or set the desired content of the Values property. Setting the Table property does not set the ReferenceFrame.

    Note

    Tables must have a single data type per column. If there are both constant values and Simulink.LookupTable objects in a given column, the Table property automatically converts the constants to Simulink.LookupTable objects.

    Data Types: double

    Coefficient values, specified as a 6-by-N cell array. Each entry in the cell array must be a single coefficient value corresponding to the StateOutput (row) and StateVariable (column) properties. Each coefficient value must be a scalar numeric value or a Simulink.LookupTable object. If a value is a Simulink.LookupTable object, the FieldName of each breakpoint must be a valid property of the Aero.FixedWing.State object.

    Note

    Values do need to be a single data type per column.

    Data Types: double

    State variable names, specified as a 1-by-N vector of strings. Each entry in this property corresponds to a column in the Values property. Each entry in StateVariables must be a valid property in the Aero.FixedWing.State object. Adding a state variable adds a column of zeros to the end of the Values cell array.

    Tip

    This argument also exists as the statevariables argument. If you specify the StateVariables name-value argument, its value supersedes the statevariables argument.

    Data Types: char | string

    Reference frame for coefficients, specified as 'Wind' or 'Body with these outputs.

    Reference FrameCoefficient Output

    Wind

    Forces:

    • drag (CD)

    • Y (CY)

    • lift (CL)

    Moments:

    • L (Cl)

    • M (Cm)

    • N (Cn)

    Body

    Forces:

    • X (CX)

    • Y (CY)

    • Z (CZ)

    Moments:

    • L (Cl)

    • M (Cm)

    • N (Cn)

    Example of 'Wind' table:

    CoefficientState

    CD

    state

    CY

    state

    CL

    state

    Cl

    state

    Cm

    state

    Cn

    state

    Example of 'Body' table:

    CoefficientState

    CX

    state

    CY

    state

    CZ

    state

    Cl

    state

    Cm

    state

    Cn

    state

    Tip

    This argument also exists as the referenceframe argument. If you specify the ReferenceFrame name-value argument, its value supersedes the referenceframe argument.

    Data Types: char | string

    Option to multiply coefficients by state variables when calculating forces and moments, specified as 'on' or 'off'. To multiply coefficients by state variables, set this property to 'on'. Otherwise, set this property to 'off'.

    Tip

    This argument also exists as the multiplystatvariables argument. If you specify the MultiplyStateVariables name-value argument, its value supersedes the multiplystatvariables argument.

    Option to specify nondimensional coefficients, specified as 'on' or 'off'. To specify nondimensional coefficients, set this property to 'on'. Otherwise, set this property to 'off'.

    Tip

    This argument also exists as the nondimensional argument. If you specify the NonDimensional name-value argument, its value supersedes the nondimensional argument.

    Aero.Aircraft.Properties object, specified as a scalar.

    Output Arguments

    collapse all

    Fixed-wing aircraft, returned as a scalar.

    Version History

    Introduced in R2021b