Main Content

Flow Rate Sensor (2P)

Measure mass, energy, and volumetric flow rates in two-phase fluid networks

Since R2023a

  • Flow Rate Sensor (2P) block

Libraries:
Simscape / Foundation Library / Two-Phase Fluid / Sensors

Description

The Flow Rate Sensor (2P) block represents an ideal sensor that measures mass flow rate, energy flow rate, and volumetric flow rate in a two-phase fluid network. There is no change in pressure or temperature across the sensor.

Because the flow rates are Through variables, the block must connect in series with the component being measured.

The relative orientation of ports A and B establishes the measurement sign. The sign is positive if flow occurs from port A to port B. Switching port connections reverses the measurement sign.

Three physical signal ports are available to output the measurement data:

  • Port M outputs the mass flow rate.

  • Port V outputs the volumetric flow rate.

  • Port φ outputs the energy flow rate.

These ports have conditional port visibility on the block icon. Use the block parameters to expose only the ports that you need for measurements in a particular model.

Connect the measurement ports to PS-Simulink Converter blocks to transform the output physical signals into Simulink® signals, for example, for plotting or additional data processing.

Ports

Output

expand all

Physical signal output port for mass flow rate measurement.

Dependencies

To enable this port, select the Mass flow rate check box.

Physical signal output port for the volumetric flow rate measurement.

Dependencies

To enable this port, select the Volumetric flow rate check box.

Physical signal output port for energy flow rate measurement.

Dependencies

To enable this port, select the Energy flow rate check box.

Conserving

expand all

Two-phase fluid conserving port. Flow rates are positive if fluid flows from port A to port B.

Two-phase fluid conserving port. Flow rates are positive if fluid flows from port A to port B.

Parameters

expand all

Selecting this check box exposes the output port M, which lets you measure mass flow rate.

Selecting this check box exposes the output port V, which lets you measure volumetric flow rate.

Selecting this check box exposes the output port φ, which lets you measure energy flow rate.

Extended Capabilities

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

Version History

Introduced in R2023a

expand all