Pressure & Internal Energy Sensor (2P)
Measure pressure and specific internal energy differences
The Pressure & Internal Energy Sensor (2P) block measures pressure and specific internal energy differences between two-phase fluid nodes. Ports A and B identify the nodes between which the measurement is taken.
The measured differences are positive if pressure and specific internal energy are greater at port A than at port B. Connect port B to an Absolute Reference (2P) block to measure absolute values instead—the differences with respect to absolute zero reference points.
The block has two two-phase fluid conserving ports, A and B. Physical signal port P outputs the pressure value. Physical signal port U outputs the specific internal energy value.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Introduced in R2015b