Imaginative Consultancy in Computational Fluid Dynamics
Home
Back


Computational Fluid Dynamics Worked Examples

All the problems are extracted from our publication "Computational Fluid Dynamics Recipes - Outline & Worked Examples" and all formulae references are from the book. To order our publications, please visit our page here.

We will add more and more problems as we go on.

To support this effort, please either order our publications or ask you library to do so.

One Dimensional Heat Conduction without a source

Example 8.1 - 1D Heat Conduction without a source

Consider heat conduction in an insulated bar whose ends are kept at constant temperature, as shown in Figure 8.1. Solve the heat conduction equation and find the temperature distribution in the bar. Data: T wb = 100◦C, Teb = 500◦C, κ = 1000 W/m.K, A = 0.001 m2, L = 0.5 m

Fig 8.1



Since heat can only be transfered through the ends of the bar, this is a onedimensional problem along the xaxis.

Integral equations

The integral equations for a typical control volume can be written in accordance with Eqn.(7.4). Bearing in mind that here we have φ = T and Γ = κ, we may write

Fig 8.1_2

The Grid

We use an equally spaced grid, that is a uniform grid, in a way that the east face of the first control volume is on the east boundary and the west face on the west boundary. The spatial increment Δx has been chosen such that the number of control volumes are exact multiplier of the length of the bar. Of course any other arrangement can be used as long as you are consistent in your formulation.

Fig 8.1_3

Discretization

In discretizing Eqn.(8.1), we need to distinguish between the inner cells and boundary cells.

  1. Inner Nodes: defined by
    Fig 8.1_4

    For the inner cells we use the discretization of Eqn.(7.19) to write

    Fig 8.1_5

    where

    Fig 8.1_6

  2. The west Node: defined by
    {i=1}

    Here, we have a Dirichlet boundary condition Tw = Twb. Using Eqn.(7.34), we can write

    Fig 8.1_7

    where

    Fig 8.1_8

  3. The east Node: defined by
    i=imax

    This is similar to the west boundary and we can write

    Fig 8.1_9

    where

    Fig 8.1_10

System Solver

We use the GaussSeidel method of Section3.1.1 to solve these equations. The iteration converged after 24 steps for the allowed error of 0.0001. The temperature distribution is shown in Figure 8.3.

Fig 8.1_11

The Code

Fig 8.1_12 Fig 8.1_13