Chemical Engineering Tutorials

Thursday, 3 April 2025

Thermodynamics of Energy Conversion

1. Vapour Power Cycles

Power cycle is a process where devices are used to continuously produce power. A typical vapor power cycle is the steam power plant shown below:

In this system:

  • the boiler receives heat from a high temperature source and converts liquid water into high pressure and high-temperature steam.
  • This steam is then fed to a turbine that drives an electric generator. The steam expands through the turbine and exhausts at a low pressure. This expansion process occurs adiabatically and is nearly as reversible as possible.
  • The exhaust from the turbine is sent to a condenser where cooling water is used. A pump is used to increase the pressure of the liquid condensate. A small fraction of the work obtained from the turbine is used to operate the pump.

The most efficient cycle that can operate between two constant temperature reservoirs, TH and TC is the Carnot engine and its thermal efficiency is given by:

                           

Let us consider a typical nuclear power plant that has a capacity of 750,000 kW. Steam is generated from a boiler at around 300°C and 7 MPa. The condenser operates at around 40°C and 7 kPa. The thermal efficiency of a Carnot engine operating between these two temperatures is:

This means that, in the best-case scenario the power plant can only convert 45% of heat received by the boiler into work while the other 55% is discarded to the surroundings. 

In practice, the efficiency of an actual power plant will be much less than that of a Carnot engine. If we assume that η = 0.3 then:

The heat of vaporization of water is approximately 2260 kJ/kg. Therefore, the steam circulation rate is:

The specific volume of steam at 300°C and 7 MPa is 0.02947 m3/kg and a reasonable velocity for high-pressure steam in a pipe is 25 m/s. Hence, the diameter of the pipe is:

The representation of a Carnot heat engine on a T-S diagram is:

Shaft Work in a Reversible Steady-State Process

In the analysis of a power cycle, it is necessary to calculate the work required for the pump to increase the pressure of the exit stream from the condenser to the boiler pressure, i.e., process 1 → 2. In a reversible steady-state process, the equation to calculate the shaft work is derived as follows.

The first law of thermodynamics for a closed system is given by:

Note that equations 3 and 6 consist of only properties and their differential changes.

These properties and their changes are state functions and are not dependent on the path or process involved. Therefore, both equations hold for all reversible and irreversible processes and for a change of state in either a steady-state flow system or a closed system.

Now consider the first law of thermodynamics for a steady-state flow system

Thus, the reversible shaft work in a steady-flow process with negligible changes in kinetic and potential energies is given by:

The power required can be obtained by multiplying equation 12 by the mass flow rate, ṁ = Q̇ρ. The result is:

2. Rankine Cycle

Named after William J.M. Rankine (1820-1872), the Rankine cycle is the ideal cycle for a simple power plant. As was shown in the T-S diagram of a Carnot cycle from the previous section, the fluid at the exit of a condenser i.e., state 1 is a mixture of liquid and vapour. Practically, it is much easier to pump a pure liquid rather than a two-phase mixture. Thus, for a Rankine cycle, state 1 is a saturated liquid.

The Rankine cycle can be represented on a T-S diagram as follows:

In a Rankine cycle with superheat, the steam at the exit of the boiler is superheated as shown:

In analyzing the Rankine cycle, it is helpful to think of the efficiency depending on the average temperature at which heat is supplied and the average temperature at which heat is rejected. 

Thus, if the boiler and condenser pressures are the same, the efficiency of a Rankine cycle with superheat is greater than the efficiency of a Rankine cycle.


Friday, 21 February 2025

Fluid Statics and Pressure Measurement

Let us determine the pressure at any point in a fluid a rest. For this, let us consider a wedge-shaped particle that is exposed on all sides to a fluid. This is presented as follows:

The cross section of the particle can be used to sketch a free-body diagram, as shown below:

The dimensions Δx, Δy, and Δz are small and approach zero as the particle shrinks to a point. Pressure and gravity are the only forces considered to be acting on the particle. Applying Newton’s second law in the x- and z-directions respectively, we obtain the following equations;

where:

  • px, pz, and ps are average pressures acting on the three corresponding faces
  • ax and az are the accelerations
  • ρ is the particle density

The net force equals zero in a static fluid. After simplification, with ax = az = 0, these two equations become:

pxΔz – psΔs(sinθ) = 0                              and

pzΔx – psΔs(cosθ) – (ρg/2)ΔxΔz = 0

