Documentation

Constant Volume Chamber (G)

Chamber with one port and fixed volume of gas

  • Library:
  • Simscape / Foundation Library / Gas / Elements

Description

The Constant Volume Chamber (G) block models mass and energy storage in a gas network. The chamber has one port and a constant volume of gas. The enclosure can exchange mass and energy with the connected gas network, as well as exchange heat with the environment, allowing its internal pressure and temperature to evolve over time. The pressure and temperature evolve based on the compressibility and thermal capacity of this gas volume.

Mass Balance

Mass conservation relates the mass flow rates to the dynamics of the pressure and temperature of the internal node representing the gas volume:

MpdpIdt+MTdTIdt=m˙A

where:

  • Mp is the partial derivative of the mass of the gas volume with respect to pressure at constant temperature and volume.

  • MT is the partial derivative of the mass of the gas volume with respect to temperature at constant pressure and volume.

  • pI is the pressure of the gas volume. Pressure at port A is assumed equal to this pressure, pA = pI.

  • TI is the temperature of the gas volume. Temperature at port H is assumed equal to this temperature, TH = TI.

  • t is time.

  • m˙A is the mass flow rate at port A. Flow rate associated with a port is positive when it flows into the block.

Energy Balance

Energy conservation relates the energy and heat flow rates to the dynamics of the pressure and temperature of the internal node representing the gas volume:

UpdpIdt+UTdTIdt=ΦA+QH,

where:

  • Up is the partial derivative of the internal energy of the gas volume with respect to pressure at constant temperature and volume.

  • UT is the partial derivative of the internal energy of the gas volume with respect to temperature at constant pressure and volume.

  • ФA is the energy flow rate at port A.

  • QH is the heat flow rate at port H.

Partial Derivatives for Perfect and Semiperfect Gas Models

The partial derivatives of the mass M and the internal energy U of the gas volume with respect to pressure and temperature at constant volume depend on the gas property model. For perfect and semiperfect gas models, the equations are:

Mp=VρIpIMT=VρITIUp=V(hIZRTI1)UT=VρI(cpIhITI)

where:

  • ρI is the density of the gas volume.

  • V is the volume of gas.

  • hI is the specific enthalpy of the gas volume.

  • Z is the compressibility factor.

  • R is the specific gas constant.

  • cpI is the specific heat at constant pressure of the gas volume.

Partial Derivatives for Real Gas Model

For real gas model, the partial derivatives of the mass M and the internal energy U of the gas volume with respect to pressure and temperature at constant volume are:

Mp=VρIβIMT=VρIαIUp=V(ρIhIβITIαI)UT=VρI(cpIhIαI)

where:

  • β is the isothermal bulk modulus of the gas volume.

  • α is the isobaric thermal expansion coefficient of the gas volume.

Variables

Use the Variables tab in the block dialog box (or the Variables section in the block Property Inspector) to set the priority and initial target values for the block variables prior to simulation. For more information, see Set Priority and Initial Target for Block Variables and Initial Conditions for Blocks with Finite Gas Volume.

Assumptions and Limitations

  • The chamber walls are perfectly rigid.

  • There is no flow resistance between port A and the chamber interior.

  • There is no thermal resistance between port H and the chamber interior.

Ports

Conserving

expand all

Gas conserving port associated with the chamber inlet.

Thermal conserving port associated with the temperature of the gas inside the chamber.

Parameters

expand all

Volume of gas in the chamber. The chamber is rigid and its volume therefore constant during simulation. The chamber is assumed to be completely filled with gas at all times.

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

Introduced in R2016b

Was this topic helpful?