Skip to main content
Engineering LibreTexts

4.5: The first law of thermodynamics for closed systems

  • Page ID
    88842
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    The first law of thermodynamics is essentially an energy conservation law. Both heat and work are energy transfer mechanisms. They play an important role in the first law of thermodynamics. Table 4.4.1 summarizes the main differences between heat and work, and internal energy.

    Table 4.4.1 Comparison of heat, work and internal energy
      Heat and Work Internal Energy
    Characteristic Both heat and work are energy transfer mechanisms. They are not properties of a system. Internal energy is a property of a system.
    Interaction with the system Both heat and work must cross the boundary between a system and its surroundings. A system possesses a total energy and an internal energy.
    Magnitude Both heat and work are path functions; their magnitudes depend on the states and the specific process path. Internal energy is a state function; its magnitude depends on the state only.

    The first law of thermodynamics states that the change in the total energy stored in a system equalsthe net energy transferred tothe system in the formof heat and work.

    \[\Delta \rm{energy = + in - out}\]

    The change in the total energy of a system during a process from states 1 to 2 can be expressed as

    \[\Delta E = E_2 - E_1 ={}_{1}Q_{2} - {}_{1}W_{2}\]

    If the changes in the kinetic and potential energies of the system are negligible, i.e., \Delta KE = \Delta PE = 0, then the first law of thermodynamics for a closed system can be simplified as

    \[\Delta U = U_2-U_1 = {}_{1}Q_{2} - {}_{1}W_{2}\]

    where

    \[E\]

    \[U\]

    \[Q\]

    \[W\]

    Subscripts 1 and 2 refer to the initial and final states of a process.

    A common sign convention for heat and work transfer to a closed system.
    Figure 4.4.1 A common sign convention for heat and work transfer to a closed system

    The following procedure may be followed when solving problems with the first law of thermodynamics.

    1. Sketch the physical system described in the problem and show its main components.
    2. Set up an appropriate closed system by drawing the system boundary. How a system is set up may determine if a means of energy transfer can be regarded as heat or work.
    3. Indicate the heat and work transferred into or out of the system and their signs, see Figure 4.4.1.
    4. Identify the type of the processes (e.g., isobaric, isothermal, isochoric, polytropic, or isentropic). Show the processes on the P-v and T-v diagrams if possible, and list all of the known and unknown states.
    5. Apply the first law of thermodynamics to the closed system, eliminating the terms that are not applicable to the system.
    6. Solve for the unknowns by combining the first law of thermodynamics with the ideal gas law, thermodynamic tables, and other physical laws as appropriate.

    The following examples demonstrate how to apply the first law of thermodynamics to closed systems.

    Example 1

    Consider the vapour compression refrigeration cycle consisting of a compressor, condenser, expansion device, and evaporator as shown. The compressor must consume work, W_{in}, from an external energy source such as electricity. The evaporator and condenser absorb and reject heat, Q_H and Q_L, respectively. What is the relation between W_{in}, Q_H, and Q_L?

    Vapor compression refrigeration cycle consisting of a compressor, condenser, expansion device and evaporator
    Figure 4.4.e1 Vapor compression refrigeration cycle consisting of a compressor, condenser, expansion device, and evaporator

    Solution:

    The vapour compression refrigeration cycle can be regarded as a closed system with the initial and final states being identical; therefore, \Delta U = 0.

    \[\because \Delta U = 0=Q-W\]

    \[\therefore Q_L-Q_H-(-W_{in})=0\]

    \[\therefore Q_H=Q_L+W_{in}\]

    Note the sign convention for heat: in (+), out (-) and for work: in (-), out (+). This relation can be interpreted as the total energy transferred out of the cycle remains the same as the total energy transferred into the cycle.

    Example 2

    A rigid tank has two rooms, both containing R134a at the following initial states.

    Room A: m= 2 kg, P=200 kPa, v=0.132 m3/kg

    Room B: m= 3 kg, P=500 kPa, T=100°C

    A crack is developed in the partition between the two rooms, which allows R134a in the tank to mix. Assume the mixing takes place slowly until R134a in the whole tank reaches a uniform state at 50°C. Find the heat transfer during this process. The process can be treated as a quasi-equilibrium process.

    A rigid tank with two rooms
    Figure 4.4.e2 A rigid tank with two rooms

    Solution:

    First, set the whole rigid tank as the closed system.

    Because the volume of the tank remains constant, the boundary work during the mixing process is zero; therefore, from the first law of thermodynamics,

    \[\because \Delta U = Q - W\]

    \[\therefore \Delta U = Q\]

    The heat transfer during the process depends on the internal energies of the initial and final states.

    \[\begin{align*} \Delta U &= U_3 - (U_1 + U_2) \\&= (m_1 + m_2)u_{3} - (m_{1}u_{1} + m_{2}u_{2}) \end{align*}\]

    where the subscripts 1, 2, and 3 represent the initial states of R134a in rooms A and B, and the final state of R134a in the whole tank, respectively.

    Second, find the specific internal energies, u1, u2 , and u3.

    Room A at the initial state: P =200 kPa, v = 0.132 m3/kg

    From Table C1, at T = -10°C, Psat = 200.6 kPa, vg = 0.09959 m3/kg. Since v > vg, R134a at this state is a superheated vapour.

    From Table C2, at P = 200 kPa, T = 60°C, v = 0.132057 m3/kg ≈ 0.132 m3/kg

    1cc5a3f158868954428ff28852f1c3ee.png

    \[\mathbb{V}_A = m_{1}v_{1} = 2 \times 0.132 = 0.264 \ \rm{m^3}\]

    Room B at the initial state: P =500 kPa, T = 100°C

    From Table C1, at T = 100°C, Psat = 3972.38 kPa. Since P < Psat, R134a at this state is a superheated vapour.

    From Table C2, at P =500 kPa, T = 100 °C

    eb718a6a10932b592aab4c8b5927c405.png

    a1965cd38b322f331ebf7f9f482b6680.png

    \[\mathbb{V}_B = m_{2}v_{2} = 3 \times 0.058054 = 0.1742 \ \rm{m^3}\]

    The final state of R134a in the whole tank: T = 50°C

    49c84bc91eb04db2455191f7d3b7504c.png

    From Table C1, at T = 50°C, vg = 0.015089 m3/kg. Since v3 > vg, R134a at the final state is a superheated vapour.

    From Table C2,

    At P = 200 kPa, T = 50°C, v = 0.127663 m3/kg, u = 419.29 kJ/kg

    At P = 300 kPa, T = 50°C, v = 0.083723 m3/kg, u = 418.19 kJ/kg

    Use linear interpolation,

    \[\because\dfrac{P_{3}-200}{300-200} =\dfrac{0.0876-0.127663}{0.083723-0.127663} =\dfrac{u_{3} - 419.29 }{418.19-419.29}\]

    \[\therefore P_3 = 291.2 \ \rm{kPa}\]

    Last, substitute u1, u2 and u3 into the simplified first law,

    \[\begin{align*} Q &= \Delta U = (m_1 + m_2)u_{3} - (m_{1}u_{1} + m_{2}u_{2}) \\& = 5 \times 418.287 - (2 \times 427.51 + 3 \times 459.65) \\&= -142.535 \ \rm{kJ}\end{align*}\]

    During the mixing process, the heat is transferred from the tank to the surroundings; therefore, the sign for the heat transfer is negative.

    Example 3

    Consider 0.5 kg of ammonia in a piston-cylinder device initially at P1=100 kPa, T1=0oC. The ammonia is compressed until its pressure reaches P2=150 kPa in a polytropic process with n=1.25. Calculate the heat transfer in this process.

    Ammonia in a piston-cylinder device
    Figure 4.4.e3 Ammonia in a piston-cylinder device

    Solution:

    First, set ammonia in the piston-cylinder as the closed system. From the first law of thermodynamics,

    \[\because \Delta U = Q - W\]

    \[\therefore Q = W + \Delta U = W + m(u_2 - u_1)\]

    Second, consider the boundary work in a polytropic process. The specific volumes are unknowns

    \[W = \dfrac{P_{2}\mathbb{V}_{2} - P_{1}\mathbb{V}_{1}}{1-n} = \dfrac{m\left({P_{2}{v}_{2} - P_{1}{v}_{1}}\right)}{1-n}\]

    Third, find the specific volumes and specific internal energies at both initial and final states.

    At the initial state: P1 = 100 kPa, T1 = 0°C. From Table B1, Psat = 429.39 kPa at 0°C. Since P1 < Psat, ammonia is a superheated vapour.

    From Table B2,

    v1 = 1.31365 m3/kg, u1 = 1504.29 kJ/kg.

    At the final state P2 = 150 kPa. The process is polytropic with n =1.25.

    \[\because P_1v_{1}^n = P_2v_{2}^n\]

    e120cb7bb5baf4fe1f78220b131f2818.png

    From Table B1: at T = -25 °C and P = 151.47 kPa ≈ 150 kPa, vg = 0.771672 m3/kg. Since v2 > vg, ammonia at the final state is a superheated vapour.

    From Table B2,

    At P = 150 kPa, T = 20°C, v = 0.938100 m3/kg, u = 1535.05 kJ/kg

    At P =150 kPa, T = 30°C, v = 0.972207 m3/kg, u = 1551.95 kJ/kg

    Use linear interpolation,

    \[\because\dfrac{T_{2}-20}{30-20} =\dfrac{0.94974-0.938100}{0.972207-0.938100} =\dfrac{u_{2} - 1535.05 }{1551.95-1535.05}\]

    \[\therefore T_2 = 23.4 \ ^ \rm

    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Mechanical_Engineering/Introduction_to_Engineering_Thermodynamics_(Yan)/04:_The_First_Law_of_Thermodynamics_for_Closed_Systems/4.05:_The_first_law_of_thermodynamics_for_closed_systems), /content/body/p[74]/span, line 1, column 1
    
    \rm{C}\]

    Last, the heat transfer in this process can now be found from

    \[\begin{align*} Q &= W + \Delta U = m\dfrac{P_{2}{v}_{2} - P_{1}{v}_{1}}{1-n} + m(u_2 - u_1) \\&= 0.5 \left[ \dfrac{150 \times 0.94974 - 100 \times 1.31365}{1-1.25} + (1540.82 - 1504.29)\right] \\&= - 3.928 \ \rm{kJ}\end{align*}\]

    During this process heat is rejected to the surroundings; therefore, the sign for heat transfer is negative.

    Example 4

    A piston-cylinder device contains steam initially at 200oC and 200 kPa. The steam is first cooled isobarically to saturated liquid, then isochorically until its pressure reaches 25 kPa.

    1. Sketch the whole process on the P - v and T - v diagrams
    2. Calculate the specific heat transfer in the whole process
    Steam in a piston-cylinder device
    Figure 4.4.e4 Steam in a piston-cylinder device

    Solution:

    1. P - v and T - v diagrams

    P-v and T-v diagrams of the processes
    Figure 4.4.e5 P-v and T-v diagrams of the whole process

    2. Calculate the specific heat transfer

    First, set the steam in the piston-cylinder device as a closed system. From the first law of thermodynamics,

    \[\because\Delta u = q - w\]

    \[\therefore q= \Delta u + w = (u_3 - u_1) + w\]

    Second, analyze the processes.

    The process is isobaric from state 1 to state 2, then isochoric from state 2 to state 3. The specific work is the shaded area of the rectangle shown in the P - v diagram; therefore,

    \[w = P_1(v_3 - v_1)\]

    Third, determine the specific volumes and specific internal energies at states 1 and 3.

    At state 1, P1 = 200 kPa and T1 = 200oC.

    From Table A2,

    v1 = 1.08048 m3/kg, u1 = 2654.63 kJ/kg

    State 2 is saturated liquid water at P2 = 200 kPa.

    From Table A1,

    At T = 120 oC, P = 198.67 kPa, vf = 0.001060 m3/kg

    At T = 125 oC, P = 232.24 kPa, vf = 0.001065 m3/kg

    Use linear interpolation,

    \[\because \dfrac{v_{2}-0.001060}{0.001065-0.001060} =\dfrac{T_{2}-120}{125-120} =\dfrac{200-198.67}{232.24-198.67}\]

    \[T_2 = 120.2 \ ^ \rm

    ParseError: invalid DekiScript (click for details)
    Callstack:
        at (Bookshelves/Mechanical_Engineering/Introduction_to_Engineering_Thermodynamics_(Yan)/04:_The_First_Law_of_Thermodynamics_for_Closed_Systems/4.05:_The_first_law_of_thermodynamics_for_closed_systems), /content/body/p[98]/span, line 1, column 1
    
    \rm{C}\]

    At state 3, P3 = 25 kPa. v3 = v2 = 0.0010602 m3/kg.

    From Table A1, vf < v3 < vg; therefore, state 3 is a two phase mixture of saturated liquid and saturated vapour with T3 = Tsat ≈ 65oC.

    vf = 0.001020 m3/kg, vg = 6.19354 m3/kg

    uf = 272.09 kJ/kg, ug = 2462.42 kJ/kg

    The quality and specific internal energy of the two phase mixture are

    \[x = \dfrac{v_3 - v_f}{v_g - v_f} = \dfrac{0.0010602 - 0.001020}{6.19354 - 0.001020} = 6.5 \times 10^{-6}\]

    Note that state 3 is almost a saturated liquid with very small quality; therefore, u3 ≈ ug.

    Last, calculate the specific boundary work and specific heat transfer in this whole process

    In this cooling process, the volume decreases, resulting in a negative specific boundary work. The temperature and the internal energy decrease too. As a result, the specific heat transfer is negative indicating a heat loss from the system to its surroundings.

    Query \(\PageIndex{1}\)

    Media Attributions


    This page titled 4.5: The first law of thermodynamics for closed systems is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Claire Yu Yan (BC Campus) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    • Was this article helpful?