(ρg/2)ΔxΔz can be neglected as it is a higher-order term containing ΔxΔz, which is very small in comparison to the other terms. From the geometry of the wedge, we find that:

                                      Δz = Δs sinθ              and            Δx = Δs cosθ      

Since θ is chosen arbitrarily chosen, substitution into the pressure equations we obtain:

This shows that pressure at a point is the same in all directions and is applicable to both 2 dimension and 3-dimension cases.  

Let us consider an element of a fluid at rest, as illustrated below:

The element chosen has a volume, dx dy dz, and is sketched on a coordinate system where the positive z-direction is downward, coincident with the direction of the gravity force.

The following figure is a view of the element looking in the positive y-direction; the force acting on the right face is pdydz and that on the left face is (p + (∂p/∂x)dx)dydz, both normal to their respective surfaces. 

Summing forces in the x-direction, we have the following for a static fluid:

this means that pressure does not vary with respect to x. Similarly, for the y-direction we can assume the same as x-direction, hence:

These two equations show that there is no pressure variation in any lateral direction.

If we create a free body diagram for the z-direction and add up the forces, we obtain:


This shows that pressure does vary in a static fluid in the z-direction i.e., pressure increases with depth. This is mathematical shown by integrating both sides of the above equation:

where point 1 is a reference point such as the free surface of a liquid and point 2 is a point of interest. Since the density is a constant for incompressible fluids, we get: 

p2 – p1 = ρg(z2 – z1) = ρgΔz

where Δz is the depth below the liquid surface. This relationship is the basic equation of hydrostatics and is often written as:

Δp = ρgz


Wednesday, 8 January 2025

Second Law of Thermodynamics Solved Examples

Entropy generation calculations inform us about the inefficiency of a process, i.e., the higher the generation of entropy, the higher the amount of lost work.

In some cases, we can set entropy generation to zero and use the first law of thermodynamics to assess the best-case scenario from a given process.

Furthermore, entropy generation calculation tells us the feasibility of a proposed process by satisfying ΔSuniverse = Sgen > 0.

For the following examples, Appendix B for steam values that I have referred to in these questions was obtained from: 

M.D Koretsky, Engineering and Chemical Thermodynamics, Wiley, 2004.

Question 1

Two moles of an ideal gas in a piston-cylinder system at 150°C are compressed isothermally but irreversibly from 2bar to 8bar. The actual work required for compression is 30% greater than the reversible work for the same compression.

If the heat removed from the gas is discarded to a heat reservoir at 25°C, calculate the entropy change of the gas and the heat reservoir.


Solution

System: Gas contained in the piston-cylinder.


NOTE: It is possible to calculate the entropy change of the system as follows:


Question 2

The following diagram illustrates a proposed process. Determine whether it is a feasible process.


Solution


The process is therefore FEASABLE


Question 3

500 kmol/h of an air stream at a pressure of 2 atm is to be heated from 15°C to 90°C in a heat exchanger with 600 kPa steam condensing in the shell side of the heat exchanger. Steam enters the heat exchanger as saturated vapor and exits as saturated liquid.

a) How much steam will be needed if a conventional heat exchanger is used? What is the total entropy change during this process?

b) How much steam is needed if the process of heating the air was carried out by using the heat transferred from the steam to drive a reversible Carnot engine and by using the air stream as the heat sink? What would be the total work output of the engine?


Solution

a) System: Heat Exchanger


b) 









Thursday, 5 December 2024

Entropy and the Second Law

We know that for a variety of processes, the entropy of the universe increases for an irreversible process and remains constant for a reversible process:

 (1)      

If we assume the universe to be an isolated system, we can rephrase the Second Law as

“Any spontaneous process occurring in an isolated system will always result in an increase in that system’s entropy.”

Thus:

  • For an isolated system, if an entropy increase is not possible, then a spontaneous change cannot occur in that system. This is possible if the entropy of an isolated system is at its maximum value. The condition of maximum entropy i.e., no possible spontaneous change is called the state of thermodynamic equilibrium.
  • The statement: “the entropy of a system can never decrease” only applies to an isolated system. Generally, the entropy of an arbitrary system can be decreased by a suitable heat interaction.
  • In order to determine the priority of a process occurring in the universe, we have to apply the principle of entropy increase. That is, any spontaneous process following a previous process must have a higher entropy than the preceding process. Thus, entropy is referred to as time’s arrow.

It should be noted that there is no such thing as the conservation of entropy. Real processes always generate entropy and, as a result, entropy of the universe always increases.


