forcesAndMoments
Class: Aero.FixedWing
Namespace: Aero
Calculate forces and moments of fixed-wing aircraft
Syntax
[F,M] = forcesAndMoments(aircraft,state)
[F,M] = forcesAndMoments(aircraft,state,OutputReferenceFrame=outputReference)
Description
Input Arguments
Aero.FixedWing object, specified as a scalar.
Aero.FixedWing.State object, specified as a scalar.
Output reference frame of the forces and moments calculation, specified as:
"Body""Wind""Stability"
Example: OutputReferenceFrame="Stability"
Output Arguments
Forces output in OutputReferenceFrame, returned as a
three-element vector.
Moments output in OutputReferenceFrame, returned as a
three-element vector.
Examples
This example shows to calculate the forces and moments of a Cessna 182.
[C182,CruiseState] = astC182(); [F,M] = forcesAndMoments(C182, CruiseState)
F = 3×1
0.0992
0
0.1024
M = 3×1
0
-125.7803
0
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
Version History
Introduced in R2021a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.
América
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)