Main Content

Mach Number Sensor (G)

Measure Mach number of internal gas flow

Since R2023b

  • Mach Number Sensor (G) block

Libraries:
Simscape / Foundation Library / Gas / Sensors

Description

The Mach Number Sensor (G) block represents an ideal sensor that measures the Mach number of gas flow. The Mach number signifies the ratio of the flow velocity to the local speed of sound, and quantifies the compressibility effects of the gas in the line. The block calculates the Mach number such that

M=m˙ρaA,

where:

  • is the mass flow rate.

  • ρ is the density.

  • a is the local speed of sound.

  • A is the cross-sectional area of the flow path, which you specify with the Area of flow path parameter.

These values depend on the setting of the Gas Properties (G) block. When you align flow from port A to B, the block outputs the Mach number of the flow at port Mach. The block saturates the Mach number at 1. Using this block does not affect the flow.

Ports

Output

expand all

Physical signal output port for the Mach number measurement, unitless.

Conserving

expand all

Gas conserving port associated with the sensor inlet. The positive flow direction is from port A to port B.

Gas conserving port associated with the sensor outlet. The positive flow direction is from port A to port B.

Parameters

expand all

Cross-sectional area of the flow path.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced in R2023b