7.8
1.00

Directions

In this simulation, n-butane is compressed adiabatically from 1 bar and 50°C to user-set values for the discharge stream pressure and the compressor efficiency η. Select “sketch of apparatus” to determine the outlet stream temperature (expressed in °C) and the power consumed (expressed in kW). The inlet molar flow rate of n-butane supplied to the compressor is ṅ = 1 mol/s. You can select from one of three cubic equations of state (Redlich–Kwong, Soave–Redlich–Kwong (SRK), or Peng–Robinson). An ideal gas at 1 bar and 298.15 K is taken as the reference state for computing the enthalpy H and entropy S for the system flow streams. In the temperature–entropy (T–S) diagram, the blue curve denotes the inlet stream isobar (P = 1 bar) and the red curve the discharge stream isobar. A limiting compression transformation on the T–S diagram is shown in dashed green. You can clearly see the difference between the ideal case (shown by a vertical dashed green line), when the compressor is isentropic (i.e., η = 100%), and a more realistic case, where the efficiency is less than 100% (shown by a tilted dashed green line).

Details

n-Butane (Tc = 425.1 K, Pc = 37.96 bar, ω = 0.200) is compressed from state 1 (inlet, 1 bar, 50°C) to state 2 (outlet, at the discharge pressure set by the slider). Results agree closely with a commercial process simulator (HYSYS) for the SRK and Peng–Robinson equations of state. Other pure gases can be studied by changing the critical temperature Tc, critical pressure Pc, and acentric factor ω.

Generalized cubic equation of state

The compressibility factor Z at a given reduced temperature Tr = T/Tc and reduced pressure Pr = P/Pc is found by successive substitution, starting from Z = β:

where α(Tr) and the constants ε, σ, Ω, Ψ depend on the choice of equation of state:

Residual enthalpy and entropy

Departures of the real gas from ideal-gas behavior are given by the residual properties

Ideal-gas contribution

The ideal-gas heat capacity of n-butane is fitted to

so that, relative to the reference state (T0 = 298.15 K, P0 = 1.01325 bar),

and the total molar enthalpy and entropy at any state are

Outlet state and compressor efficiency

The ideal (isentropic, η = 100%) outlet state is the temperature T2s at the discharge pressure P2 that conserves entropy:

The isentropic enthalpy change ΔHs is related to the actual enthalpy change ΔH by the compressor efficiency η:

The actual outlet temperature T2 (used to draw the tilted dashed green line and the apparatus sketch) is then the root of

and, since the molar flow rate is ṅ = 1 mol/s, the power consumed by the compressor (in kW) equals ΔH (in J/mol) divided by 1000:

Definitions of symbols

  • T, P — temperature (K) and pressure (bar) of a stream
  • Tc, Pc, ω — critical temperature, critical pressure, and acentric factor
  • Tr = T/Tc, Pr = P/Pc — reduced temperature and pressure
  • Z — compressibility factor, PV/RT
  • R — universal gas constant, 8.314 J/(mol·K)
  • β, q, α(Tr), ε, σ, Ω, Ψ — generalized cubic-equation-of-state parameters
  • HR, SR — residual molar enthalpy and entropy (real gas − ideal gas, same T and P)
  • ΔHig, ΔSig — ideal-gas molar enthalpy and entropy change from the reference state
  • H, S — total molar enthalpy and entropy
  • T1, P1 — inlet temperature (323.15 K) and pressure (1 bar)
  • T2, P2 — actual outlet temperature and discharge pressure (slider)
  • T2s — outlet temperature for an isentropic (100% efficient) compressor
  • η — compressor (isentropic) efficiency
  • ṅ — molar flow rate, 1 mol/s
  • Ẇs — shaft power consumed by the compressor

About

This simulation was created in the Department of Chemical and Biological Engineering at University of Colorado Boulder for LearnChemE.com by John L. Falconer using Claude AI. It is a JavaScript/HTML5 implementation of a Mathematica simulation by Housam Binous, Nadhir A. Al-Baghli, and Brian G. Higgins. It was prepared with financial support from the National Science Foundation (DUE 2336987 and 2336988). Address any questions or comments to LearnChemE@gmail.com.

⚠️ Simulation Under ReviewThis content is still being reviewed for quality and accuracy and may be updated in the future. Feel free to send us feedback.