Main Content

Pressure Source (G)

Generate constant or time-varying pressure differential

  • Pressure Source (G) block

Libraries:
Simscape / Foundation Library / Gas / Sources

Description

The Pressure Source (G) block represents an ideal mechanical energy source in a gas network. The source can maintain a constant pressure differential across its ports regardless of the flow rate through the source. There is no flow resistance and no heat exchange with the environment.

Ports A and B represent the source inlet and outlet. The input physical signal at port P specifies the pressure differential. Alternatively, you can specify a constant pressure differential as a block parameter. A positive pressure differential causes the pressure at port B to be greater than the pressure at port A.

You can choose whether the source performs work on the gas flow:

  • If the source is isentropic (Power added parameter is set to Isentropic), then the isentropic relation depends on the gas property model.

    Gas ModelEquations
    Perfect gas(pA)ZR/cpTA=(pB)ZR/cpTB
    Semiperfect gas0TAcp(T)TdTZRln(pA)=0TBcp(T)TdTZRln(pB)
    Real gass(TA,pA)=s(TB,pB)

    The power delivered to the gas flow is based on the specific total enthalpy associated with the isentropic process.

    Φwork=m˙A(hA+wA22)m˙B(hB+wB22)

  • If the source performs no work (Power added parameter is set to None), then the defining equation states that the specific total enthalpy is equal on both sides of the source. It is the same for all three gas property models.

    hA+wA22=hB+wB22

    The power delivered to the gas flow Φwork = 0.

The equations use these symbols:

cpSpecific heat at constant pressure
hSpecific enthalpy
m˙Mass flow rate (flow rate associated with a port is positive when it flows into the block)
pPressure
RSpecific gas constant
sSpecific entropy
TTemperature
wFlow velocity
ZCompressibility factor
ΦworkPower delivered to the gas flow through the source

Subscripts A and B indicate the appropriate port.

Assumptions and Limitations

  • There are no irreversible losses.

  • There is no heat exchange with the environment.

Ports

Input

expand all

Input physical signal that specifies the pressure differential across the source.

Dependencies

To enable this port, set the Source type parameter to Controlled.

Conserving

expand all

Gas conserving port. A positive pressure differential causes the pressure at port B to be greater than the pressure at port A.

Gas conserving port. A positive pressure differential causes the pressure at port B to be greater than the pressure at port A.

Parameters

expand all

Select whether the pressure differential generated by the source can change during simulation:

  • Controlled — The pressure differential is variable, controlled by an input physical signal. Selecting this option exposes the input port P.

  • Constant — The pressure differential is constant during simulation, specified by a block parameter. Selecting this option enables the Pressure differential parameter.

Gas pressure differential across the ports of the source.

Dependencies

To enable this parameter, set Source type to Constant.

Select whether the source performs work on the gas flow:

  • Isentropic — The source performs isentropic work on the gas to maintain the specified pressure differential. Use this option to represent an idealized pump or compressor and properly account for the energy input and output, especially in closed-loop systems.

  • None — The source performs no work on the flow, neither adding nor removing power, regardless of the pressure differential produced by the source. Use this option to set up the desired flow condition upstream of the system, without affecting the temperature of the flow.

Area normal to flow path at port A.

Area normal to flow path at port B.

Extended Capabilities

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

Version History

Introduced in R2016b

expand all