Main Content

Humidity & Trace Gas Sensor (MA)

Measure humidity and trace gas levels in moist air network

  • Library:
  • Simscape / Foundation Library / Moist Air / Sensors

  • Humidity & Trace Gas Sensor (MA) block

Description

The Humidity & Trace Gas Sensor (MA) block measures the amount of moisture and trace gas in a moist air network. There is no mass or energy flow through the sensor.

The physical signal ports W and G report the moisture level and trace gas level, respectively, measured at port A. Connect these ports to PS-Simulink Converter blocks to transform the output physical signals into Simulink® signals, for example, for plotting or additional data processing.

The sensor measurements correspond to the moisture and trace gas level upstream of the measured node. For example, if port A of the Humidity & Trace Gas Sensor (MA) is connected to a node between pipe 1 and pipe 2 and the moist air flows from pipe 1 to pipe 2, then the moisture and trace gas level measured at port A are those of the moist air volume in pipe 1. If the air flow then switches direction and flows from pipe 2 to pipe 1, then the moisture and trace gas level measured at port A are those of the moist air volume in pipe 2. If the moisture and trace gas levels of the two moist air volumes are different, then the measured values change when the flow direction switches. If there are two or more upstream flow paths merging at the node, then the moisture and trace gas level measurement at the node represents the weighted average based on the ideal mixing of the merging flow.

Ports

Output

expand all

Physical signal output port for moisture level measurement. To select the quantity you want to measure, use the Measured moisture specification parameter.

Physical signal output port for trace gas level measurement. To select the quantity you want to measure, use the Measured trace gas specification parameter.

Conserving

expand all

Moist air conserving port. Connect this port to the node in the moist air network where you want to measure the moisture and trace gas level.

Parameters

expand all

Select the property to measure:

  • Relative humidity ― Physical signal port W reports the relative humidity.

  • Specific humidity ― Physical signal port W reports the specific humidity.

  • Mole fraction ― Physical signal port W reports the water vapor mole fraction.

  • Humidity ratio ― Physical signal port W reports the humidity ratio.

Select the property to measure:

  • Mass fraction ― Physical signal port G reports the trace gas mass fraction.

  • Mole fraction ― Physical signal port G reports the trace gas mole fraction.

Extended Capabilities

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

Introduced in R2018a