ProcessChem

Phase Equilibrium

About

One chemical changes state — heated, cooled, compressed, expanded or throttled. Give the amount as a quantity for a sealed vessel or as a rate for a flowing stream; finds the final state and the heat and work.

Inputs
Inputs
Results
Results

What This Models

A substance moving from one state to another, either as a fixed amount in a vessel or piston, or as a steady stream through a device. Both are the same equation of state answering the same question; what separates them is whether you have a quantity or a rate.

Inputs

The form is three cards, Substance, Start and Process, with Calculate pinned at the bottom. Every number has its own unit menu beside it, starting in the unit chosen on the Units tab.

Substance

Single substance or Mixture is the switch at the top. For a single substance, type it in Name or formula; suggestions appear as you type, and chemicals you used recently are offered as chips. The default is Nitrogen.

For a Mixture, name each component in its own row, up to 6, with + Add component for another row and ✕ to remove one. Give each component as, a switch at the top of the mixture, says what the numbers beside the names are:

  • Mole % or Mass %: shares. Type every share but the last; the last is whatever makes 100 %, and the total reads "Total 100 % ✓" once every name and share is in. Switching between the two converts the shares you typed.
  • Amounts: each component's own amount, with the share it makes shown under it ("= 8.91 mol %"). One menu sets the unit for all of them, grouped by kind (mass, moles, volume and the four flows), and the total is their sum, so the amount field below is hidden. A volume is each component as the pure substance at the start temperature and pressure, converted to moles when you press Calculate.

Amount sets both the number and what it measures. Tap its unit (e.g. "kg") and every unit is listed, grouped by kind: Mass, Moles and Volume (a quantity, for a vessel) and Mass flow, Molar flow, Volumetric flow and Normal flow (a rate, for a stream). A unit of the same kind converts the number; a unit of another kind switches to it, and the field's label shows which kind you are on. Switching between a quantity and a rate carries the chemical and the starting temperature and pressure across, so the form does not reset.

Start

Temperature and Pressure, side by side, starting at 20 °C and 1 bar. On a rate basis they are the inlet conditions.

Streams

The form opens with a Streams card holding one row, "Stream 1 · Nitrogen", with its amount, temperature and pressure underneath. Tap a row to edit that stream in a sheet: Single substance or Mixture, its amount (the same grouped unit list), temperature and pressure. + Add stream mixes up to 5 streams before the process. With two or more, each row has an ✕ to remove that stream (the sheet also has Remove this stream). Removing stream 1 moves stream 2 into its place. All streams take the same kind of amount: all quantities (a vessel) or all rates (a flow).

Mixed at is Lowest stream pressure (as at a real mixing point) or Set a pressure. The streams are mixed with no heat added or lost: the mixed temperature is the one at which the mix holds the same enthalpy as the streams together,

Σ nᵢ (hᵢ(Tᵢ, Pᵢ) − hᵢ,ref) = n (h_mix(T, P_mix) − h_mix,ref)

Each enthalpy is taken from the same reference state, the ideal gas at 25 °C (read at 100 Pa, or lower for a heavy substance the equation of state would condense there), where the mixture's enthalpy is the sum of its components' and no heat of mixing exists. Real heats of mixing (an acid in water) are not modelled. A stream that is solid at its own temperature and pressure, such as dry ice at −70 °C and 1 bar, is placed on the same scale through its triple point, as described under solids below, so its heat to melt or sublime is part of the balance; the Mixed feed card says so. A component can also deposit as a solid at the mixing point. This happens below its triple point, where its partial pressure in the mix would exceed its sublimation pressure. CO₂ is the example: in a mix at 1 bar it deposits as dry ice below −78.6 °C, where pure CO₂ reaches its sublimation pressure. What its sublimation pressure cannot hold in the gas deposits, and the heat it gives up going from gas to solid goes into the energy balance, and the solid is listed on the Mixed feed card as "CO₂ · solid, deposited". The solid is left out of the fluid that goes on to the process; a vapour trace under 100 ppm counts as deposited. The mixed temperature is solved on the whole energy balance (fluid plus solid), with the vapour that stays in the gas at exactly its sublimation pressure. When the hot stream cannot sublime all the dry ice it is mixed with, the mix settles where the CO₂ left in the gas is at its sublimation pressure, with the rest left as solid: −78.6 °C at 1 bar when the gas is pure CO₂, colder when another gas dilutes it. The CO₂ gas there is colder than CoolProp's reference equation reaches, below the triple point, so the Peng-Robinson equation is used for it, within 10 J/mol of the reference equation's own extension. Adding heat sublimes the leftover dry ice first and then warms the rest. Three flows of 10 kg/h of dry ice at −80 °C, mixed at 1.01325 bar with nitrogen at 25 °C, show the three outcomes:

