Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Checking the surface mesh quality, creating a directory for the surfaceMesh and copying to this folder, and creating a ParaView file.
    1. Log file produced with check if the surface mesh (FMS) is good.
    2. Production of a VTK-file to show the surfaceMesh in ParaView.
  2. (Decomposing if necessary).
  3. Generate the volume mesh and check the mesh.
    1. Choice can be made to do multi-threading when memory is too small. Decomposition is needed.
    2. The STL file is for adding refinement at the object or a refinement region and is not mandatory. 
    3. cartesianMesh can be replaced either by pMesh or tetMesh.
     
    1. checkMesh is performed.
     
  4. Produce output of bad quality mesh cells if existing to illustrate in ParaView. 
    1. Non-orthogonal cells. 
     
    1. Skew faces.
     
    1. Wrong-oriented faces.
     
    1. Zero volume cells. 

Mesh quality 

The mesh quality check is done in OpenFOAM using the utility checkMesh. This section is based on the output generated by checkMesh. The quality checks are explained beneath, and a thumb-rule value (for indication) is given for mesh quality. The results using cfMesh and snappyHexMesh are compared at the end. 

Explanation of mesh quality terms 

A brief explanation of mesh quality is given below: 

...

  • Affects gradient of the face center of the cell (difference between orange and black).  
  • Adds diffusion to the solution. 
  • Mainly affects the diffusive terms. 

 Image Added

  • Maximum of 80. 

...

  • Expansion rate, growth, or uniformity. 
  • Adds diffusion when large. 
  • Maximum change should be less than 20% (30%). 

 Image Added

 

Aspect ratio 

  • Ratio between dx and dy. 
  • Large AR is ok if gradients in the largest direction are small. 
  • It smears the gradients. 
  • Should be lower than 80. 

 Image Added

 

Skewness 

  • Deviation of the black vector and the face center f. 

 Image Added

  • Affects the interpolation. 
  • Adds diffusion. 
  • Affects the convective term. 

...

  • Cell face aligned with flow results in a smaller error in flow and gradients (truncation). 

 Image Added

  • In general: hexahedral is more accurate. 
    • Easily aligned with the flow.
     
    • Stretched to resolve BL without losing much quality.
     
    • Prefered for force calculations. 

 

  • Without dominant flow direction: hex has no advantage anymore. 
  • Polyhedral approximates better in that case the gradients.  
    • Skewness can be a problem -> oscillatory due to more faces.
     
    • Growth rate control and volumetric refinement are difficult. 
  • Tetrahedal fewer faces: 
    • Fewer problems with oscillatory results.
     
    • Growth rate is easily controlled.
     
    • Larger truncation errors at the wall.
     
    • Can easily adapt to a structure.
     
    • Needs more computing resources but less mesh time. 
  • Small changes in flow -> larger mesh cells can be used. 

...