Thermodynamic Properties Sensor (2P)
R2026bMeasure temperature, density, specific enthalpy, specific entropy, and specific volume in two-phase fluid networks
Libraries:
Simscape /
Foundation Library /
Two-Phase Fluid /
Sensors
Description
The Thermodynamic Properties Sensor (2P) block represents an ideal sensor that measures temperature, density, specific enthalpy, specific entropy, and specific volume in a two-phase fluid network. There is no mass or energy flow through the sensor.
The block measures these thermodynamic properties at the node connected to port A. All measurements are taken with respect to absolute zero.
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/Thermodynamic Properties Sensor (2P)"
Example: add_block("fl_lib/Two-Phase Fluid/Sensors/Thermodynamic Properties 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.