Nitrogen Heat in Mixed temperature Dry ice left Gas
100 kg/h none −33.8 °C none 6.0 mol % CO₂
20 kg/h none −100.4 °C 51.3 % (5.13 kg/h) 13.4 mol % CO₂
20 kg/h 1000 W −79.7 °C none 24.1 mol % CO₂

By hand, for the first row: the nitrogen (0.992 mol/s, Cp about 29.1 J/(mol·K)) gives up 28.9 W per kelvin it cools. The CO₂ (0.0631 mol/s) needs about 25.3 kJ/mol to warm to −78.5 °C and sublime, then about 33.5 J/(mol·K) as a gas. Setting the two equal, 28.9 × (25 − T) = 63.1 × (27.9 + 0.0335 T), gives T ≈ −33.6 °C. In the second row 20 kg/h of nitrogen cannot supply the 1.6 kW the dry ice needs, so the mix cools until the CO₂ left in the gas, 13.4 % of 1.01325 bar = 13.6 kPa, is at its sublimation pressure: about 13.7 kPa at −100.4 °C by Clausius-Clapeyron from 1 atm at −78.5 °C with 25.5 kJ/mol. The 1000 W of the third row covers the shortfall: the nitrogen's 0.604 kW down to −79.7 °C plus the 1.0 kW added is the 1.59 kW to sublime it all.

The solid is carried through the process. The results add a Solid in the feed card: each solid in and out, the fluid in and out, and the total, which equals what the streams brought. At a held pressure, with either Heat in or an outlet temperature given, the end state comes from the total enthalpy, the streams' plus the heat in. Solids settle as they would at the end: dry ice left at the mixing point sublimes first when heated, the deposited solid sublimes back once it is warm enough, and more freezes out when cooled. Each change is named in the results, and the outlet volume is for the fluid actually leaving. A held temperature keeps the solids as they are. Isenthalpic (throttle) to a final pressure and Adiabatic (isentropic) are calculated with a solid in the feed. Through a valve no heat or work crosses, so the gas and the solid together keep their total enthalpy, and the outlet is where that enthalpy sits at the outlet pressure. In the adiabatic machine the gas and the solid together keep their total entropy at 100 % efficiency; the solid's entropy is tied to the fluid's at the triple point, the same way as its enthalpy, and the work is the change in total enthalpy (internal energy for a quantity). Both answers say how much solid is left. Example: CO₂ gas at 250 K expanded reversibly from 5 to 1 bar ends at −78.6 °C, the sublimation point, with 4.2 % of it as dry ice, and gives up 2.73 kJ of work per mole (by hand from the saturation entropies). The adiabatic path can also be given its outlet temperature or its work instead of the outlet pressure: both rise with the outlet pressure, so the app searches for the pressure that gives them, and says so if none does. Still refused with a solid in the feed: Constant Volume, and a final volume as the target, because they need the volume the solid takes up. The refusal names the choices that work. How much heat the deposit gives up depends only on where it starts and where it ends, gas in the mix and solid at the mixed temperature, because enthalpy is a state function; see One enthalpy reference. The Mixed feed card names the source of that heat: the heat of sublimation at 25 °C from CRC's formation enthalpies of the solid and the gas, where no measured value exists. When the mix holds liquid and a component that cannot be treated this way ends below its melting point, the card warns that it would really be solid and that its heat of fusion is left out. That mix is where the process starts, and the results open with a Mixed feed card: its temperature, pressure, phase and each component's mol % and amount.

Process

Held constant is the path taken: Pressure, Volume, Temperature, Adiabatic (isentropic) or Isenthalpic (throttle). Volume is offered for a quantity only. The default is adiabatic.

