Grid convergence by Jozsef Nagy

From OpenFOAM Wiki
Revision as of 14:45, 19 January 2017 by Jozsef Nagy (talk | contribs)
Jump to navigation Jump to search
  • contributor: Jozsef Nagy
  • affiliation: Institute of Polymer Injection Molding and Process Automation, Johannes Kepler University Linz, Austria
  • contact: click here for email address
  • OpenFOAM versions: 2.3.0, 2.3.1, 2.4.0, 3.0.0, 3.0.1, 4.0, 4.1, 1606+, 1612+
  • published under: CC BY-NC-SA license (creative commons licenses)

Go back to Day 2.

Grid convergence

pressure distribution

In this tutorial

we will cover one of the basic concepts in OpenFOAM. The resolution of your mesh might have an influence onto the results of your simulation. This video gives you a feeling about the importance of grid resolution and how to avoid deviations caused by coarse grid resolution. We will cover

  • field initialization with setFields
  • mesh refinement with blockMesh
  • simulation of a 1D shock tube case
  • influence of mesh refinement on the simulation results
  • post processing
For older versions of OpenFOAM the blockMeshDict file is located in constant/polyMesh, for newer versions the file is located in system.
Newer versions of OpenFOAM do not use the sample command, instead you can use postProcess -func sample