주요 콘텐츠

Reservoir (G)

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. The volume of gas inside the reservoir is assumed infinite. Therefore, the flow is assumed quasi-steady. Port A, a gas conserving port, represents the reservoir inlet.

Gas enters and leaves the reservoir at the reservoir pressure, but its temperature is determined by the direction of gas flow. If gas flows into the reservoir, its temperature is determined by the gas network upstream. The reservoir acts as a heat sink. If gas flows out of the reservoir, its temperature equals that of the reservoir. The reservoir acts as a heat source. You specify the reservoir pressure and temperature with block parameter values or physical signals.

This block also functions as a reference point for pressure and temperature measurements in a gas network. These measurements are relative to the reservoir 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.

Assumptions and Limitations

  • Gas in the reservoir is quasi-steady.

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

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 Reservoir 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