End point you know pins down the final state. On a quantity basis it is Final T, Final P, Final V, Heat in or Work in; on a rate basis it is Outlet Temperature, Outlet Pressure, Heat in or Work in, since a stream has no volume of its own. Type the value in the field under it. The default is a final pressure of 10 bar.

Heat in and Work in are the energy added to the fluid; type a negative value for energy taken out. On a rate basis they are a duty and a shaft power. The app then searches for the end state that takes exactly that energy: with the pressure or volume held, it searches the final temperature; with the temperature held, or for the adiabatic machine, it searches the final pressure. A pure fluid boils at one temperature, so a heat that only part-boils it has no single temperature to match; the answer is then the boiling point, with the vapour share that heat produces. Heat in rules out the adiabatic and isenthalpic paths (no heat crosses them), and Work in is offered for the adiabatic path only. If no end state can take that much energy, the app says so and asks for a smaller value.

A path that contradicts the end point you chose is greyed out rather than removed, so it stays visible why it is unavailable: a final temperature rules out holding the temperature and the isenthalpic throttle, a final pressure rules out holding the pressure, and a final volume rules out holding the volume. If your current choice becomes unavailable, it is cleared and an amber hint explains why.

Isentropic efficiency appears only for adiabatic. 100 % is the reversible ideal; a real compressor or turbine is lower.

Press Calculate. The results open on their own screen; Edit on the Inputs strip at the top takes you back to the form. Getting Around explains how the screens fit together.

The Amount Decides Which

Enter a mass, a number of moles or a volume and this is a closed system: a fixed amount in a vessel, where the work is n times the change in internal energy. Enter a mass flow, molar flow, volumetric flow or normal flow and it is an open system: a stream through a compressor, turbine, exchanger or valve, where the shaft work is the molar flow times the change in enthalpy. You do not choose between them separately — the amount you have already says which one you mean.

What Changes With It

Constant volume is offered only for a quantity. A flowing stream has no volume of its own, only a rate, so holding it constant means nothing — and for the same reason a final volume can only be asked for on a quantity basis. Everything else is common to both: constant pressure, constant temperature, adiabatic with an isentropic efficiency, and isenthalpic throttling.

The normal-flow reference defaults to 20 °C and 1 atm and is editable under Normal reference on the Units tab. Check it against your instrument: "normal" conditions are not standardised, and a 0 °C reference reads about 7 % higher in mass terms.

Method

Given the initial state and the path, the final state is solved directly from the equation of state, and the energy follows from the first law, with the sign convention that positive means energy added to the fluid.

Key Relations

n·(U₂ − U₁) = Q + W        quantity basis (closed system)
ṅ·(h₂ − h₁) = Q̇ + Ẇ        rate basis (open, steady flow)

n is the fixed amount; ṅ the flow rate. U is internal energy, h is enthalpy — the open-system form carries h rather than U because a flowing stream does flow work on its surroundings just by moving, and h = U + Pv already accounts for it. Isenthalpic (a throttle) is the special case h₂ = h₁: no work, no heat, and the temperature still changes — the Joule–Thomson effect. Combinations that contradict each other — isenthalpic against a specified final temperature, say — are greyed out rather than silently answered.

Energy and sign convention

The energy figures come from the first law, written so that positive means energy added to the fluid:

n·(U₂ − U₁) = Q + W        quantity basis (closed system: a vessel)
ṅ·(h₂ − h₁) = Q̇ + Ẇ        rate basis (open system: a stream through a device)

On the results this reads in words: Heat in is Q (or Q̇) greater than zero, Heat out less than zero; Work in is work done on the fluid (a compressor, a pump), Work out is work the fluid does (a turbine, an expanding gas). A stream carries enthalpy h rather than internal energy U, because pushing the fluid in and out of the device is itself work (P·v), and h = U + P·v already counts it.

What each process holds constant decides where the energy goes:

