Day 1

From OpenFOAM Wiki
Jump to navigation Jump to search

Day 1 is all about fast and fun simulations with the focus on

  • the basic workflow in OpenFOAM
  • getting used to the terminal
  • meshing with the OpenFOAM internal meshing utility blockMesh
  • running simulations
  • first steps with postprocessing in Paraview

Go back to "3 weeks" series.

First simulation

In this tutorial you will get a first hands-on glimpse into the workflow of CFD simulations with OpenFOAM. The pdf version can be found here. The following topics will be covered:

  • basic case setup
  • initial values
  • mesh
  • simulation (2D elbow case with three meshes)
  • postprocessing

Basic case setup

Using icoFoam solver, simulate 75 s of flow in an elbow.

  • Basic case setup in OpenFOAM
  • Setting up initial values of p and U
  • Ensuring proper boundary definitions

Cavity tutorial

This is one of the most basics tutorials. You will revisit this example, so it is a good idea to try it out now. Here, you will get a fast walkthrough with a good explanation about

  • the mesh
  • running the case
  • postprocessing the results.

OpenFOAM basics

Here you will find a video on the very basics of OpenFOAM. You will hear about

  • OpenFOAM and what it is good for
  • the history and philosophy behind it
  • the basics and the structure.

Session A: Getting to know OpenFOAM

In this tutorial study

  • what is the history of OpenFOAM
  • the philosophy behind the OpenFOAM software
  • what is the content of the OpenFOAM software package

blockMesh with a more complicated case

In this second tutorial video you will try out your knowledge about blockMesh in order to create a more complicated mesh for a simulation. The pdf version can be found here. The focus is on

  • scaling the mesh
  • setting the vertices
  • setting volumes (blocks)
  • setting edges
  • boundaries
  • grading

Built in mesh

Using sonicFoam solver, simulate 10 s of flow over a forward step.

  • Basic case setup in OpenFOAM
  • Setting up initial values of p and U
  • Ensuring proper boundary definitions

blockMesh - summary

Yes, the first day is almost over. Look forward to your regeneration by finishing this last tutorial. Here you will find a summary on meshing with blockMesh. You will find a

  • visual description of the blockMeshDict dictionary
  • fun geometries for exercise

End of Day 1

Thank you for finishing the first day. We hope, that you had fun and you will continue tomorrow with Day 2. The topics tomorrow are:

  • more detailed understanding of the work flow
  • further short and fun simulations
  • grid convergence
  • transport equations
  • detailed scientific visualization of results

Homework: relax.