Main Content

Positive-Displacement Compressor (G)

Positive displacement compressor in a gas network

Since R2022a

Libraries:
Simscape / Fluids / Gas / Turbomachinery

Description

The Positive-Displacement Compressor (G) block represents a positive-displacement compressor, such as reciprocating piston, rotary screw, rotary vane, and scroll, in a gas network. You can control how the block parameterizes a positive displacement compressor by setting Parameterization to Analytical or Tabulated. Port R and port C are mechanical rotational conserving ports associated with the compressor shaft and casing, respectively. When there is positive rotation at port R with respect to port C, gas flows from port A to port B. The block may not be accurate for reversed flow.

The block treats the positive displacement process as polytropic such that pvn is constant, where p is pressure, v is specific volume, and n is the Polytropic exponent parameter. You can use the block to model isentropic processes by setting n equal to the isentropic exponent, k. The figure shows the steps of a piston compressor on a P-V diagram, which has these states:

  • a — The compressor cylinder is full at inlet pressure.

  • b — The pressure inside the compressor exceeds that of the outlet, which results in fluid discharge.

  • c — The compressor reaches the top of the piston stroke, and only the clearance volume remains in the cylinder.

  • d — The pressure inside the cylinder drops below the inlet pressure, which results in fluid intake.

Figure showing piston compressor process where point A is at low pressure, high volume, point B is at high pressure, high volume, port C is at high pressure, low volume, and point d is at low pressure, low volume.

Efficiency

When you set Volumetric efficiency parameterization to Analytical, the block calculates the volumetric efficiency as

ηV=1+CC(poutpin)1n,

where the block implements the polytropic pressure-volume relationship. The block calculates the clearance volume fraction, C, as

C=1ηVnominalpratio1/n1,

where ηVnominal is the Nominal volumetric efficiency parameter, and pratio is the ratio of saturation pressures that correspond to the Nominal inlet pressure and Nominal inlet temperature parameters.

When you set Volumetric efficiency parameterization to

Tabulated, the block interpolates the values of the Volumetric efficiency table, eta(pr,w) parameter as a function of the shaft speed and the pressure ratio.

Continuity Equations

The block calculates the mass flow rate as

m˙=ηVωVdispvs,

where

  • is the mass flow rate.

  • ω is the angular velocity of port R relative to port C.

  • vs is the specific volume at the inlet.

  • Vdisp is the displacement volume that the block uses.

When you set Displacement specification to Volumetric displacement, the block uses the Displacement volume parameter. When you set Displacement specification to Nominal mass flow rate and shaft speed, the block calculates the displacement volume as

Vdisp=m˙nominalvs,nominalωnominalηVnominal,

where

  • nominal is the Nominal mass flow rate parameter.

  • ωnominal is the Nominal shaft speed parameter.

  • ηVnominal is the Nominal volumetric efficiency parameter.

The block calculates the nominal inlet specific volume, vs, based upon the Nominal conditions specification parameter. When you select Nominal pressure ratio, the block uses the Nominal inlet pressure and Nominal inlet temperature parameters.

The block conserves mass such that

m˙A+m˙B=0,

where A and B are the mass flow rates of ports A and B, respectively. The block conserves energy such that

ϕA+ϕB+m˙AΔht=0,

where Δht is the change in specific total enthalpy, and AΔht is the fluid power.

The block equates the fluid power to the polytropic power such that

ηMτ=nn1ηVpinVdisp[(poutpin)n1n1],

where ηM is the Mechanical efficiency parameter, and τ is the shaft torque.

Visualizing the Volumetric Efficiency

To visualize the block volumetric efficiency, right-click the block and select Fluids > Plot Volumetric Efficiency.

Each time you modify the block settings, click Reload Data on the figure window.

When you set Volumetric efficiency parameterization to Analytical, the block plots compressor volumetric efficiency vs. pressure ratio.

Analytical Parameterization Default Volumetric Efficiency

Volumetric Efficiency

When you set Volumetric efficiency parameterization to Tabulated, the block plots compressor volumetric efficiency vs. pressure ratio for each entry in the Shaft speed vector, w.

Tabulated Parameterization Default Volumetric Efficiency

Volumetric Efficiency

Assumptions and Limitations

  • The block may not be accurate for flow from port B to port A.

  • The block assumes that the flow is quasi-steady: the compressor does not accumulate mass.

Ports

Conserving

expand all

Gas conserving port associated with the compressor inlet.

Gas conserving port associated with the compressor outlet.

Mechanical rotational conserving port associated with the compressor case.

Mechanical rotational conserving port associated with the compressor shaft.

Parameters

expand all

Whether to specify the fluid displacement according to volume per cycle or nominal condition values.

Fluid volume displaced per cycle. The block defines a cycle as one compression stroke and one expansion stroke, which occur during a single crank shaft revolution. This volume is the difference between the maximum cylinder volume and the clearance volume, (Va-Vc). In general, the displacement volume is the volume swept out by the compressor over one shaft revolution.

Dependencies

To enable this parameter, set Displacement specification to Volumetric displacement.

Nominal mass flow rate that the block uses to find the displacement volume.

Dependencies

To enable this parameter, set Displacement specification to Nominal mass flow rate and shaft speed.

Nominal shaft speed that the block uses to find the displacement volume.

Dependencies

To enable this parameter, set Displacement specification to Nominal mass flow rate and shaft speed.

Nominal inlet pressure that the block uses the find the displacement volume.

Dependencies

To enable this parameter, set Displacement specification to Nominal mass flow rate and shaft speed.

Nominal inlet temperature that the block uses to find the displacement volume.

Dependencies

To enable this parameter, set Displacement specification to Nominal mass flow rate and shaft speed.

Whether to parameterize the displacement volumetric efficiency using analytical equations or tabulated data.

Nominal volumetric efficiency to compute the clearance volume fraction. The nominal volumetric efficiency is the volumetric efficiency when the compressor operates at nominal conditions.

Dependencies

To enable this parameter, set Volumetric efficiency parameterization to Analytical.

Nominal pressure ratio to compute the clearance volume fraction.

Dependencies

To enable this parameter, set Nominal conditions specification to Nominal pressure ratio and Volumetric efficiency parameterization to Analytical.

Vector of pressure ratios corresponding to the compressor volumetric efficiency. Each element corresponds to a column of the Volumetric efficiency table, eta(pr,w) parameter.

Dependencies

To enable this parameter, set Volumetric efficiency parameterization to Tabulated.

Vector of shaft speeds corresponding to the compressor volumetric efficiency. Each element corresponds to a row of the Volumetric efficiency table, eta(pr,w) parameter.

Dependencies

To enable this parameter, set Volumetric efficiency parameterization to Tabulated.

Volumetric efficiency for a given shaft speed and pressure ratio.

Dependencies

To enable this parameter, set Volumetric efficiency parameterization to Tabulated.

Exponent that the block uses when implementing the polytropic pressure-volume relationship.

Ratio of the fluid power to the mechanical shaft power.

Inlet area associated with port A.

Outlet area associated with port B.

References

[1] Mitchell and Braun, Principles of Heating, Ventilation, and Air Conditioning in Buildings, chap. SM6, 2012.

Extended Capabilities

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

Version History

Introduced in R2022a