Main Content

Controlled Reservoir (2P)

Two-phase fluid reservoir at variable pressure and temperature

  • Library:
  • Simscape / Foundation Library / Two-Phase Fluid / Elements

  • Controlled Reservoir (2P) block

Description

The Reservoir (2P) block sets boundary conditions in a two-phase fluid network. The reservoir is assumed infinite in size.

Port A represents the reservoir inlet. The flow resistance between port A and the reservoir interior is assumed negligible. The pressure at port A is therefore equal to the pressure inside the reservoir.

The specific enthalpy and specific internal energy at the reservoir inlet depend on the direction of flow. Fluid leaves the reservoir at the reservoir pressure and specific internal energy. Fluid enters the reservoir at the reservoir pressure, but the specific internal energy is determined by the two-phase fluid network upstream.

The block provides independent selection of pressure specification and energy specification, by using the Reservoir pressure specification and Reservoir energy specification parameters. Depending on the selected options, the block exposes the relevant input ports to provide the control signals for the selected quantities.

For certain option combinations, the pressure inside the reservoir must be less than the critical pressure because the saturation curves are not defined above the critical point. If you select such a combination, the Reservoir pressure above critical parameter lets you decide what happens when the fluid pressure exceeds the critical pressure.

This block also serves as a reference connection for the Pressure & Internal Energy Sensor (2P) block. In this case, the measured pressure and specific internal energy are relative to the reservoir pressure and specific internal energy.

Ports

Input

expand all

Physical signal port that provides the reservoir pressure control signal.

Dependencies

To enable this port, set Reservoir pressure specification to Specified pressure.

Physical signal port that provides the reservoir condensing temperature control signal.

Dependencies

To enable this port, set Reservoir pressure specification to Saturation pressure at specified condensing temperature.

Physical signal port that provides the reservoir evaporating temperature control signal.

Dependencies

To enable this port, set Reservoir pressure specification to Saturation pressure at specified evaporating temperature.

Physical signal port that provides either the subcooled liquid temperature or the superheated vapor temperature control signal, based on the Reservoir energy specification parameter setting.

Dependencies

To enable this port, set Reservoir energy specification to either Subcooled liquid temperature or Superheated vapor temperature.

Physical signal port that specifies the mass fraction of vapor in the reservoir.

Dependencies

To enable this port, set Reservoir energy specification to Vapor quality.

Physical signal port that specifies the volume fraction of vapor in the reservoir.

Dependencies

To enable this port, set Reservoir energy specification to Vapor void fraction.

Physical signal port that specifies the specific enthalpy of the fluid in the reservoir.

Dependencies

To enable this port, set Reservoir energy specification to Specific enthalpy.

Physical signal port that specifies the specific internal energy of the fluid in the reservoir.

Dependencies

To enable this port, set Reservoir energy specification to Specific internal energy.

Physical signal port that specifies the degree of subcooling of the fluid in the reservoir, that is, the difference between the liquid saturation temperature and the fluid temperature.

This input signal specifies a temperature difference, in units of deltaK, rather than an absolute temperature. Therefore, if you connect a Simulink-PS Converter block directly to this port, do not select the Apply affine conversion check box.

Dependencies

To enable this port, set Reservoir energy specification to Degree of subcooling.

Physical signal port that specifies the degree of superheating of the fluid in the reservoir, that is, the difference between the fluid temperature and the vapor saturation temperature.

This input signal specifies a temperature difference, in units of deltaK, rather than an absolute temperature. Therefore, if you connect a Simulink-PS Converter block directly to this port, do not select the Apply affine conversion check box.

Dependencies

To enable this port, set Reservoir energy specification to Degree of superheating.

Conserving

expand all

Two-phase fluid conserving port associated with the reservoir inlet.

Parameters

expand all

Specification method for the reservoir pressure:

  • Specified pressure — Specify a value by using the control signal at port P.

  • Saturation pressure at specified condensing temperature — Use the pressure along the liquid saturation curve that corresponds to the temperature specified by the control signal at port Tc. When you select this option, the block limits the pressure to be less than or equal to critical pressure.

  • Saturation pressure at specified evaporating temperature — Use the pressure along the vapor saturation curve that corresponds to the temperature specified by the control signal at port Te. When you select this option, the block limits the pressure to be less than or equal to critical pressure.

Thermodynamic variable to use for energy specification:

  • Subcooled liquid temperature — Specify the subcooled liquid temperature inside the reservoir by using the control signal at port T. When you select this option, the block limits the pressure to be less than or equal to critical pressure. The block also limits the input at port T to the range between the minimum temperature and the liquid saturation temperature, to avoid the discontinuity in the corresponding specific internal energy or specific enthalpy when the input temperature varies across the saturation temperature.

  • Superheated vapor temperature — Specify the superheated vapor temperature inside the reservoir by using the control signal at port T. When you select this option, the block limits the pressure to be less than or equal to critical pressure. The block also limits the input at port T to the range between the vapor saturation temperature and the maximum temperature, to avoid the discontinuity in the corresponding specific internal energy or specific enthalpy when the input temperature varies across the saturation temperature.

  • Vapor quality — Specify the mass fraction of vapor in the reservoir by using the control signal at port X. When you select this option, the block limits the pressure to be less than or equal to critical pressure.

  • Vapor void fraction — Specify the volume fraction of vapor in the reservoir by using the control signal at port a. When you select this option, the block limits the pressure to be less than or equal to critical pressure.

  • Specific enthalpy — Specify the specific enthalpy of the fluid in the reservoir by using the control signal at port H.

  • Specific internal energy — Specify the specific internal energy of the fluid in the reservoir by using the control signal at port U.

  • Degree of subcooling — Specify the degree of subcooling of the fluid in the reservoir by using the control signal at port SC. The degree of subcooling is the difference between the liquid saturation temperature and the fluid temperature. When you select this option, the block limits the pressure to be less than or equal to critical pressure.

  • Degree of superheating — Specify the degree of superheating of the fluid in the reservoir by using the control signal at port SH. The degree of superheating is the difference between the fluid temperature and the vapor saturation temperature. When you select this option, the block limits the pressure to be less than or equal to critical pressure.

Flow area of the reservoir inlet, represented by port A.

Define action for when reservoir pressure exceeds critical pressure:

  • Warn and limit to critical pressure — The block issues a warning and limits the pressure to critical pressure.

  • Limit to critical pressure — The block limits the pressure to critical pressure, but the simulation continues without a warning.

  • Error — Simulation stops with an error.

Dependencies

This parameter is automatically exposed when you select a combination of pressure specification and energy specification options that requires the pressure inside the reservoir to be less than the critical pressure.

Extended Capabilities

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

Introduced in R2015b