SimuveliqLearnEspañolOpen the simulators
Learn › Chemistry

Ideal and real gases

A gas fills the vessel that holds it, compresses easily and, at low pressures, all gases behave almost the same: the equation PV = nRT describes them all with a single constant. This topic derives that equation from Boyle's, Charles's, Gay-Lussac's and Avogadro's laws, uses it for density, molar mass and mixtures (Dalton's law), and then explains why and when it fails: the compressibility factor Z, the van der Waals equation and its successors by Redlich–Kwong and Peng–Robinson, and the principle of corresponding states. The examples open in the «Ideal and real gases» tool, which compares each model with the reference equation of state of the substance.

The ideal-gas model

The state of an amount of gas is described by four quantities: the pressure P (the force per unit area with which the molecules hit the walls), the volume V, the temperature T and the amount n (in mol). The ideal gas is the model in which molecules are points with no volume of their own that neither attract nor repel each other: they only collide with each other and with the walls. No gas is exactly like that, but when the molecules are far apart (low pressure) and move fast (high temperature) their volume and forces barely matter, and the model works very well.

The temperature of the gas laws is always the absolute one, in kelvin: . With degrees Celsius the ratios come out wrong, because 0 °C is not the absence of motion: going from 10 °C to 20 °C does not double anything, while from 283.15 K to 293.15 K the temperature rises 3.5%. The tool always converts to kelvin and writes it in the first step.

Pressure unitEqualsR in L·unit/(mol·K)
Pa (N/m²)—8.314 J/(mol·K) = 8.314 Pa·m³/(mol·K)
kPa1000 Pa8.314
bar100 kPa0.08314
atm101.325 kPa = 760 mmHg0.08206
mmHg133.32 Pa62.36
psi6.895 kPa—

The gas constant is R = 8.314462618 J/(mol·K), the same in any system of units: only its number changes. Since a J is a Pa·m³ and a m³ is 1000 L, R is 8.314 L·kPa/(mol·K); and dividing by the kPa of each pressure unit gives 0.08206 L·atm/(mol·K), 0.08314 L·bar/(mol·K) and 62.36 L·mmHg/(mol·K). The tool writes R in the pressure and volume units you choose and says so in the «Working units» step.

The gas laws

The empirical gas laws say what happens when two quantities change and the other two stay fixed. Boyle's: at constant temperature and amount, the volume is inversely proportional to the pressure, . If a gas is squeezed to half its volume, its pressure doubles:

012345678012345V (L)P (atm)12PV = 2PV = 4PV = 6 L·atmlarger n·T: further out
Boyle's law: each hyperbola is an amount of gas at one temperature. The tool's example «Boyle: 4.0 L at 1.0 atm compressed to 2.5 atm» goes from point 1 to 2 on the curve PV = 4.0 L·atm and ends at 1.6 L.

Charles's: at constant pressure, the volume is proportional to the absolute temperature, . If V is plotted against the temperature in °C, every line, at any pressure, points to V = 0 at −273.15 °C: that is how absolute zero was found. Gay-Lussac's: at constant volume, the pressure is proportional to T, (an aerosol can in a fire). And Avogadro's: at constant P and T, equal volumes hold the same number of molecules, , whatever the gas.

−300−250−200−150−100−500501001500510152025303540T (°C)V (L)1 atm2 atm4 atm−273.15 °C = 0 Kdashed: extrapolated(the real gas condenses first)
Charles's law for 1 mol at 1, 2 and 4 atm. The lines meet at −273.15 °C, the zero of the kelvin scale.

The four laws are cases of a single one. If V is proportional to T, to 1/P and to n separately, it is proportional to their combination, and the proportionality constant is the same for all gases: it is R.

The second form, the general equation, compares two states of the same gas: whatever does not change cancels. With n constant the combined law remains, ; with n and T constant, Boyle's; and so on. In the «Change of state» view you type the two states, leave empty the value you are looking for, and leave the quantities that do not change empty in both states (or with the same number): the tool cancels what does not change and says which law applies in the «Law that applies» card.

What does not changeLawRelationTool example
n, TBoyle4.0 L at 1.0 atm → 2.5 atm: 1.6 L
n, PCharles2.50 L from 25 to 100 °C: 3.129 L
n, VGay-Lussac2.0 atm from 20 to 120 °C: 2.682 atm
P, TAvogadro1.50 mol in 36.0 L → 2.50 mol: 60 L
ncombined500 mL, 740 mmHg, 22 °C → 0 °C and 760 mmHg: 450.6 mL

The equation PV = nRT

With three of the four quantities the equation gives the fourth. One mole of any ideal gas at 0 °C and 1 atm takes up the molar volume L; at 25 °C and 1 atm, 24.47 L; and at 0 °C and 1 bar (the standard conditions IUPAC recommends), 22.71 L. Two moles of N₂ at 25 °C and 1 atm take up 48.93 L, and weigh g.

The molar volume does not depend on the gas: 22.41 L of He, N₂ or CO₂ at 0 °C and 1 atm hold the same number of molecules (Avogadro's law). What changes is the mass: 4.003 g, 28.01 g or 44.01 g.

Mass, density and molar mass

The amount can be given as a mass: , with M the molar mass. Substituting into PV = nRT and calling the density gives a very useful relation, because it needs neither V nor n:

The density of a gas is proportional to its molar mass: CO₂ (44 g/mol) is denser than air (29 g/mol) and collects at the bottom of a cellar; helium (4 g/mol) rises. And the other way round: measuring the density of an unknown gas at a known P and T gives its molar mass (example 2). The tool works with the four relations at once (PV = nRT, m = nM, m = ρV and PM = ρRT): with the data you type it solves in a chain for everything it can, and if you type more data than needed it checks that they agree (within 0.5%) and, if not, says which relation fails. The molar mass can be typed as a number or as a formula (CO2, N2), which the tool converts with the standard atomic masses.

Gas mixtures: Dalton's law

In a mixture of ideal gases each gas behaves as if it were alone in the vessel: it fills the whole volume and exerts its own partial pressure, the one it would have alone. Since PV = nRT holds for each with the same V and T, the partial pressures add up as the moles do:

The mole fraction is at the same time the fraction of the moles and that of the pressure. The mean molar mass lets the mixture be treated as a single gas: its density is . The tool's dry air (N₂ 0.7808, O₂ 0.2095, Ar 0.0093 and the rest, 0.0004, of CO₂) has g/mol and, at 25 °C and 1 atm, a density of 1.184 g/L.

He1.222 atmx = 0.3999O₂0.6117 atmx = 0.2001N₂1.223 atmx = 0.4total P = 3.057 atm10 L at 25 °C with 2.00 g of He, 8.00 g of O₂ and 14.0 g of N₂
The partial pressures of the tank of example 4. He and N₂ have almost the same partial pressure because there are almost the same moles of each (0.4997 and 0.4998 mol), although the mass of N₂ is seven times larger.

A gas collected over water

In the laboratory a gas is often collected by displacing water from an inverted vessel. The gas comes out saturated with water vapor, so inside there is a mixture: with the water level equal inside and out, the total pressure is the atmospheric one and that of the dry gas is the difference. The vapor pressure of water depends only on the temperature; at 25 °C it is 3.170 kPa (23.78 mmHg). The tool computes it with the IAPWS-95 equation of state of water, the same as its thermodynamic tables, between 0.01 °C and 100 °C.

collected gas: O₂ + water vaporsame level inside and outP(atm) = P(O₂) + P(H₂O)P(H₂O) = vapor pressure of water at T
Collecting over water: the pressure of the dry gas is the atmospheric one minus the vapor pressure of water at that temperature (example 5).

Real gases: the compressibility factor

To measure how far a real gas departs from the ideal one, the compressibility factor is used: the ratio of the real molar volume to the one it would have as an ideal gas at the same P and T:

Z sums up two effects the ideal model ignores. Molecules attract each other: one heading for the wall is held back by those it leaves behind and hits less hard, so the pressure is lower than the ideal one and Z < 1; this effect dominates at moderate pressures and low temperatures. And molecules take up volume: the free space to move in is smaller than V, collisions are more frequent and Z > 1; this effect dominates at high pressures, when the molecules are packed together.

ideal gas: points without forcesreal gas: own volume (b) and attraction (a)one reaching the wall is held back by those behind
The ideal gas against the real one: real molecules have a size (the van der Waals covolume b) and attract each other (the a term).
0501001502002503003504000.40.50.60.70.80.91.01.11.21.3P (bar)Z = Pv/(RT)H₂N₂CH₄CO₂ideal gas350 K
Z against P at 350 K with the reference equation of state of each gas. H₂, with very weak attractions, always has Z > 1; CO₂, which attracts strongly and is close to its critical temperature (304 K), drops to Z = 0.4849 at 180 bar: it takes up less than half of what the ideal gas would say.

The curves of the figure come from the reference equation of state of each substance, the one the tool uses as the comparison value: Helmholtz-energy equations fitted to thousands of measurements (for CO₂, the one by Span and Wagner from 1996), evaluated on the site with CoolProp's coefficients. They reproduce the measurements within their uncertainty, so they serve to judge the simple models.

01002003004005006000.40.60.81.01.21.41.61.82.0P (bar)Z (N₂)150 K200 K300 K500 K800 K
Z of nitrogen at five temperatures. At 150 K attraction pushes Z down to 0.5306 near 75 bar; at 300 K it barely drops below 1 (0.9966 at 50 bar); at 500 K and 800 K it only rises. The temperature at which the initial slope is zero is the Boyle temperature: 326.2 K for N₂ by its reference equation.

At the Boyle temperature the two effects balance at low pressures and the gas follows Boyle's law over a wide pressure range. By the tool's reference equations it is 326.2 K for N₂, 408.5 K for argon, 508.6 K for methane and 722.0 K for CO₂: the more the molecules attract each other, the higher it is. That is why air, at room temperature, is close to ideal up to pressures of tens of bar.

The van der Waals equation

In 1873 van der Waals corrected the ideal-gas equation for both effects. Because of the size of the molecules, the free volume is not v but , with b the covolume (the volume taken up, effectively, by the molecules of a mole). Because of attraction, the pressure on the wall drops by an amount proportional to the number of attracting pairs of molecules, that is, to the square of the concentration, :

With a = b = 0 it is the ideal gas again. The remarkable thing is that this simple equation predicts the liquid: below a certain temperature, its isotherms have a maximum and a minimum, and one pressure corresponds to three volumes. The point where the maximum and the minimum merge is the critical point: there the isotherm has a horizontal inflection point.

Solving for a and b from Tc and Pc (both are well measured) gives the constants the tool uses, and a fixed value of the compressibility factor at the critical point:

For CO₂, with Tc = 304.13 K and Pc = 73.773 bar from the CoolProp constants list: a = 0.3657 Pa·m⁶/mol² (3.657 L²·bar/mol²) and b = 4.285×10⁻⁵ m³/mol (0.04285 L/mol). Textbooks often give values fitted to other measurements, such as a = 3.59 L²·atm/mol² and b = 0.0427 L/mol; with them the model's critical point comes out at 303.6 K and 73.89 bar. Both options are in the tool: the substance from the list, or «Other: data of the exercise» with a and b.

0.00.10.20.30.40.50.6020406080100120v (L/mol)P (bar)52.55 bar41.61 barcritical point (Tc = 304.1 K)330 KTc280 K
Van der Waals isotherms of CO₂. Below Tc they make a loop that is not physical: the system splits into liquid and vapor at the pressure of the horizontal line that leaves equal areas above and below (Maxwell construction). At 280 K the model gives 52.55 bar (green); the reference equation, 41.61 bar (red, from its saturated liquid to its saturated vapor). Dashed, the model's own liquid–vapor dome.

The equation as a cubic in Z

When P and T are known and the volume is sought, the equation is a cubic. Written for Z with and :

It has one real root (gas or supercritical fluid) or three. With three, the smallest is the liquid, the largest the vapor and the middle one has no physical meaning; the stable one is that of lowest Gibbs energy, that is, of lowest fugacity coefficient φ. For van der Waals, . The tool writes the cubic with its coefficients, all its roots with their ln φ and marks the stable one with ✓ (example 7).

0.00.10.20.30.40.50.60.70.8−0.03−0.02−0.010.000.010.02Zf(Z)Z = 0.1133liquid ✓Z = 0.2969not physicalZ = 0.6628vapor
The van der Waals cubic of propane at 25 °C and 20 bar (example 7): three roots; the liquid one has the lowest fugacity.

Redlich–Kwong and Peng–Robinson

Van der Waals captures the essentials, but its numbers are rather off: its Zc = 0.375 is larger than that of real substances: by their reference equations, 0.2894 for N₂, 0.2746 for CO₂ and 0.2294 for water. Its successors change the attraction term and make it depend on temperature:

Peng–Robinson adds the acentric factor ω, which measures how far the vapor pressure of the substance departs from that of a fluid of spherical molecules (ω ≈ 0 for argon and methane, 0.224 for CO₂, 0.344 for water). The three are cases of the same general cubic, , with the coefficients of the table:

Modelεσ (in ) (in )ZcNeeds
van der Waals0027/64 = 0.421881/8 = 0.1250.375Tc, Pc
Redlich–Kwong010.42748 (× )0.086641/3Tc, Pc
Peng–Robinson1 − √21 + √20.45724 × α(T)0.077800.3074Tc, Pc, ω

The tool's critical constants are those of the CoolProp 8.0.0 list (MIT license), which takes them from the reference equation of state of each substance; the substance card shows them and «Where these data come from» cites the source. Some of them:

SubstanceTc (K)Pc (bar)ωM (g/mol)
He5.19532.2832−0.38354.0026
H₂33.14412.964−0.2192.0159
N₂126.1933.9580.037228.014
Ar150.6948.63−0.0021939.948
O₂154.650.4640.022231.999
CH₄190.5645.9920.0114216.043
CO₂304.1373.7730.223944.01
C₃H₈369.8942.5120.152144.096
NH₃405.56113.630.255717.03
H₂O647.1220.640.344318.015

Corresponding states

If P, v and T are measured in units of the critical point, the reduced variables , and , the van der Waals equation loses a and b: substituting , and , it becomes the same for every substance,

This is the principle of corresponding states: different gases at the same Tr and Pr have (almost) the same Z. It follows from any two-constant model, and nature obeys it rather well for simple molecules, as the figure shows with the reference equations: at Tr = 1.2 the curves of N₂, CH₄ and CO₂ almost coincide. Water, with polar molecules that form hydrogen bonds, departs; that is why a third parameter such as ω is needed. The generalized compressibility charts of thermodynamics textbooks are these curves, for fluids of small ω.

01234560.30.40.50.60.70.80.91.0Pr = P/PcZN₂, CH₄, CO₂H₂O (ω = 0.34)van der WaalsTr = 1.2
Z against Pr at Tr = 1.2 with the reference equations: N₂, CH₄ and CO₂ almost on one curve (minima of 0.5354, 0.5239 and 0.5547); water reaches 0.4903. Dashed, van der Waals in reduced variables, the same for all.

In the first step of «Real gas» the tool writes the reduced temperature and, if the pressure was given, the reduced pressure: they are the first clue to how far the gas will depart from ideal.

When the ideal gas fails

The table sums up the examples of the «Real gas» view, with the deviation of the ideal gas from the reference equation:

CaseTrPrReal ZIdeal-gas error
N₂ at 25 °C and 200 bar (n in 50 L)2.3635.891.056+5.55 %
Steam at 400 °C and 100 bar (V)1.040.45320.8509+17.5 %
Methane at 25 °C and 200 bar (n in 50 L)1.5654.3490.8239−17.6 %
CO₂: 1 mol in 0.500 L at 300 K (P)0.9864—0.7765+28.8 %
N₂ at 150 K and 50 bar (v)1.1891.4720.6649+50.4 %
Propane at 25 °C and 20 bar (v): liquid0.80610.47050.07179+1290 %
  • With a small Pr (a few hundredths, like air at 1 atm) the ideal gas almost always works: N₂ at 300 K departs by less than 1% up to about 100 bar (Z = 0.9966 at 50 bar and 1.0052 at 100 bar).
  • Near the critical point (Tr ≈ 1, Pr ≈ 1) is where it fails most: CO₂ at 300 K and N₂ at 150 K.
  • Below Tc and at a pressure above the vapor pressure the substance is a liquid, and the ideal gas makes no sense at all (propane: an error of over 1000%).
  • At high Tr and high Pr («permanent» gases strongly compressed) the size of the molecules dominates and Z > 1: the ideal gas overestimates the amount that fits in a cylinder.
In the «Ideal gas» view the tool warns when the pressure goes over 10 bar or the temperature drops below 150 K, and suggests comparing under «Real gas». The cubic equations cut the error a lot (Redlich–Kwong and Peng–Robinson stay, in these cases, within a few percent), but in the liquid only Peng–Robinson is acceptable.

How to use the simulator

The tool is under Chemistry → Ideal and real gases. At the top, under «What do you want to compute?», you choose one of four views; below, «Examples» loads a problem into the matching view. On the right you get the result, a figure and the «Step by step», with the button for the detailed solution in PDF.

ViewWhat you typeWhat it gives
«Ideal gas»under «1. What you know about the gas», three of «Pressure P», «Volume V», «Temperature T» and «Amount n», each with its unit; under «2. Mass and density (optional)», «Formula or molar mass M», «Mass m» or «Density ρ»everything that can be solved for, with the formula of each result; it warns if the data do not agree
«Change of state»P, V, T and n of «State 1» and «State 2»; the value sought left empty; those that do not change left empty (or equal)the value sought, the law that applies and the check
«Mixtures (Dalton)»: «Gas mixture»each gas with its amount and «Given as» mol, grams, mole fraction or partial pressure («+ Add gas»); and two of «Temperature», «Vessel volume» and «Total pressure»total pressure, moles, mean molar mass, density and the table with n, m, x, mass % and partial pressure of each gas
«Mixtures (Dalton)»: «Gas collected over water»the gas, «Water temperature», «Total (barometric) pressure» and «Volume collected» or «Amount of gas»dry-gas pressure, water vapor pressure, moles or volume and the error of forgetting the vapor
«Real gas»the «Substance» (from the list or «Other: data of the exercise (a, b or Tc, Pc, ω)…»), T and two of P, V and n (with V and n empty you get the molar volume)the result of each model with its Z, the phase and the deviation from the «Reference equation»; the plot of Z against P; the constants of each model and the cubic with its roots
  • Numbers accept a decimal comma and scientific notation. Each field has its unit selector: pressure in atm, kPa, bar, mmHg, Pa, MPa or psi; volume in L, mL or m³; temperature in °C, K or °F.
  • With the volume in m³ the tool works in SI (Pa, m³, kg) and writes R = 8.3145 Pa·m³/(mol·K); with L, in L and the chosen pressure unit.
  • In «Real gas», the substance card gives M, Tc, Pc and ω, and «Where these data come from» cites CoolProp and the reference equation. The first time a substance is chosen, the tool loads its data (it says so meanwhile).
  • The result cards of «Real gas» are «Ideal gas», «van der Waals», «Redlich–Kwong», «Peng–Robinson» and «Reference equation»; under each number come Z, the deviation in % and the phase (gas, vapor, liquid, supercritical).
  • If the data are too many or contradict each other, the tool does not guess: it says which relation fails and by how much, or what is missing.

Common mistakes

  • Using the temperature in °C in PV = nRT or in the ratios of the gas laws.
  • Mixing units: R = 0.08206 requires liters and atmospheres; with kPa you must use 8.314 L·kPa/(mol·K).
  • Applying 22.4 L/mol away from 0 °C and 1 atm: at 25 °C and 1 atm it is 24.47 L/mol.
  • Splitting the total pressure by mass: partial pressures follow the moles (x = n/total n), not the grams.
  • Forgetting the water vapor of a gas collected over water: at 25 °C you get about 3% too many moles.
  • Taking the wrong root of the cubic, or the middle one, which has no physical meaning.
  • Believing that the ideal gas always overestimates the pressure: with Z > 1 (crowded molecules) it underestimates it.
  • Using van der Waals as if it were exact: it is the simplest of the cubics; in the liquid it fails by a lot.

Worked examples

Example 1How much CO₂ fits in a tank

A 10.0 L tank holds CO₂ at 5.00 atm and 20 °C. How many moles and how many grams are there? What is the density of the gas?

Solution

  1. Absolute temperature: K. With liters and atmospheres, L·atm/(mol·K).
  2. mol.
  3. g/mol, so g.
  4. Density: g/L, the same as gives without going through n. At 5 atm CO₂ is five times denser than at 1 atm.
mol, g, g/L.

Solve it in Simuveliq

  1. In Chemistry → Ideal and real gases, under «Examples», choose Grams of CO₂ in a 10.0 L tank at 5.00 atm and 20 °C: it opens the «Ideal gas» view with P, V, T and the formula CO2 typed and n empty.
  2. The cards give «Amount of gas n» 2.079 mol, «Mass m» 91.48 g and «Density ρ» 9.148 g/L, each with its formula. In the «Step by step», the first step turns the 20 °C into 293.15 K and writes R = 0.082057 L·atm/(mol·K), and M(CO₂) = 44.009 g/mol comes from the formula.

Example 2Molar mass from the density

An unknown gas has a density of 1.25 g/L at 0 °C and 1 atm. What is its molar mass? Which gas could it be?

Solution

  1. From : g/mol.
  2. It amounts to saying that a mole takes up 22.41 L at 0 °C and 1 atm and weighs g.
  3. Candidates with that molar mass: N₂ (28.014 g/mol), CO (28.010) and C₂H₄ (28.054). The density alone does not tell them apart; with three significant figures in the density, any of the three fits.
g/mol: N₂, CO or C₂H₄.

Solve it in Simuveliq

  1. Under «Examples» choose Molar mass of a gas with density 1.25 g/L at 0 °C and 1 atm. The «Molar mass M» card gives 28.02 g/mol with the formula M = ρ·R·T / P.
  2. Below, the tool says what it cannot compute: without an amount (V, n or m) there is no volume and no moles. Type 56.0 g in «Mass m» and n and V appear.

Example 3Combined law: taking a volume to 0 °C and 760 mmHg

500 mL of a gas are collected at 740 mmHg and 22 °C. What volume would it take up at 0 °C and 760 mmHg?

Solution

  1. The amount does not change: , with temperatures in kelvin: K and K.
  2. mL.
  3. Sanity check: more pressure and less temperature both shrink the gas; it comes out at 0.9011 times the initial volume.
mL.

Solve it in Simuveliq

  1. Under «Examples» choose Combined law: 500 mL at 740 mmHg and 22 °C, to 0 °C and 760 mmHg: the «Change of state» view with the two states and V₂ empty.
  2. The card gives V₂ = 450.6 mL (×0.9011 relative to state 1) and «Law that applies»: «Combined gas law». The step by step converts the temperatures to kelvin, solves for V₂ and checks that P·V/T is the same in both states.

Example 4A mixture of three gases

A 10 L tank at 25 °C holds 2.00 g of He, 8.00 g of O₂ and 14.0 g of N₂. Find the total pressure, the partial pressure of each gas, the mean molar mass and the density of the mixture.
He1.222 atmx = 0.3999O₂0.6117 atmx = 0.2001N₂1.223 atmx = 0.4total P = 3.057 atm10 L at 25 °C with 2.00 g of He, 8.00 g of O₂ and 14.0 g of N₂

Solution

  1. Moles: He ; O₂ ; N₂ . Total mol.
  2. Total pressure as a single gas: atm.
  3. Mole fractions 0.3999, 0.2001 and 0.4, and partial pressures : He 1.222 atm, O₂ 0.6117 atm, N₂ 1.223 atm (they add up to 3.057).
  4. Mean molar mass g/mol, and density g/L, the same as gives.
atm; He 1.222, O₂ 0.6117 and N₂ 1.223 atm; g/mol; g/L.

Solve it in Simuveliq

  1. Under «Examples» choose 10 L tank with 2.00 g of He, 8.00 g of O₂ and 14.0 g of N₂ at 25 °C: the «Mixtures (Dalton)» view, «Gas mixture», with each gas «Given as» grams.
  2. The cards give «Total pressure» 3.057 atm, «Total moles» 1.249 mol, «Mean molar mass» 19.209 g/mol and «Mixture density» 2.4 g/L; the table, the n, m, x, mass % and partial pressure of each gas. Change the He to 4.00 g and watch every fraction change.

Example 5Oxygen collected over water

250 mL of O₂ are collected over water at 25 °C, with a barometric pressure of 755 mmHg and the water level equal inside and out. How many moles and grams of dry O₂ are there?
collected gas: O₂ + water vaporsame level inside and outP(atm) = P(O₂) + P(H₂O)P(H₂O) = vapor pressure of water at T

Solution

  1. Water vapor pressure at 25 °C (equation of state of water): 3.170 kPa = 23.78 mmHg.
  2. Dalton: mmHg.
  3. With R in L·mmHg: mol, and g.
  4. If the vapor were forgotten and the 755 mmHg used, you would get 0.01015 mol: 3.25% too much.
mmHg, mol, g.

Solve it in Simuveliq

  1. Under «Examples» choose O₂ collected over water: 250 mL at 25 °C and 755 mmHg: the «Mixtures (Dalton)» view on «Gas collected over water».
  2. The cards give «Dry gas pressure» 731.2 mmHg, «Water vapor pressure» 23.78 mmHg, «Moles of dry gas» 0.009832 mol and «Mass of dry gas» 0.3146 g, and a notice with the error of forgetting the vapor (3.25%). Change the «Water temperature» to 40 °C: the vapor pressure rises a lot and so does the error.

Example 6CO₂ near its critical point: four models

One mole of CO₂ takes up 0.500 L at 300 K. Compute the pressure with the ideal gas and with van der Waals, and compare it with the reference equation.

Solution

  1. Molar volume m³/mol. Ideal gas: Pa = 49.89 bar.
  2. Van der Waals with Tc = 304.13 K and Pc = 73.773 bar: Pa·m⁶/mol², m³/mol. Repulsion term bar; attraction term bar; bar, .
  3. The reference equation (Span and Wagner) gives 38.74 bar, . The ideal gas overshoots by 28.8%; van der Waals by 3.09%; Redlich–Kwong gives 38.95 bar (+0.55%) and Peng–Robinson 38.2 bar (−1.4%).
  4. With , CO₂ is almost at its critical point, where the attraction between molecules counts a lot: that is why the ideal gas fails so badly.
Ideal 49.89 bar; van der Waals 39.94 bar; reference 38.74 bar ().

Solve it in Simuveliq

  1. Under «Examples» choose CO₂: pressure of 1 mol in 0.500 L at 300 K: the «Real gas» view with the substance «Carbon dioxide (CO₂)» and P empty.
  2. The five cards give 49.89, 39.94, 38.95, 38.2 and 38.74 bar, with their Z and deviation (+28.8%, +3.09%, +0.55%, −1.4%). The step by step writes a and b of each model and the two van der Waals terms; the «Comparison» sums it up in a table.
  3. Change the volume to 5 L: every model approaches the ideal one (Z almost 1), because the molecules end up ten times further apart.

Example 7Propane at 20 bar: the cubic with three roots

What volume does a mole of propane take up at 25 °C and 20 bar? Solve it with van der Waals and explain which root is chosen.
0.00.10.20.30.40.50.60.70.8−0.03−0.02−0.010.000.010.02Zf(Z)Z = 0.1133liquid ✓Z = 0.2969not physicalZ = 0.6628vapor

Solution

  1. With Tc = 369.89 K and Pc = 42.512 bar: and . The cubic is .
  2. It has three roots: (liquid), (not physical) and (vapor). Their are −0.3725, −0.2356 and −0.2702: the liquid one is the lowest, so the stable state is the liquid.
  3. m³/mol = 0.1404 L/mol.
  4. The reference gives 0.08898 L/mol (liquid): van der Waals overshoots by 57.8%, Peng–Robinson stays at 0.08514 L/mol (−4.32%) and the ideal gas (1.239 L/mol) makes no sense here.
Liquid: van der Waals 0.1404 L/mol, Peng–Robinson 0.08514 L/mol, reference 0.08898 L/mol.

Solve it in Simuveliq

  1. Under «Examples» choose Propane at 25 °C and 20 bar: three roots, liquid. The cards give 1.239 L (ideal gas), 0.1404 L (van der Waals), 0.09908 L (Redlich–Kwong), 0.08514 L (Peng–Robinson) and 0.08898 L (reference), all in the liquid phase except the ideal gas.
  2. In the van der Waals step the tool writes the cubic, its three roots with the chosen one marked ✓ and the three ln φ. Lower the pressure to 5 bar: it falls below the models' vapor pressure and the stable root becomes the vapor one.

Example 8A nitrogen cylinder at 200 bar: Z > 1

A 50 L cylinder holds N₂ at 25 °C and 200 bar. How many moles and how many kilograms of N₂ does it hold? Compare the ideal gas with the reference equation.

Solution

  1. Ideal gas: mol, that is kg.
  2. Reduced: and . Far above the critical temperature and at high pressure, the size of the molecules dominates: Z > 1.
  3. The reference equation gives and mol ( kg). The ideal gas overestimates the charge by 5.55%; Redlich–Kwong gives 391.7 mol (+2.49%) and Peng–Robinson 393.0 mol (+2.84%).
mol (10.71 kg) with ; the ideal gas would give 403.4 mol (11.30 kg), 5.55% too much.

Solve it in Simuveliq

  1. The button opens the «Real gas» view with «Nitrogen (N₂)», 25 °C, 200 bar, 50 L and the amount empty (this example is not in the «Examples» list).
  2. The cards give 403.4 mol (ideal gas), 400.9 (van der Waals), 391.7 (Redlich–Kwong), 393 (Peng–Robinson) and 382.2 mol (reference, Z = 1.056, supercritical). In the plot of Z against P every curve rises above 1.
  3. Change the unit of «Amount n» to kg to read the mass: 10.71 kg with the reference.

Related topics