Working with the Ideal Gas Law

Author
Affiliation

Dr. Torsten Schenkel

School of Engineering and Built Environment, Sheffield Hallam University

Working with the ideal gas law 1

The Ideal Gas Law is the relation between three properties:

  • density \(\rho\),
  • temperature \(T\), and
  • pressure \(p\).

\[ p = \rho R T \]

ImportantWith three unknowns and only one equation, we cannot easily answer questions like:

“If one litre of air at pressure 1 bar is compressed to half the volume1, what is the pressure?”

TipMost would answer this question intuitively with:

“2bar”

Which is A correct answer. But there are, actually, an infinite amount of correct answers for this question.

In order for “2 bar” to be the correct answer, what must be the case?

In order for the simple relation

\[ p \propto \rho \quad \text{or} \quad \rho \propto p \]

to be true, we can easily see that \(R T\) in the ideal gas equation needs to be a constant, which - since \(R\) is always a constant - means the temperature needs to be constant.

We call this condition isothermal, i.e., “at the same temperature”.

Working with the ideal gas law 2

The Ideal Gas Law is the relation between three properties:

  • density \(\rho\),
  • temperature \(T\), and
  • pressure \(p\).

\[ p = \rho R T \]

With three variables, we can crate relationships between two of them by keeping the third fixed. These will be special cases, which are important for engineering thermodynamics:

  1. isothermal:

\[ T=\text{const.} \]

  1. isobaric:

\[ p=\text{const.} \]

  1. isochoric:

\[ \rho=\text{const.}\ \text{ or } \ v = \text{const.} \]

There is a forth important special case in engineering thermodynamics, which we will use a lot:

  1. isentropic, i.e., “at the same entropy”.

Isothermal

Isothermal processes typically happen slowly. Which means there is enough time for the temperature of the gas to equilibriate with the surroundings. This means that isothermal processes usually involve an exchange of heat with the surroundings.

 Boyle’s Law:

\[ p \propto \frac{1}{\mathcal{V}} \]

\[ p \mathcal{V} = k = \text{const.} \]

\[ p_1 \mathcal{V}_1 = p_2 \mathcal{V}_2 \]

Animation by NASA Gas Lab

Isobaric

Isobaric allow exchange of mass with the surroundings, so the pressure stays constant. The expansion of a heated gas in an open container is an example of an isobaric process2. The combustion in a jet engine, e.g., is often treated as an isobaric process. Isobaric processes are also typically characterised by exchange of heat.

 Charles’ Law:

\[ \mathcal{V} \propto T \]

\[ \frac{\mathcal{V}}{T} = \text{const.} \]

\[ \frac{\mathcal{V}_1}{T_1} = \frac{\mathcal{V}_2}{T_2} \]

Animation by NASA Gas Lab

Isochoric

Isochoric changes fix the volume and mass in a closed system (no mass transfer across the system boundary). The increase of pressure of a heated gas in an closed container is an example of an isochoric process. The combustion in a piston engine, e.g., is often treated as an isochoric process (taking place when the piston is at top dead centre).

Guy-Lussac’s Law:

\[ p \propto T \]

\[ \frac{p}{T} = \text{const.} \]

\[ \frac{p_1}{T_1} = \frac{p_2}{T_2} \]

Animation by NASA Gas Lab

A general process: polytropic

Isothermal, isobaric, and isochoric processes, which keep one of temperature, pressure, and density constant, are idealised processes, which are useful for engineering analysis of systems3.

If we allow all three properties to change, we introduce a second equation in addition to the ideal gas equation:

TipThe set of equation describing a general process are then:

\[\begin{eqnarray} p &=& \rho R T \\ p v^n &=& p \left(\frac{1}{\rho}\right)^n = \text{const.} \end{eqnarray}\]

Where polytropic coefficient \(n\) can take any value \(0 \leq n \leq \infty\).

WarningThe idealised processes can be described using specific values for \(n\):
Process \(n\)
Isochoric (const. volume) \(n=\infty\)
Isothermal (const. temperature) \(n=1\)
Isobaric (const. pressure) \(n=0\)
Isentropic (const. entropy) \(n=\gamma\)

Another idealised process: isentropic

Isentropic means “at the same entropy”. If there is no change in entropy, the process is reversible4.

In order for a process to be considered isentropic there must be no energy transfer through the system boundary: the system must be adiabatic, or perfectly isolated5, or must happen very fast6, so no significant heat can transfer.

In an isentropic compression, e.g., the compression in a jet engine7, the energy due to work (e.g., that done by the compressor) is split into an increase in pressure and an increase in temperature, defined by the ratio of specific heats8, which is a material property:

\[ \gamma = \frac{c_p}{c_v} \]

Compression and expansion in a jet engine is typically treated as an isentropic process.

Isentropic ratios

Using the ideal gas equation and \(p/\rho^\gamma = \text{const.}\), we can solve for ratios:

\[\begin{equation} \begin{aligned} \frac{T_2}{T_1} =& \left(\frac{p_2}{p_1}\right)^{\left(\frac{\gamma-1}{\gamma}\right)} = \left(\frac{\rho_2}{\rho_1}\right)^{\left(\gamma-1\right)}\\ \frac{p_2}{p_1} =& \left(\frac{T_2}{T_1}\right)^{\left(\frac{\gamma}{\gamma-1}\right)} = \left(\frac{\rho_2}{\rho_1}\right)^{\left(\gamma\right)}\\ \frac{\rho_1}{\rho_2} =& \left(\frac{T_1}{T_2}\right)^{\left(\frac{1}{1-\gamma}\right)} = \left(\frac{p_1}{p_2}\right)^{\left(\frac{1}{\gamma}\right)} \end{aligned} \end{equation}\]

The value of the ratio of specific heats, \(\gamma\), can usually be considered to be 1.4 for dry air.

Compression and expansion in a jet engine is typically treated as an isentropic process.

Summary

  • the ideal gas law can be used for most gases unless the pressure and temperature are very high, or very low.

  • by fixing one of the three properties, we get simplified laws for isothermal, isobaric, and isochoric changes:

    • Boyle’s Law, for isothermal (fixed temperature)
    • Charles’ Law, for isobaric (fixed pressure)
    • Guy-Lussac’s Law, for isochoric (fixed density)
  • these special cases are useful in engineering applications, but they are merely three out of an infinite number of solutions.

    The general solution is the polytropic change.

    • out of the polytropic changes, the ratio of specific heats defines a fourth special solution:

      The isentropic solution describes changes that are reversible, i.e., do not create entropy.

References

Çengel, Yunus A., John M. Cimbala, and Afshin Jahanshahi Ghajar. 2022. Fundamentals of Thermal-Fluid Sciences. Sixth edition, international student edition. New York, NY: McGraw Hill.

Footnotes

  1. Which we can also express as doubling the density!↩︎

  2. Gas will be expelled from the container when the gas expands due to heating, and gas will be pulled into the container, when the gas contracts due to cooling↩︎

  3. Together with the isentropic process they are used to allow simple, optimum case, calculations. For realistic processes, we then will introduce efficiency factors↩︎

  4. In natural process, isentropic, reversible processes are impossible. However, they are a very good engineering approximation. And again, we will use an efficiency factor to account for entropic losses.↩︎

  5. “Adiabatic” (from greek: ‘impassable’) means that there is no heat transferred between the system and the environment.↩︎

  6. Technically, infinitely fast, but we use the isentropic approximation for processes that happen very fast.↩︎

  7. Which we treat ↩︎

  8. The ratio of specific heats is also called the isentropic coefficient.↩︎