Difference between revisions of "Day 6"

From OpenFOAM Wiki
Jump to navigation Jump to search
Line 1: Line 1:
Welcome to Day 6. By now you should have a good understanding of the very basics of OpenFOAM. Today we will further improve your knowledge by going in the direction of real life applications. You cannot mesh everything with the simple blockMesh utility. For real life geometries you will need more. Today you will learn this by creating your own arbitrary
+
Welcome to Day 6. By now you should have a good understanding of the very basics of OpenFOAM. Today we will further improve your knowledge by going in the direction of real-world applications. You cannot mesh everything with the simple blockMesh utility. For real life geometries you will need more. Today you will learn this by creating your own
  
 
* geometry  
 
* geometry  
Line 6: Line 6:
 
Go back to [https://wiki.openfoam.com/index.php?title=%223_weeks%22_series "3 weeks" series].
 
Go back to [https://wiki.openfoam.com/index.php?title=%223_weeks%22_series "3 weeks" series].
  
=[https://wiki.openfoam.com/Geometry_creation_by_Joel_Guerrero Open source geometry creation]=
+
==[https://wiki.openfoam.com/Geometry_creation_by_Joel_Guerrero Open source geometry creation]==
  
 
Here you will get a detailed introduction into two alternatives for the creation of geometries as inputs for a CFD project in OpenFOAM
 
Here you will get a detailed introduction into two alternatives for the creation of geometries as inputs for a CFD project in OpenFOAM
Line 13: Line 13:
 
* Onshape
 
* Onshape
  
=[https://wiki.openfoam.com/Meshing_in_OpenFOAM_by_Joel_Guerrero Meshing in OpenFOAM]=
+
==[https://wiki.openfoam.com/Meshing_in_OpenFOAM_by_Joel_Guerrero Meshing in OpenFOAM]==
  
 
The saying goes "Who owns the mesh, owns the solution". In OpenFOAM there are several ways to set up a mesh. On the one hand you can import it from external tools, you can use the simple blockMesh utility [https://wiki.openfoam.com/index.php?title=BlockMesh_by_Stefan_Radl] [https://wiki.openfoam.com/index.php?title=BlockMesh_by_Jozsef_Nagy] [https://wiki.openfoam.com/index.php?title=BlockMesh_by_Ferras,_Fernandes_and_Nobrega] or you can create your arbitrary mesh with snappyHexMesh. This tutorial will show you all the possibilities. The topics covered are:
 
The saying goes "Who owns the mesh, owns the solution". In OpenFOAM there are several ways to set up a mesh. On the one hand you can import it from external tools, you can use the simple blockMesh utility [https://wiki.openfoam.com/index.php?title=BlockMesh_by_Stefan_Radl] [https://wiki.openfoam.com/index.php?title=BlockMesh_by_Jozsef_Nagy] [https://wiki.openfoam.com/index.php?title=BlockMesh_by_Ferras,_Fernandes_and_Nobrega] or you can create your arbitrary mesh with snappyHexMesh. This tutorial will show you all the possibilities. The topics covered are:
Line 22: Line 22:
 
* snappyHexMesh
 
* snappyHexMesh
  
=[https://wiki.openfoam.com/SnappyHexMesh_%E2%80%93_Single_region_by_Bahram_Haddadi_and_colleagues snappyHexMesh – Single region]=
+
==[https://wiki.openfoam.com/Meshing_in_GMSH_by_Robert_Lee Meshing in GMSH]==
 +
 
 +
One of the alternatives for an external open source tool for mesh creation is GMSH. In this tutorial you will get a compact introduction into the work flow within the software. The following topics are covered:
 +
 
 +
* geometry definintion
 +
* difference between structured and unstructured meshes
 +
* extrusion
 +
* conversion to OpenFOAM
 +
* case preparation
 +
 
 +
=End of Day 6=
 +
 
 +
Today you made a big step towards the real life application of CFD in OpenFOAM by learning and understanding how to create a mesh in OpenFOAM. Tomorrow we will continue with simulations including turbulence modeling. If you've finished the day with time to spare, why not try the additional examples below!
 +
 
 +
See you tomorrow!
 +
 
 +
==Additional examples==
 +
===[https://wiki.openfoam.com/SnappyHexMesh_%E2%80%93_Single_region_by_Bahram_Haddadi_and_colleagues snappyHexMesh – Single region]===
  
 
Mesh a flange geometry and simulate heat transfer in it using scalarTransportFoam.
 
Mesh a flange geometry and simulate heat transfer in it using scalarTransportFoam.
Line 30: Line 47:
 
* Understanding the three basic steps of snappyHexMesh
 
* Understanding the three basic steps of snappyHexMesh
  
=[https://wiki.openfoam.com/SnappyHexMesh_%E2%80%93_Multi_region_by_Bahram_Haddadi_and_colleagues snappyHexMesh – Multi region]=
+
===[https://wiki.openfoam.com/SnappyHexMesh_%E2%80%93_Multi_region_by_Bahram_Haddadi_and_colleagues snappyHexMesh – Multi region]===
  
 
In this tutorial a geometry with more than one region is meshed using snappyHexMesh and simulated using chtMultiRegionFoam.
 
In this tutorial a geometry with more than one region is meshed using snappyHexMesh and simulated using chtMultiRegionFoam.
Line 36: Line 53:
 
* Understanding multi region meshing with the meshing tool snappyHexMesh
 
* Understanding multi region meshing with the meshing tool snappyHexMesh
 
* Multi region simulations
 
* Multi region simulations
 
=[https://wiki.openfoam.com/Meshing_in_GMSH_by_Robert_Lee Meshing in GMSH]=
 
 
One of the alternatives for an external open source tool for mesh creation is GMSH. In this tutorial you will get a compact introduction into the work flow within the software. The following topics are covered:
 
 
* geometry definintion
 
* difference between structured and unstructured meshes
 
* extrusion
 
* conversion to OpenFOAM
 
* case preparation
 
 
=End of Day 6=
 
 
Today you made a big step towards the real life application of CFD in OpenFOAM by learning and understanding how to create a mesh in OpenFOAM. Tomorrow we will continue with simulations including turbulence modeling. Until then we wish you a nice day!
 

Revision as of 11:25, 19 October 2018

Welcome to Day 6. By now you should have a good understanding of the very basics of OpenFOAM. Today we will further improve your knowledge by going in the direction of real-world applications. You cannot mesh everything with the simple blockMesh utility. For real life geometries you will need more. Today you will learn this by creating your own

  • geometry
  • mesh

Go back to "3 weeks" series.

Open source geometry creation

Here you will get a detailed introduction into two alternatives for the creation of geometries as inputs for a CFD project in OpenFOAM

  • Salome
  • Onshape

Meshing in OpenFOAM

The saying goes "Who owns the mesh, owns the solution". In OpenFOAM there are several ways to set up a mesh. On the one hand you can import it from external tools, you can use the simple blockMesh utility [1] [2] [3] or you can create your arbitrary mesh with snappyHexMesh. This tutorial will show you all the possibilities. The topics covered are:

  • mesh quality assessment
  • mesh conversion from external tools
  • blockMesh
  • snappyHexMesh

Meshing in GMSH

One of the alternatives for an external open source tool for mesh creation is GMSH. In this tutorial you will get a compact introduction into the work flow within the software. The following topics are covered:

  • geometry definintion
  • difference between structured and unstructured meshes
  • extrusion
  • conversion to OpenFOAM
  • case preparation

End of Day 6

Today you made a big step towards the real life application of CFD in OpenFOAM by learning and understanding how to create a mesh in OpenFOAM. Tomorrow we will continue with simulations including turbulence modeling. If you've finished the day with time to spare, why not try the additional examples below!

See you tomorrow!

Additional examples

snappyHexMesh – Single region

Mesh a flange geometry and simulate heat transfer in it using scalarTransportFoam.

  • The aim of the tutorial is to give a basic introduction to single region meshing with the meshing tool snappyHexMesh
  • Understanding the advantages of snappyHexMesh
  • Understanding the three basic steps of snappyHexMesh

snappyHexMesh – Multi region

In this tutorial a geometry with more than one region is meshed using snappyHexMesh and simulated using chtMultiRegionFoam.

  • Understanding multi region meshing with the meshing tool snappyHexMesh
  • Multi region simulations