-
-
Notifications
You must be signed in to change notification settings - Fork 85
Tutorial for CHT: Flow over a heated plate
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.
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.
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.
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)
For simulating the described case, the following software is necessary:
-
OpenFOAM: the package that provides the fluid and the solid solvers. If you are using Ubuntu, precompiled packages are available.
-
preCICE: the coupling library.
After installing both OpenFOAM and preCICE, you need to build the OpenFOAM adapter.
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. For more information about this file, see the preCICE wiki.
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)
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)
More information on precice.org. Subscribe to the preCICE mailing list.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License. Please use "precice.org" for the attribution.