a) Entropy and the Loss of Work

Let us consider a rigid, well-insulated tank divided into two equal volumes A and B by a membrane. Side A is filled with 1 mol of an ideal gas at 300K and 1bar and the side B is evacuated. If the membrane ruptures so that the gas fills the entire volume, what would be the entropy change?

System: The contents of the tank.

Using the 1st law of thermodynamics:

Since the internal energy of an ideal gas is dependent only on temperature, the final temperature is also 300K. We can use the following equation to help calculate the entropy change of the system:

Thus, the entropy change of the system can be solved by simplifying the above equation. Also, since there is no heat interaction between the system and its surroundings, entropy change of the surroundings is zero. Thus:

To compare this irreversible process with a reversible one between the same initial and final states, we can consider 1 mol of an ideal gas at 300K and 1 bar in a piston-cylinder assembly. If we assume that the gas expands until the volume doubles against a frictionless piston while heat is reversibly transferred to the gas in order to keep the gas at a constant 300K. Thus the entropy change of the system is: 

The amount of heat transferred to the gas can be calculated using equation 7:


When the gas expands irreversibly in a rigid and well-insulated tank, we see that the entropy of the system increases and no work is done by the system. Conversely, reversible expansion of the gas from the same initial state to the same final state increases the entropy of the system by the same amount but, in this case, work is done by the system.

In the reversible process, the increase in the entropy of the system is compensated by the decrease in the entropy of the surroundings so that ΔSuniverse = 0. In other words, entropy is transferred from the surroundings into the system. Thus, entropy generation corresponds to the decrease in the ability of energy to do work.

If energy is a measure of system’s ability to do work, entropy is a measure of how much this ability has been devalued. Entropy generation is directly related to the lost work.


b) Entropy and Probability

One mole of a gas contains N molecules, where N is the Avogadro’s number (N = 6.02 × 1023).

Let us consider a rigid, well-insulated tank divided into two equal volumes by a diaphragm with a hole in it and the tank contains 1 mol of an ideal gas.

Note that the probability of finding all the molecules in the tank is unity.

Hypothetically, if we capture one of the molecules and paint it red, the probability of finding that red molecule on the left side is 1/2. If we capture another molecule and paint it white, the probability of finding both the red and white molecules on the left side is (1/2)(1/2) = (1/2)2. The probability of finding all the molecules on the left side is almost zero and equal to (1/2)N

It doesn’t matter where the position of the diaphragm is, the probability of finding all the molecules on the left side is (V1/V2)N, where V1 is the volume to the left of the diaphragm and V2 is the total tank volume.

If we suppose that the gas is initially contained on the left side. By puncturing the diaphragm, the gas fills the entire tank. In this way, the gas goes from a state of low probability to a state of high probability. Let P1 and P2 represent the initial and final probabilities, respectively. Thus,

During expansion, the internal energy and the temperature of the gas remains constant.

As a result, the right-side of Equation 14, gives the change in entropy of an ideal gas during isothermal expansion from V1 to V2. Therefore, Equation 14 becomes:


Thus, the increase in entropy during a spontaneous process corresponds to the transition from a state of lower probability to a higher probability.


c) Entropy and Disorder

In a system the entropy increases with increasing disorder. Thus, the disorder in the universe is always increasing.

As the system changes to a more orderly state, its entropy decreases. Some examples are:

  • During phase transformation, i.e., Liquid to solid and gas to liquid
  • As the temperature of a substance decreases
  • As the pressure of a gas increases.

The molecules of a perfect crystal at 0 K have no internal energy, hence the molecules are perfectly ordered in the crystal lattice. 

Thus, one can assign the value of zero to the entropy for this idealized state of maximum possible order. This assignment turns out to be very useful and is sometimes referred to as the third law of thermodynamics.






Friday, 15 November 2024

Continuum Mechanics

Continuum Mechanics is the study of the behavior of materials by ignoring its particulate nature. 

A continuum is an area that can keep being divided and divided infinitely with no individual particles. It is a simplification that allows us to investigate the movement of matter on scales larger than the distances between particles.

In continuum, the smallest element of a fluid is NOT a fluid molecule, but rather a fluid particle that contains enough number of molecules to make meaningful statistical averages. Continuum assumes that fluid and flow properties like pressure, temperature, density, velocity, etc. vary continuously throughout the fluid.

This helps to study a wide range of phenomena, from air and water flow to even the evolution of galaxies.

