Main Content

Pressure, Temperature & Internal Energy Sensor (2P)

Measure pressure, temperature, and specific internal energy in two-phase fluid networks

  • Pressure, Temperature & Internal Energy Sensor (2P) block

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

Description

The Pressure, Temperature & Internal Energy Sensor (2P) block represents an ideal sensor that measures pressure, temperature, and specific internal energy in a two-phase fluid network. There is no mass or energy flow through the sensor.

The sensor contains an implicit reference node, which means that you need only one port, port A, to make absolute measurements of pressure or temperature. Expose the second port, port B, only if you need to measure the difference in pressure or temperature between two nodes in the model. The measurements are positive when the values at port A are greater than the values at port B.

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

  • Port Pa outputs the absolute pressure.

  • Port Pg outputs the gauge pressure.

  • Port P outputs the pressure difference across the sensor.

  • Port T outputs the temperature.

  • Port U outputs the specific internal energy.

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 absolute pressure measurement.

Dependencies

To enable this port, set the Measurement reference parameter to Absolute, select the Pressure check box, and set the Pressure type parameter to Absolute pressure.

Physical signal output port for gauge pressure measurement.

Dependencies

To enable this port, set the Measurement reference parameter to Absolute, select the Pressure check box, and set the Pressure type parameter to Gauge pressure.

Physical signal output port for pressure difference measurement.

Dependencies

To enable this port, set the Measurement reference parameter to Difference and select the Pressure check box.

Physical signal output port for temperature measurement.

Dependencies

To enable this port, select the Temperature check box.

Physical signal output port for specific internal energy measurement.

Dependencies

To enable this port, select the Internal energy check box.

Conserving

expand all

Two-phase fluid conserving port. Use this port to measure absolute pressure, temperature, and specific internal energy.

Two-phase fluid conserving port. When the sensor performs absolute measurements, this port is hidden because the sensor contains an implicit reference node. Enable this port to measure relative pressure, temperature, or specific internal energy between two nodes in the model. The measurements are positive when the values at port A are greater than the values at port B.

Dependencies

To enable this port, set the Measurement reference parameter to Difference.

Parameters

expand all

Select between absolute and relative measurements:

  • Absolute — The sensor measures pressure and temperature at port A. The sensor contains an implicit reference node, which means that you need only one port to make absolute measurements.

  • Difference — The sensor measures the difference in pressure or temperature between two nodes in the model. Selecting this option exposes port B on the block icon.

Selecting this check box exposes the output port Pa, Pg, or P, to let you measure pressure.

Select whether the sensor measures absolute or gauge pressure:

  • Absolute pressure — The sensor measures absolute pressure at port A. Selecting this option exposes port Pa on the block icon.

  • Gauge pressure — The sensor measures gauge pressure at port A. Selecting this option exposes port Pg on the block icon.

Dependencies

To enable this parameter, set Measurement reference to Absolute and select the Pressure check box.

Selecting this check box exposes the output port T, which lets you measure temperature.

Extended Capabilities

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

Version History

Introduced in R2015b

expand all