CFD OpenFoam Sauna: Difference between revisions

From wikiluntti
 
(4 intermediate revisions by the same user not shown)
Line 12: Line 12:
== OpenFOAM ==
== OpenFOAM ==


=== 1 ===
=== 1 ===
=== 1 ===
=== Workflow ===
#Generate mesh
#* For example: blockMesh
#Run solver
#* Example: laplacianFoam or: buoyantSimpleFoam
# View results
#*paraFoam
Use <code>foamSearch <keyword></code> or <code>find $FOAM_TUTORIALS -type f | grep <keyword> </code>. For example: <code> find $FOAM_TUTORIALS -type f | grep laplacian</code> 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.  
Installation is a long process, it takes many hours using yay.  


Line 20: Line 40:
== Creating the mesh ==
== Creating the mesh ==


[https://gmsh.info/ Gmsh] to generate the triangles
=== gmsh ===
 
[https://gmsh.info/ Gmsh] to generate the triangles.
 
The command
<syntaxhighlight lang="Bash">
gmsh model.geo -3
</syntaxhighlight>
generates 3d triangulation.
 
<syntaxhighlight lang="Bash">
yay -S gmsh-bin
</syntaxhighlight>


== Analyzing ==
== Analyzing ==


== Results ==
== Results ==

Latest revision as of 16:12, 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

  1. Generate mesh
    • For example: blockMesh
  2. Run solver
    • Example: laplacianFoam or: buoyantSimpleFoam
  3. 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

gmsh

Gmsh to generate the triangles.

The command

gmsh model.geo -3

generates 3d triangulation.

yay -S gmsh-bin

Analyzing

Results