For us to know whether or not the continuum hypothesis can be used, a dimensionless number called Knudsen number is used. The Knudsen number allows for characterizing the boundary conditions of a fluid flow. It is defined as:




If the length scale of the fluidic system is in the same range as the mean free path, i.e., Kn = 1, the fluid cannot be treated as a continuum.

The Knudsen number is very useful when assessing the boundary of fluid flows. Usually, the flow at the boundary of a flow field where the channel walls are fixed in space and the liquid directly in contact is considered to not be moving. This is referred to as the no-slip boundary condition, i.e., there is no relative movement (slip) between the wall and the fluid layer that directly contacts with the wall. 

According to the Knudsen number, flows can be divided into different regimes:



(a) For Kn < 0.01, continuum flow dominates and conventional fluid dynamics equations are applicable, indicating that gas molecules interact with neighboring molecules.

(b) For 0.01 < Kn < 0.1, the slip flow regime occurs when the gas molecules experience slipping at the solid interface.

(c) For 0.1 < Kn < 10, transition flow occurs. This refers to a flow regime in which both slip (continuum) and diffusion flows can occur.

(d) For Kn > 10, Knudsen's (free molecular) flow occurs. This refers to gas molecules that flow with minimal or no interaction with neighboring molecules.


Fluid Properties:

Characteristics of a continuous fluid which are independent of the motion of the fluid are called basic properties of the fluid. Some of the basic properties are as discussed below:

  • Density: The density ρ of a fluid is its mass per unit volume (kg/m3).
  • Specific Weight: This is the weight of a fluid per unit volume (N/m3).
  • Specific Volume: is the volume occupied by unit mass of fluid (m3/kg).
  • Specific Gravity: For liquids, it is the ratio of density of a liquid at actual conditions to the density of pure water at 101 kN/m2, and at 4°C.
    • For gases, the specific gravity is the ratio of its density to that of either hydrogen or air at some specified temperature or pressure.



Saturday, 2 November 2024

First and Second Law of Thermodynamics Solved Questions

Note: For the following examples, Appendix B for steam values that I have referred to were obtained from: 

M.D Koretsky, Engineering and Chemical Thermodynamics, Wiley, 2004.

Example 1

2 Kgs of steam at 800 kPa and 600°C is contained in a piston-cylinder assembly. Calculate the work if:

a) The steam expands reversibly and isothermally to 300 kPa.

b) The steam expands reversibly and adiabatically to 300 kPa.

Solution

System: Contents of the piston cylinder assembly

a) The work done by the system is calculated as follows:


It is necessary to plot a P versus V graph and calculate the area under the curve. 

Since expansion occurs at T = 600°C, then the variation of V as a function of P can be determined from the steam table as follows:

The plot of P versus V is shown in the figure below. (Plotted using MathCAD)

The area under the curve can be solved using the trapezoidal rule:

Alternatively, the work done by the system can be solved using the 1st law of thermodynamics

From Appendix B


b) The 1st law of thermodynamics simplifies as:

Since the process is reversible and adiabatic (or isentropic), the entropy remains constant at a value of 8.1332 kJ/kg.K. Therefore, the properties at the final state are:

Substituting these values into equation3:



Example 2

Consider the system shown in the figure below:

The piston is made of a non-heat-conducting material and the tank is insulated. Initially, the piston is at the extreme left-hand-side of the cylinder and the cylinder contains 1.5 kg of steam at 200°C and 100 kPa. The cylinder is connected to an infinite source of air at 500 kPa and 250°C, and the valve is opened slightly until the pressure in the cylinder reaches 500 kPa.

a) Calculate the final temperature of the air under these conditions.

b) Calculate the final temperature of the air if a small cooling coil is placed in the cylinder to maintain the steam temperature constant at 200°C.

Solution

Let the subscripts A and S stand for air and steam, respectively.

Since steam occupies the whole volume of the cylinder initially, the volume of the cylinder is calculated from the initial conditions. From Appendix B (Table B.4)

Thus:

a) The steam in the cylinder undergoes a reversible and adiabatic compression,





b) In this case, the steam in the cylinder undergoes a reversible and isothermal compression. Thus, the properties of the steam at the final state are:


Considering the air in the cylinder as a system, the unsteady-state mass and energy balances again lead to:


















Thermodynamics of Energy Conversion

1. Vapour Power Cycles Power cycle is a process where devices are used to continuously produce power. A typical vapor power cycle is the st...