Skip to content

Tutorial for CHT: Flow over a heated plate

Gerasimos Chourdakis edited this page Feb 9, 2020 · 22 revisions

Tutorial for a coupled simulation with OpenFOAM

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

You may also find more tutorials on the preCICE wiki.

Case setup

This scenario consists of one fluid and one solid participant and it is described by Vynnycky et al. [1]. 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 can be executed either in serial or in parallel.

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, as well as newer versions of both variants are also compatible.

OpenFOAM website (variant from The OpenFOAM Foundation)

OpenFOAM website (variant from the ESI Group)

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:

Both participants require the precice-config.xml file.

Step 3: Simulate

Run the coupled simulation.

Step 4: Visualize

After the first results are written (a new time directory will be created), you may visualize the results.

Disclaimer

This offering is not approved or endorsed by OpenCFD Limited, producer and distributor of the OpenFOAM software via www.openfoam.com, and owner of the OPENFOAM® and OpenCFD® trade marks.

[1] M. Vynnycky, S. Kimura, K. Kanev, and I. Pop. Forced convection heat transfer from a flat plate: the conjugate problem. International Journal of Heat and Mass Transfer, 41(1):45 – 59, 1998.