Thermodynamics deals with the interaction of one body with another in terms of quantities of heat and work. In thermodynamics, the system is defined as a quantity of matter or a region in space under investigation. Everything external to the system is environment or surroundings. The imaginary or actual surface separating the system from surroundings is known as the Boundary. It may be either fixed or movable.

**Closed system (m = constant):**

When there is an exchange of energy (work and heat) but not matter between the system and surrounding the system is known as control mass or closed system. For Example, a greenhouse is a closed system that exchanges heat but not work with its surroundings. Depending on the properties of its boundary a system exchanges work, heat, or both. An Adiabatic boundary does not allow the exchange of heat from the system to surroundings and a rigid body does not allow the exchange of work between system and surroundings.

**Isolated systems:**

An isolated system does not allow the exchange of heat, work, or matter between the system & surroundings. For example, an insulated container, such as an insulated gas cylinder.

**i.e** m_{in}=m_{out}=E_{in}=E_{out}=0

**Open system: **

In an open or control volume system, there is an exchange of energy i.e. heat, work, and matter between the system & surroundings. A boundary that allows the exchange of matter is known as the permeable boundary. For example, the ocean, turbine, water heater, car radiator, nozzle, etc. To analyze an open system, the energy of the system is always taken equal to the energy leaving the system.

**Other Type of Systems:**

**Rigid system:** It is a type of closed system in which the system interacts with the surroundings by exchanging heat only.

**Adiabatic system:** It is a closed or open system in which energy is transferred to its surroundings only as work (without transfer of heat or matter).

**Properties of a System:**

**Intensive properties:** Intensive properties are independent of the size of a system, for example, Density, Molar volume, Surface tension, Refractive index, Viscosity, Specific heat, temperature, Free energy per mole, pressure, etc. They are not additive in nature.

**Extensive properties:** These are properties that are dependent on the size of the system, for example, number of moles, volume, mass, entropy, free energy, enthalpy, heat capacity, internal energy, etc. They are additive in nature. The specific properties are per unit mass extensive properties, for example, specific mass, specific energy, specific volume, etc.

**Thermodynamic Process:**

The Thermodynamic process deals with the change of a system’s state from one state to another. The different types of thermodynamic process are Isothermal, Adiabatic, isobaric and isochoric.

In an **Isothermal process**, the temperature of the system remains constant [dE and dT = 0] during the state change. This process is carried out in a thermostat and the energy exchange takes place without any change in temperature. In an **Adiabatic process**, the exchange of energy between the system and surroundings does not occur [dQ = 0]. It is carried out in a perfectly insulated container. The temperature of the system might change during an adiabatic process. In an **Isobaric process**, the pressure of the system remains constant [dP = 0]. In an **Isochoric process**, the volume of the system remains constant [dV = 0].

**Cyclic Thermodynamic Process [\(\mathbf{\Delta }\) H = 0 and \(\mathbf{\Delta }\) E = 0]:**

**1.** In a cyclic process, a system returns to its initial state after undergoing a number of different thermodynamic processes.

**2.** A process that is carried out on its own without any external help, is known as Spontaneous Process.

**3.** In the Quasi-Static or reversible process, the system and its surroundings can be returned from its final state to its initial state without any changes in the thermodynamic properties of the universe. The irreversible processes are also known as the natural processes because all the processes that occur in nature are irreversible processes. It occurs due to the finite gradient between the two states of the system.

**Zeroth law of Thermodynamics:**

According to the Zeroth law of Thermodynamics, It two thermodynamic systems are in thermal equilibrium with the 3rd system then, all the three systems are in thermal equilibrium with each other.

**First Law of Thermodynamics:**

**\(\mathbf{\Delta }\)E = Q + W**

Where,

**\(\mathbf{\Delta }\)E =** change in the internal energy of system

**Q =** Heat transfer (to or from the system)

**W =** work done (either by the system or on the system)

If a system expands at a constant pressure P from volume \(V_{1}\)

**\(\mathbf{\Delta }\)E = q – P \(\mathbf{\Delta }\)V \(\mathbf{ [ \Delta }V= V_{2} -V_{1}]\)**

**Work done in different Thermodynamics Process:**

In an irreversible process, Work Done W = \(\mathbf{-\;P_{Ext}\;\;\Delta V}\)

In an isothermal reversible process, Work Done W = \(\mathbf{-\;2.303\;n\;R\;T\;\;log\;\;\frac{V_{2}}{V_{1}}}\)

Also, W = \(\mathbf{-\;2.303\;n\;R\;T\;\;log\;\;\frac{P_{1}}{P_{2}}}\)

In an Adiabatic reversible process, Work Done W = \(\mathbf{\frac{n\;R}{\gamma \;-\;1}\;\;[T_{2}\;-\;T_{1}]}\)

