CFD OpenFoam Sauna: Difference between revisions
(→gmsh) |
(→gmsh) |
||
| Line 53: | Line 53: | ||
<syntaxhighlight lang="Bash"> | <syntaxhighlight lang="Bash"> | ||
gmsh model.geo -3 | gmsh model.geo -3 | ||
gmshToFoam model.msh | |||
</syntaxhighlight> | </syntaxhighlight> | ||
generates 3d triangulation. | generates 3d triangulation and converts it. | ||
<syntaxhighlight lang="Bash"> | <syntaxhighlight lang="Bash"> | ||
Revision as of 22:17, 14 July 2026
Introduction
Use OpenFOAM to analyze the heating of water above sauna's oven. The problem is during the winter when the water freezes.
Other possibilities would be to create a simple Laplacian solver. but I'd like to include Navier-Stokes equations and perhaps energy equation: ice melts into water, water freezes, latent heat is released and the interfaces move.
OpenFOAM
1
1
1
Workflow
- Generate mesh
- For example: blockMesh
- Run solver
- Example: laplacianFoam or: buoyantSimpleFoam
- View results
- paraFoam
Use foamSearch <keyword> or find $FOAM_TUTORIALS -type f | grep <keyword> . For example: find $FOAM_TUTORIALS -type f | grep laplacian will show every diffusion example. Start with laplacianFoam → buoyantSimpleFoam → conjugate heat transfer examples.
Tutorials
ls $FOAM_TUTORIALS
Installation
Installation is a long process, it takes many hours using yay.
ofoam
Creating the mesh
Images
-
The mesh with three different parts.
gmsh
Gmsh to generate the triangles.
The command
gmsh model.geo -3
gmshToFoam model.msh
generates 3d triangulation and converts it.
yay -S gmsh-bin