Held constant Heat Work What sets the final state
Pressure the answer: Q = n·(H₂ − H₁) the volume change, −P·ΔV (a stream: none) the final temperature or volume you give
Temperature Q = n·T·(S₂ − S₁), reversible the rest of the energy balance the final pressure or volume you give
Volume (quantity only) Q = n·(U₂ − U₁) none, nothing moves the final temperature or pressure you give
Adiabatic (isentropic) none the answer: W = n·(U₂ − U₁) (a stream: ṅ·(h₂ − h₁)); for a real machine the ideal work is divided by the isentropic efficiency when compressing, multiplied when expanding S₂ = S₁ at 100 % efficiency
Isenthalpic (throttle) none none h₂ = h₁; the temperature change is the Joule–Thomson effect

Worked example: nitrogen from 1 bar and 20 °C to 10 bar. Adiabatic compression reaches 290.2 °C and needs 5.67 kJ of work per mole in a closed vessel, or 7.94 kJ per mole as shaft work on a flowing stream (an ideal gas would reach 292.8 °C). Isenthalpic "compression" to the same 10 bar ends at only 21.96 °C, with no heat and no work: the 2 K rise is nitrogen's Joule–Thomson effect, about 0.22 K per bar. The two answers differ by the compression work. Isenthalpic is really the path of a gas passing through a valve from high to low pressure; run from 1 to 10 bar it is the state with the same enthalpy, not a real machine. To reach it in practice you would compress (7.94 kJ per mole in) and then cool back out the same 7.94 kJ.

What comes back

The Inputs strip at the top repeats what you asked, for example "Nitrogen · 1.0 kg · adiabatic · 1.0 → 10.0 bara".

The headline card gives what the process is about, in words rather than signs. Held pressure, temperature or volume: the heat, Heat in or Heat out. Adiabatic: the work, Work in or Work out. Isenthalpic: the final temperature, marked "enthalpy unchanged", because heat and work are both zero by definition. The same words are used for a quantity and a stream; the unit says which (kJ for a quantity, kW for a stream). Under it a sentence says what happened to the phase: "It stays gas: 20 °C → 290.2 °C", or "From liquid to gas: it crosses the boiling curve". When the crossing happens at constant pressure, the sentence adds the temperature at which it boils, "… at 99.97 °C".

Three tiles follow, always in the same places: Final phase (Outlet phase for a stream) with its vapour share, Heat, and Work. An energy that is zero by the nature of the process reads "none", with the reason under it (adiabatic, isenthalpic). Tap the ⓘ on the phase tile to see which equation of state produced it, and the ⓘ on the headline or an energy tile to open Energy and sign convention. Tap any unit on the results to show that value in another unit.

For a quantity (a vessel), the cards below are:

Card What it shows
Amount Mass and Moles: the same quantity both ways, whichever you entered.
Volume Initial volume and Final volume. The volume changes in every process except constant volume, and by orders of magnitude when a liquid boils.
End state Final temperature and Final pressure.
Phases Initial and Final phase, and the liquid / vapour split at the start and at the end.

For a stream:

Card What it shows
Flow Mass flow, Molar flow and Normal flow. Normal flow is read at your Normal reference, and is N/A for a solid, or a fluid that is not a gas at that reference.
Volumetric flow Inlet and Outlet, side by side, because for a compressor the ratio is the point and line sizing needs the outlet figure.
Outlet state Temperature and Pressure.
Phases Inlet and Outlet phase, and the liquid / vapour split in and out.

A single-phase state reads 100% / 0% or 0% / 100% for its liquid / vapour split. Anything in between means the state sits under the saturation dome, where temperature and pressure are no longer independent. A supercritical fluid reads N/A, because above the critical point there is no liquid-vapour boundary to be either side of.

Every result has a Stream by phase table: the amount that is gas, liquid and solid, In beside Out, with a Total. For a single substance that is partly boiled, this is where the amount of vapour and of liquid is read. Under the table a line states the mass balance, "Mass balance: in = out = …"; it turns amber if the two sides differ by more than one part in a million. A mixture also gets Whole stream · every component, with each component's share and amount in and out.

For a mixture, a card for each phase present at the start or the end, Gas phase and Liquid phase, lists every component with its share of that phase and its amount, In (at the start) beside Out (at the end). The Share menu above the table switches between mol % and mass %, and the Amount menu sets the unit of the amounts. Where the mixture splits into two phases, the card's title says what share of the moles that phase holds. Where it splits into two liquids, each gets its own card, Liquid 1 phase and Liquid 2 phase, so the amounts in all the cards add up to what you entered. Each table ends with a Total row, and with several streams the Mixed feed card lists every component in mol % or mass %. Below it, each incoming stream has its own row ("Stream 1 · CO2", with its mass): tap it to see that stream's temperature, pressure and composition. A last line states the balance of the mixing itself: streams in = mixed feed.

