メインコンテンツ

Reservoir (G)

R2026b

Boundary conditions for gas network at constant or time-varying pressure and temperature

  • Reservoir (G) block

Libraries:
Simscape / Foundation Library / Gas / Elements

Description

The Reservoir (G) block sets boundary conditions in a gas network. Port A, a gas conserving port, represents the reservoir inlet.

The volume of gas inside the reservoir is assumed infinite. Therefore, the flow is assumed quasi-steady.

Gas enters and leaves the reservoir at reservoir pressure, but its temperature is determined by the direction of gas flow. If the gas flows out of the reservoir, its temperature equals the reservoir temperature. The reservoir acts as a heat source. If the gas flows into the reservoir, its temperature is determined by the gas network upstream. The reservoir acts as a heat sink.

You specify the reservoir pressure and temperature with block parameter values or physical signals. The block provides a choice of two modeling options:

  • Static pressure and static temperature — To simplify the calculations, the block assumes that there is no difference between the pressure and temperature of gas inside the reservoir and at the exit port. This assumption is valid for applications with low-speed compressible flow, such as HVAC systems. You can also use it to simulate a portion of a system based on measured pressure and temperature at the boundary, that is, on the static pressure and static temperature.

  • Total pressure and total temperature —This option assumes that the gas starts at rest and speeds up toward the exit port, which results in a reduction in pressure and temperature at the port. Use this modeling option for applications with high-speed compressible flows, such as aerospace, or for fluid dynamics analysis.

    Total pressure and total temperature are the pressure and temperature of gas at rest inside the reservoir. These quantities are also sometimes called stagnation pressure and temperature. They are related to the pressure and temperature at the reservoir port A by these equations

    h(ptotal,Ttotal)=h(pA,ToutA)+[min(m˙A,0)]22[ρ(pA,ToutA)SA]2s(ptotal,Ttotal)=s(pA,ToutA)

    where:

    • ptotal is the total, or stagnation, pressure.

    • Ttotal is the total, or stagnation, temperature.

    • pA is the pressure at the reservoir port.

    • ToutA is the temperature at the reservoir port as the gas flows out of reservoir. If the gas flows into the reservoir, its temperature is determined by the gas network upstream.

    • h is the specific enthalpy.

    • s is the specific entropy.

    • m˙A is the mass flow rate of gas through the reservoir port. When the gas leaves the reservoir, m˙A is negative. The min term in the specific enthalpy equation assumes a value corresponding to the mass flow rate of gas when the gas leaves the reservoir. When the gas enters the reservoir, this term is 0.

    • ρ is density.

    • SA is the cross-sectional area at the reservoir port.

This block also functions as a reference point for pressure and temperature measurements in a gas network. These measurements are relative to the reservoir static pressure and temperature, respectively. Connect the reservoir inlet to port B of a Pressure and Temperature Sensor (G) block to measure relative pressure and temperature of a node connected to the A port of the sensor.

Examples

Ports

Input

expand all

Physical signal port that provides the reservoir pressure control signal.

Dependencies

To enable this port, select Provide input signal for pressure.

Physical signal port that provides the reservoir temperature control signal.

Dependencies

To enable this port, select Provide input signal for temperature.

Conserving

expand all

Gas conserving port associated with the reservoir inlet.

Parameters

expand all

Select quantities to use for the reservoir pressure and temperature:

  • Static pressure and static temperature — Specify pressure and temperature as boundary conditions at the reservoir port. Use this modeling option for applications with low-speed compressible flow, such as HVAC systems. You can also use it to simulate a portion of a system based on measured pressure and temperature at the boundary.

  • Total pressure and total temperature — Specify pressure and temperature of gas at rest inside the reservoir. As the gas speeds up towards the exit port, its movement results in a reduction in pressure and temperature. Use this modeling option for applications with high-speed compressible flows, such as aerospace, or for fluid dynamics analysis.

Method to use to specify the pressure in the reservoir. If you clear this check box, the block models pressure based on the value of the Reservoir pressure parameter or atmospheric pressure. If you select this check box, the block models pressure based on the value of the signal at port P.

Select a specification method for the reservoir pressure:

  • Atmospheric pressure — Use the atmospheric pressure, specified by the Gas Properties (G) block connected to the circuit.

  • Specified pressure — Specify a value by using the Reservoir pressure parameter.

Dependencies

To enable this parameter, clear the Provide input signal for pressure check box.

Enter the desired pressure in the reservoir. This pressure remains constant during simulation.

Dependencies

To enable this parameter, clear the Provide input signal for pressure check box and set Pressure specification to Specified pressure.

Method to use to specify the temperature in the reservoir. If you clear this check box, the block models temperature based on the value of the Reservoir temperature parameter. If you select this check box, the block models temperature based on the value of the signal at port T.

Enter the desired temperature in the reservoir. This temperature remains constant during simulation.

Dependencies

To enable this parameter, clear the Provide input signal for temperature check box.

The cross-sectional area of the reservoir inlet, in the direction normal to gas flow path.

Action for the block to take when the input signal values are outside of valid range:

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

  • Warn and limit to valid values ― The block issues a warning and limits the input signal to the minimum or maximum valid values.

  • Error ― Simulation stops with an error.

Dependencies

To enable this parameter, select at least one of these check boxes:

  • Provide input signal for pressure

  • Provide input signal for temperature

Extended Capabilities

expand all

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

Version History

Introduced in R2016b

expand all

See Also