Contenido principal

Saturation Properties Sensor (2P)

R2026b

Measure liquid and vapor saturation properties in two-phase fluids

  • Saturation Properties Sensor (2P) block

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

Description

The Saturation Properties Sensor (2P) block represents an ideal sensor that lets you measure these liquid and vapor saturation properties in a two-phase fluid network:

  • Saturated temperature, specific volume, internal energy, or enthalpy, based on the pressure measurement

  • Saturated pressure based on the temperature measurement

The block measures these properties at the node connected to port A. There is no mass or energy flow through the sensor.

By default, only the output ports that measure the saturated liquid and vapor temperatures, TL and TV, are visible on the block icon. Use the block parameters to control visibility of output ports for the other measurements.

Ports

Output

expand all

Physical signal output port that measures the saturated liquid temperature based on the pressure at port A.

Dependencies

To enable this port, select the Saturated temperature measurement check box.

Programmatic Use

Port: T_sat_liq

Physical signal output port that measures the saturated vapor temperature based on the pressure at port A.

Dependencies

To enable this port, select the Saturated temperature measurement check box.

Programmatic Use

Port: T_sat_vap

Physical signal output port that measures the saturated liquid pressure based on the temperature at port A.

Dependencies

To enable this port, select the Saturated pressure measurement check box.

Programmatic Use

Port: p_sat_liq

Physical signal output port that measures the saturated vapor pressure based on the temperature at port A.

Dependencies

To enable this port, select the Saturated pressure measurement check box.

Programmatic Use

Port: p_sat_vap

Physical signal output port that measures the saturated liquid specific internal energy based on the pressure at port A.

Dependencies

To enable this port, set the Energy measurement parameter to Saturated specific internal energy.

Programmatic Use

Port: u_sat_liq

Physical signal output port that measures the saturated vapor specific internal energy based on the pressure at port A.

Dependencies

To enable this port, set the Energy measurement parameter to Saturated specific internal energy.

Programmatic Use

Port: u_sat_vap

Physical signal output port that measures the saturated liquid specific enthalpy based on the pressure at port A.

Dependencies

To enable this port, set the Energy measurement parameter to Saturated specific enthalpy.

Programmatic Use

Port: h_sat_liq

Physical signal output port that measures the saturated vapor specific enthalpy based on the pressure at port A.

Dependencies

To enable this port, set the Energy measurement parameter to Saturated specific enthalpy.

Programmatic Use

Port: h_sat_vap

Physical signal output port that measures the saturated liquid specific volume based on the pressure at port A.

Dependencies

To enable this port, set the Density measurement parameter to Saturated specific volume.

Programmatic Use

Port: v_sat_liq

Physical signal output port that measures the saturated vapor specific volume based on the pressure at port A.

Dependencies

To enable this port, set the Density measurement parameter to Saturated specific volume.

Programmatic Use

Port: v_sat_vap

Physical signal output port that measures the saturated liquid density based on the pressure at port A.

Dependencies

To enable this port, set the Density measurement parameter to Saturated density.

Programmatic Use

Port: rho_sat_liq

Physical signal output port that measures the saturated vapor density based on the pressure at port A.

Dependencies

To enable this port, set the Density measurement parameter to Saturated density.

Programmatic Use

Port: rho_sat_vap

Conserving

expand all

Two-phase fluid conserving port associated with the sensor inlet. Connect this port to the node in the two-phase fluid network for which you want to measure liquid and vapor saturation properties.

Programmatic Use

Port: A

Parameters

expand all

Selecting this check box exposes output ports TL and TV, which measure the saturated liquid and vapor temperature, respectively, based on the pressure at port A.

Programmatic Use

Parameter: temperature_measure
Values: "true" | "false"

Selecting this check box enables the Saturated pressure beyond min and max pressure parameter and exposes output ports PL and PV, which measure the saturated liquid and vapor pressure, respectively, based on the temperature at port A.

Programmatic Use

Parameter: pressure_measure
Values: "true" | "false"

When either of the saturated pressures is below the minimum pressure or above the maximum pressure specified in the fluid properties, then the saturated pressure value is based on extrapolated values of the temperature tables, rather than the interpolation within the table. Choose your reporting preference for when the saturated pressure is out of bounds:

  • Error — Simulation stops with an error.

  • Warn — The block issues a warning.

  • None — The block does not issue an assertion.

Dependencies

To enable this parameter, set Saturated pressure measurement to On.

Programmatic Use

Parameter: pressure_check
Values: "simscape.enum.assert.action.error" | "simscape.enum.assert.action.warn" | "simscape.enum.assert.action.none"

Setting this parameter to:

  • Saturated specific internal energy — Exposes output ports UL and UV, which measure the saturated specific internal energy of liquid and vapor, respectively, based on the pressure at port A.

  • Saturated specific enthalpy — Exposes output ports HL and HV, which measure the saturated specific enthalpy of liquid and vapor, respectively, based on the pressure at port A.

Programmatic Use

Parameter: energy_measure
Values: "foundation.enum.EnergyMeasurement.Off" | "foundation.enum.EnergyMeasurement.SaturatedInternalEnergy" | "foundation.enum.EnergyMeasurement.SaturatedEnthalpy"

Setting this parameter to:

  • Saturated specific volume — Exposes output ports VL and VV, which measure the saturated specific volume of liquid and vapor, respectively, based on the pressure at port A.

  • Saturated density — Exposes output ports rhoL and rhoV, which measure the saturated density of liquid and vapor, respectively, based on the pressure at port A.

Programmatic Use

Parameter: density_measure
Values: "foundation.enum.DensityMeasurement.Off" | "foundation.enum.DensityMeasurement.SaturatedSpecificVolume" | "foundation.enum.DensityMeasurement.SaturatedDensity"

Extended Capabilities

expand all

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

Version History

Introduced in R2021a

expand all