Grey notes under a result say when the calculation left its usual method: the reference equation of state could not be used and Peng-Robinson took over (for example a mix colder than the reference equation reaches), a second stability test found a liquid that the first one missed, or a sublimation pressure could not be evaluated so that component was kept in the gas.

Amber banners flag an extrapolated range or a mixture-model caveat, and a note names the mixture model used. The line Solved with: names the equation of state, and Methods used at the foot opens the methods sheet.

Equation Of State

The equation of state is CoolProp's reference equation where one exists for the fluid, and Peng-Robinson where none does, which is a general cubic and less accurate, especially for liquid densities. For a single substance that has a reference equation, Methods used lets you switch between Reference equation (CoolProp) and Peng-Robinson cubic; the result is calculated again with your pick. A mixture whose liquid hydrogen bonds (water with alcohols, acids or amines) is solved with an activity-coefficient model for the liquid, NRTL where fitted pair data exists and UNIFAC (marked Estimated) where it does not, with one model for the whole calculation at every temperature. Only a calculation that needs the volume to respond to pressure, holding the volume or giving a final volume, uses Peng-Robinson for that mixture, because the activity model's liquid volume ignores pressure; it then carries a Not reliable warning. Other mixtures use Peng-Robinson with fitted interaction parameters. Methods and Sources has more on the methods.

Solids And Solutions

Neither equation of state models a solid, so a chemical that is solid at your conditions is treated separately: heating or cooling it needs no equation of state, only the integral of its heat capacity. Only a final temperature can be asked for. A target pressure or volume is refused, because compressing a solid is a mechanical process this mode does not model. Heating a solid past its melting or sublimation point into a liquid or gas is calculated. The solid is tied to the fluid at its triple point, where solid, liquid and vapour coexist: the solid's enthalpy there is the saturated liquid's (from the equation of state) minus the heat of fusion. The energy is then the fluid's enthalpy at the end, at your pressure, minus the solid's at the start. Below the triple-point pressure this is subliming, and the latent heat is the heat of fusion plus the heat of vaporisation at the triple point. For a substance with only the generic cubic, whose vapour at the triple point is not reliable, the solid is tied to the ideal gas instead, through its heat of sublimation (see One enthalpy reference). Example: dry ice heated from −100 °C to 20 °C at 1 bar warms as a solid, sublimes at about −78.5 °C and then warms as a gas. Above the triple-point pressure the solid melts and then boils as the equation of state says. The results name the transition and its latent heat. The solid is heated at constant pressure whatever the calculation type.

Example: 1 kg of dry ice (CO₂) from −70 °C to 30 °C at 1.01325 bar sublimes at about −78.5 °C and takes about 653 kJ, most of it to sublime, plus warming the solid and then the gas (648 kJ by hand from measured data). At 10 bar the same dry ice melts at −56.6 °C instead.

It is still refused when: - the solid decomposes instead of melting; - no heat of fusion is on record; - the end state is a gas below the triple-point temperature, which the equation of state does not reach (CO₂ ending between −78.5 and −56.6 °C at 1 atm); - no heat of sublimation is on record (measured, from formation enthalpies, or from a measured sublimation curve) for a solid that sublimes with only a generic cubic.

Where the solid's heat capacity is only an estimate (the Lastovka method), the results say so.

A melt of salts or oxides without water (molten NaCl with KCl, for example) is shown as one liquid. Peng-Robinson has no data for such melts and would split them into two liquids, but they mix in all proportions; a warning says so, and that the energies are approximate.

Water plus dissolved solutes with fitted data is treated as an aqueous solution, from fitted density and heat capacity rather than an equation of state. It carries no phase equilibrium, so the same final-temperature-only rule applies.

Limitations

One substance or one mixture at a time, with its chemical identity fixed: nothing reacts here. For species turning into one another use Chemical Equilibrium or Reaction. Large excursions can push the fluid outside the equation of state's fitted range.

