Pressure, Temperature & Internal Energy Sensor (2P)
R2026bMeasure pressure, temperature, and specific internal energy in two-phase fluid networks
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.
Examples
Ports
Output
Conserving
Parameters
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"fl_lib/Two-Phase Fluid/Sensors/Pressure, Temperature & Internal Energy Sensor (2P)"
Example: add_block("fl_lib/Two-Phase Fluid/Sensors/Pressure, Temperature & Internal Energy Sensor (2P)","myModel/myBlock",MakeNameUnique="on")
For information about programmatic access to individual block parameters, see the Programmatic Use section of parameter descriptions on this page.

