Skip to content

Tutorial for CHT: Flow over a heated plate

Makis Chourdakis edited this page Nov 28, 2017 · 22 revisions

Tutorial for a coupled simulation with OpenFOAM

This tutorial describes how to run a conjugate heat transfer with OpenFOAM. The files for this tutorial can be found in the tutorials directory and are prepared for OpenFOAM 5.

Case setup

This scenario consists of one fluid and one solid participant. A fluid enters in a channel with temperature 300K, where it comes in contact with a solid plate, which is heated from below at a constant temperature of 310K.

overview

This test case is two-dimensional, but because OpenFOAM is written for three-dimensional simulations, we run a quasi-2D simulation with three dimensional meshes with only one cell in y-direction.

A serial-implicit coupling is used, where the fluid participant reads heat fluxes and the solid participant reads temperatures. Both participants are executed in serial. The simulated time is 1s and results are written every 0.2s.

Used solvers

Fluid flow: OpenFOAM, solver buoyantPimpleFoam. This is an open-source solver for transient, buoyant, turbulent flow of compressible fluids for ventilation and heat transfer.

Heat transfer on the solid: OpenFOAM, solver laplacianFoam. This is an open-source solver that can solve the thermal diffusion in a solid.

The tutorial is prepared for OpenFOAM 5.0 from openfoam.org. OpenFOAM v1706 from openfoam.com is also compatible.

OpenFOAM website (variant from The OpenFOAM Foundation)

Step 1: Install required software

For simulating the described case, the following software is necessary:

After installing both OpenFOAM and preCICE, you need to build the OpenFOAM adapter.

Step 2: Setup solvers

Both cases are already configured. If you want to learn more about the configuration, you may read the following pages:

Step 3: Simulate

In order to run the example, execute the script Allrun. You may see the progress by inspecting the files Fluid.log and Solid.log. You may also prepare and execute the two simulations in two different terminals, using the scripts runSolid and runFluid.

(TODO)

Step 4: Visualize

At the end (or after the first write), execute paraFoam -case Fluid & to visualize the channel and add the Solid.FOAM file from the ParaView menu. In order to clean the results, use the script Allclean. An example of the visualized expected results can be found in overview.png.

(TODO)