The heat of mixing of unlike liquids is not calculated: mixing streams of, say, ethanol and water gives a mixed temperature that can be 5 to 15 °C off, and a note says so. For a salt solution, boiling-point rise and heat of dilution are not calculated. Liquid density from Peng-Robinson is 4 to 7 % off for hydrocarbons, and the trace amounts of water in oil and oil in water are not reliable. Accuracy and limits has the measured deviations.

References

  • Energy balances, sign convention, isentropic efficiency, isenthalpic (Joule-Thomson) throttling, constant-temperature heat Q = n·T·ΔS: Smith, J. M.; Van Ness, H. C.; Abbott, M. M.; Swihart, M. T. Introduction to Chemical Engineering Thermodynamics, 8th ed.; McGraw-Hill: New York, 2018. Also Çengel, Y. A.; Boles, M. A. Thermodynamics: An Engineering Approach, McGraw-Hill.
  • Heat of sublimation from a sublimation-pressure curve (Clausius-Clapeyron), and carrying a heat of transition to another temperature along the heat-capacity curves (Kirchhoff): Smith, Van Ness, Abbott and Swihart, as above.
  • Reference equations of state (CoolProp): Bell, I. H.; Wronski, J.; Quoilin, S.; Lemort, V. Pure and Pseudo-pure Fluid Thermophysical Property Evaluation and the Open-Source Thermophysical Property Library CoolProp. Ind. Eng. Chem. Res. 2014, 53, 2498-2508.
  • Peng-Robinson cubic equation of state: Peng, D.-Y.; Robinson, D. B. A New Two-Constant Equation of State. Ind. Eng. Chem. Fundam. 1976, 15, 59-64.
  • Fitted Peng-Robinson interaction parameters and NRTL pair data: the ChemSep database (Kooijman, H. A.; Taylor, R.), www.chemsep.org.
  • NRTL activity-coefficient model: Renon, H.; Prausnitz, J. M. Local Compositions in Thermodynamic Excess Functions for Liquid Mixtures. AIChE J. 1968, 14, 135-144.
  • UNIFAC group contribution: Fredenslund, A.; Jones, R. L.; Prausnitz, J. M. Group-Contribution Estimation of Activity Coefficients in Nonideal Liquid Mixtures. AIChE J. 1975, 21, 1086-1099. Group assignments from the DDBST table, as described in Gmehling, J.; Kolbe, B.; Kleiber, M.; Rarey, J. Chemical Thermodynamics for Process Simulation; Wiley-VCH: Weinheim, 2012.
  • Stability test that checks whether a liquid has been missed (tangent-plane test): Michelsen, M. L. The Isothermal Flash Problem. Part I. Stability. Fluid Phase Equilib. 1982, 9, 1-19.
  • Vapour-liquid split of the flash (Rachford-Rice equation): Rachford, H. H., Jr.; Rice, J. D. Procedure for Use of Electronic Digital Computers in Calculating Flash Vaporization Hydrocarbon Equilibrium. J. Pet. Technol. 1952, 4 (10), 19-3.
  • Solid heat capacity estimate (Lastovka method): Laštovka, V.; Fulem, M.; Becerra, M.; Shaw, J. M. A Similarity Variable for Estimating the Heat Capacity of Solid Organic Compounds: Part II. Application: Heat Capacity Calculation for Ill-Defined Organic Solids. Fluid Phase Equilib. 2008, 268, 134-141.
  • Measured heat capacity of solid carbon dioxide (the dry ice example): Giauque, W. F.; Egan, C. J. J. Chem. Phys. 1937, 5, 45.
  • Aqueous solutions from fitted density and heat capacity (Laliberté): Laliberté, M. A Model for Calculating the Heat Capacity of Aqueous Solutions, with Updated Density and Viscosity Data. J. Chem. Eng. Data 2009, 54, 1725-1760.
  • Heats of fusion, heats of vaporisation, melting and triple-point data, and the heats of sublimation (NIST WebBook): measured data and property correlations fitted to them. The heat of sublimation data sets are listed under One enthalpy reference. Linstrom, P. J.; Mallard, W. G., Eds. NIST Chemistry WebBook, NIST Standard Reference Database Number 69, https://doi.org/10.18434/T4D303.