Where, \(\mathbf{\gamma }\)

**Entropy (S):**

Entropy changes with the change in the state of a system. The entropy change is given by:

\(\mathbf{\Delta \;S\;=\;\frac{q_{rev}}{T}}\)

Where \(q_{rev}\)**=** heat supplied reversibly and isothermally.

Entropy is maximum when the system is in equilibrium i.e. \(\mathbf{\Delta \;S\;=\;0}\)

**Second Law of Thermodynamics:**

The Second Law of Thermodynamics states that the state of the entropy of the entire universe is always increasing with time. Also, the changes in the entropy in the universe can never be -ve.

**Carnot Cycle:**

**Form the above Carnot cycle PV diagram:**

**1.** \(\mathbf{A\;\rightarrow \;B}\)

**2.** \(\mathbf{B\;\rightarrow \;C}\)

**3.** \(\mathbf{C\;\rightarrow \;D}\)

**4.** \(\mathbf{D\;\rightarrow \;A}\)

Now, the work done in different thermodynamic processes:

**1.** \(\mathbf{W_{AB}\;=\;-\;n\;R\;T_{2}\;ln\;\frac{V_{2}}{V_{1}}}\)

**2.** \(\mathbf{W_{BC}\;=\;C_{v}\;(T_{1}\;-\;T_{2})}\)

**3.**\(\mathbf{W_{CD}\;=\;-\;n\;R\;T_{1}\;ln\;\frac{V_{4}}{V_{3}}}\)

**4. **\(\mathbf{W_{DA}\;=\;C_{v}\;(T_{2}\;-\;T_{1})}\)

**Carnot Efficiency:**

\(\mathbf{eta \;=\;-\;\frac{W_{Total}}{q_{2}}\;=\;\frac{T_{1}\;-\;T_{2}}{T_{2}}\;=\;\frac{q_{1}\; +\;q_{2}}{q_{2}}}\)

**Entropy Change:**

\(\mathbf{\Delta \;S\;=\;n\;C_{v}\;ln\;\frac{T_{2}}{T_{1}}\;+\;n\;R\;ln\;\frac{V_{2}}{V_{1}}}\)

**1. Reversible irreversible isothermal contraction and expansion: (ideal gas)**

\(\mathbf{\Delta \;E\;=\;0,\;\Delta \;H\;=\;0, \;and\;\Delta \;S\;=\;n\;R\;ln\;\frac{V_{2}}{V_{1}}}\)

**2. Isobaric Heating or Cooling:**

\(\mathbf{\Delta \;E\;=\;C_{v}\;\Delta T,\;\Delta \;H\;=\;q_{p}\;=\;C_{p}\;\Delta T, \;and\;\Delta \;S\;=\;n\;C_{p}\;ln\;\frac{T_{2}}{T_{1}}}\)

**3. Isochoric Heating or Cooling:**

\(\mathbf{\Delta \;E\;=\;q_{v}\;=\;C_{v}\;\Delta T,\;\Delta \;H\;=\;C_{p}\;\Delta T, \;and\;\Delta \;S\;=\;n\;C_{v}\;ln\;\frac{T_{2}}{T_{1}}}\)

**4. Adiabatic process:**

\(\mathbf{\Delta \;E\;=\;C_{v}\;\Delta T,\;\Delta \;H\;=\;C_{p}\;\Delta T}\)

**5. For Irreversible process:**

\(\mathbf{\Delta \;S\;=\;n\;C_{v}\;\ln\;\frac{T_{2}}{T_{1}}\;+\;n\;R\;ln\;\frac{V_{2}}{V_{1}}}\)

**6. For Reversible adiabatic compression and expansion:**\(\mathbf{\Delta \;S\;=\;0}\)

**Third law of Thermodynamics:**

**Statement:** At absolute 0 Temperature, the entropy of a perfectly crystalline substance is 0.

By utilizing the third law of thermodynamics, the absolute value of entropy can be evaluated at room temperature (for pure substances). The standard absolute entropy is the entropy of a substance in its standard temperature and pressure i.e. at 1 atm and 298 K.

The absolute entropies can be utilized in calculating the changes in entropy by using the relation:

\(\mathbf{\Delta \;S^{\circ}\;=\;\sum \;\;S^{\circ}\;\;(Products)\;-\;\sum \;S^{\circ}\;\;(Reactants)}\)

**Gibbs Free Energy:**

G = H – TS and at constant pressure and temperature \(\mathbf{\Delta \;G\;=\;\Delta \;H\;-\;T\;\Delta \;S}\)

**1.** For Reversible process: \(\mathbf{\Delta \;G\;\leq \;0}\)

**2.** For Spontaneous Process: \(\mathbf{\Delta \;G\;< \;0}\)

**3.** For Equilibrium: \(\mathbf{\Delta \;G\;=\;0}\)