Controlled Reservoir (MA)

Boundary conditions for moist air network at time-varying pressure, temperature, moisture, and trace gas levels

  • Library:
  • Simscape / Foundation Library / Moist Air / Elements

Description

The Controlled Reservoir (MA) block sets controlled boundary conditions in a moist air network. The volume of moist air inside the reservoir is assumed infinite. Therefore, the flow is assumed quasi-steady. Moist air leaves the reservoir at the reservoir pressure, temperature, specific humidity, and trace gas mass fraction. Moist air enters the reservoir at the reservoir pressure, but the temperature, specific humidity, and trace gas mass fraction are determined by the moist air network upstream.

You specify the reservoir pressure, temperature, amount of moisture, and amount of trace gas by control physical signals at ports P, T, W, and G, respectively. The inputs are limited by their valid ranges. For pressure and temperature, the valid range is between the minimum and maximum values specified in the Moist Air Properties (MA) block connected to the circuit. For the amount of moisture, the valid range is between zero and either saturation or 100 percent water vapor. For the amount of trace gas, the valid range is between zero and either the fraction left over after water vapor or 100 percent trace gas. The input G is ignored if Trace gas model in the Moist Air Properties (MA) block is set to None.

You can specify moisture as one of:

  • Relative humidity, φw

  • Specific humidity, xw

  • Water vapor mole fraction, yw

  • Humidity ratio, rw

You can specify trace gas as one of:

  • Trace gas mass fraction, xg

  • Trace gas mole fraction, yg

These moisture and trace gas quantities are related to each other as follows:

φw=ywppwsyw=xwRwRrw=xw1xwyg=xgRgRxa+xw+xg=1R=xaRa+xwRw+xgRg

where:

  • p is pressure.

  • R is specific gas constant.

Subscripts a, w, and g indicate the properties of dry air, water vapor, and trace gas, respectively. Subscript ws indicates water vapor at saturation.

Ports

Input

expand all

Physical signal port that provides the reservoir pressure control signal.

Physical signal port that provides the reservoir temperature control signal.

Physical signal port that controls the reservoir moisture level. To select the quantity that the control signal represents, use the Reservoir moisture specification parameter.

Physical signal port that controls the reservoir trace gas level. To select the quantity that the control signal represents, use the Reservoir trace gas specification parameter.

Conserving

expand all

Moist air conserving port associated with the reservoir inlet.

Parameters

expand all

Select a moisture property:

  • Relative humidity ― Physical signal at port W specifies the relative humidity.

  • Specific humidity ― Physical signal at port W specifies the specific humidity.

  • Mole fraction ― Physical signal at port W specifies the water vapor mole fraction.

  • Humidity ratio ― Physical signal at port W specifies the humidity ratio.

Select a trace gas property:

  • Mass fraction ― Physical signal at port G specifies the trace gas mass fraction.

  • Mole fraction ― Physical signal at port G specifies the trace gas mole fraction.

Relative humidity above which condensation occurs. Amount of moisture in the reservoir must be less than saturation.

The cross-sectional area of the reservoir inlet.

Select what happens when the input signal values are outside of valid range:

  • Limit to valid values ― The block uses the minimum or maximum valid values, but does not issue a warning.

  • Warn and limit to valid values ― The block issues a warning and uses the corresponding minimum or maximum valid values.

  • Error ― Simulation stops with an error.

Extended Capabilities

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

Introduced in R2018a