Main Content

3DOF Acceleration

Compute acceleration of body in three-degrees-of-freedom motion

Since R2025a

  • 3DOF Accelerator block

Libraries:
Aerospace Blockset / Equations of Motion / Acceleration

Description

The 3DOF Acceleration block computes the acceleration of a body in three-degrees-of-freedom motion with respect to body-fixed coordinate frame and inertial (flat Earth) coordinate frame.

To compute the acceleration for equations of motions blocks:

  • Select Output mass properties for acceleration computation.

  • Feed signals from the matching output ports of the associated 3DOF equation of motion block into the associated input ports of 3DOF Acceleration.

Tip

Match all the parameter values for 3DOF Acceleration and the 3DOF equations of motion blocks.

Ports

Input

expand all

Pitch attitude, within ±pi, specified as a scalar, in radians.

Dependencies

To enable this port, set Axes to Body.

Data Types: double

Flight path angle, within ±pi, specified as a scalar, in radians.

Dependencies

To enable this port, set Axes to Wind.

Data Types: double

Pitch angular rate, specified as a scalar, in radians per second.

Data Types: double

Velocity of the body resolved into the wind-fixed coordinate frame, (V, 0), returned as a two-element vector, in the units selected in Units.

Dependencies

To enable this port, set Axes to Wind.

Data Types: double

Velocity of the body resolved into the body-fixed coordinate frame, (u, w), specified as a two-element vector, in the units selected in Units.

Dependencies

To enable this port, set Axes to Body.

Data Types: double

Angle of attack, returned as a scalar, in radians.

Dependencies

To enable this port, set Axes to Wind.

Data Types: double

Gravity, specified as a scalar, in the units selected in Units.

Data Types: double

Fuel tank status, specified as:

  • 1 — Tank is full.

  • 0 — Tank is neither full nor empty.

  • -1 — Tank is empty.

Dependencies

To enable this port, set Mass type to Simple Variable.

Data Types: double

Mass, specified as a scalar, in the units selected in Units.

Data Types: double

Applied force along the body x-axis, specified as a scalar, in the units selected in Units.

Data Types: double

Applied force along the body z-axis, specified as a scalar, in the units selected in Units.

Data Types: double

Rate of change of mass (positive if accreted, negative if ablated), specified as a scalar, in the units selected in Units.

Dependencies

To enable this port:

  • Set Mass type to Simple Variable or Custom Variable.

  • Select Include mass flow relative velocity.

Data Types: double

Inertia tensor, specified as a scalar, in the units selected in Units.

Dependencies

To enable this port, set Mass type to Custom Variable.

Data Types: double

Relative velocity at which mass is accreted to or ablated from the body in body-fixed axes, specified as a two-element vector, in the units selected in Units.

Dependencies

To enable this port:

  • Set Mass type to Simple Variable or Custom Variable.

  • Select Include mass flow relative velocity.

Data Types: double

Output

expand all

Acceleration of the body with respect to the body-fixed coordinate frame, (Ax, Az), returned as a two-element vector, in the units selected in Units.

Data Types: double

Accelerations of the body with respect to the inertial (flat Earth) coordinate frame, returned as a two-element vector, in the units selected in Units. You typically connect this signal to the accelerometer.

Data Types: double

Parameters

expand all

To edit block parameters interactively, use the Property Inspector. From the Simulink® Toolstrip, on the Simulation tab, in the Prepare gallery, select Property Inspector.

Input and output units, specified as Metric (MKS), English (Velocity in ft/s), or English (Velocity in kts).

UnitsForcesMomentAccelerationVelocityPositionMassInertia
Metric (MKS) NewtonNewton-meterMeters per second squaredMeters per secondMetersKilogramKilogram meter squared
English (Velocity in ft/s) PoundFoot-poundFeet per second squaredFeet per secondFeetSlugSlug foot squared
English (Velocity in kts) PoundFoot-poundFeet per second squaredKnotsFeetSlugSlug foot squared

Programmatic Use

Block Parameter: units
Type: character vector
Values: Metric (MKS) | English (Velocity in ft/s) | English (Velocity in kts)
Default: Metric (MKS)

Mass type, specified according to the following table.

Mass TypeDescriptionDefault for
Fixed

Mass is constant throughout the simulation.

Simple Variable

Mass and inertia vary linearly as a function of mass rate.

Custom Variable

Mass and inertia variations are customizable.

Programmatic Use

Block Parameter: mtype
Type: character vector
Values: Fixed | Simple Variable | Custom Variable
Default: 'Fixed'

Body or wind axes, specified as Wind or Body.

Programmatic Use

Block Parameter: axes
Type: character vector
Values: Wind | Body
Default: Body

Version History

Introduced in R2025a