Difference between revisions of "Grid convergence by Jozsef Nagy"

From OpenFOAM Wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
* '''affiliation''': eulerian-solutions e.U., Linz, Austria
 
* '''affiliation''': eulerian-solutions e.U., Linz, Austria
 
* '''contact''': <mail address='jnmlujnmlu@gmail.com' description='author'>click here for email address</mail>
 
* '''contact''': <mail address='jnmlujnmlu@gmail.com' description='author'>click here for email address</mail>
* '''OpenFOAM versions''': v1912
+
* '''OpenFOAM versions''': v2006
 
* '''published under''': CC BY-NC-SA license ([https://creativecommons.org/licenses creative commons licenses])
 
* '''published under''': CC BY-NC-SA license ([https://creativecommons.org/licenses creative commons licenses])
  

Revision as of 04:55, 28 July 2020

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