Upload
others
View
12
Download
0
Embed Size (px)
Citation preview
enGrid: Open-Source Pre-Processing
enGits GmbH – Hauptstraße 20 – 79674 TodtnauDeutschland / Germany / Allemagne
http://[email protected]
Fifth OpenFOAM® Workshop
June 21-24 2010
Gothenburg
Sweden
(OPENFOAM® is a registered trade mark of OpenCFD Limited)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 2
OverviewOverview
• Motivation and state
• Detailed example
• General an-isotropic layers/refinement
• A few showcase examples
• Future developments
– What is planned?
– What is envisaged?
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 3
Motivation for Open-Source MeshingMotivation for Open-Source Meshing
• enGits started in October 2006
– Main activity: software development for very specific CFD problems
– To extend business a reliable CFD solution was desired
• Commercial codes too expensive
(no guaranteed business coming in)
• Open-source, as well as in-house, solver and post-processing available
• Meshing situation not sufficient for commercial CFD work
• Expertise and a few ideas on how to improve unstructured
mesh generation
– Write own meshing software …
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 4
Motivation for Open-Source MeshingMotivation for Open-Source Meshing
• Open-source or proprietary software?
• Decision was made rather quickly in favour of OSS
• As a small company it would be extremely difficult to
compete with the commercial codes
• Funding available for an open-source development(funded by the European Space Agency)
• Possibility to generate business with support and
customisation of the software
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 5
open-source „process chain“open-source „process chain“● geometry modelling
● Blender
● Salome
● geometry import and surface meshing
● Gmsh
● NETGEN
● isentropic volume meshing (tetras)
● NETGEN
● Tetgen → ATTENTION: not allowed for commercial applications, NOT OPEN-SOURCE
● an-isotropic boundary layer grids
● … → enGrid
● solver
● OpenFOAM
● Code Saturne
● Elmer
● visualisation
● ParaView
● Open Data Explorer
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 6
Current Status of ENGRIDCurrent Status of ENGRID
• Capable to create unstructured hybrid grids for CFD (prisms & tetras)
• Reliable support for prismatic boundary layers
• Requires a triangulated surface (not a proper surface mesh) as input
– STL files like for snappyHexMesh
– NETGEN could be used as IGES/STEP → STL converter
• Exports OpenFOAM cases (native format)
• Experimental support for polyhedral grids
• Basic modification tools (e.g. extrusion, rotation)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 7
OverviewOverview
• Motivation and state
• Detailed example
• General an-isotropic layers/refinement
• A few showcase examples
• Future developments
– What is planned?
– What is envisaged?
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 8
Example: wing with NACA0012 profile (Re = 1Example: wing with NACA0012 profile (Re = 1··101066))
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 9
Geometry inside Blender with defined boundary patchesGeometry inside Blender with defined boundary patches
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 10
Geometry inside Blender (exploded view)Geometry inside Blender (exploded view)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 11
Geometry inside Blender (exploded view)Geometry inside Blender (exploded view)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 12
Direct export from Blender to enGridDirect export from Blender to enGrid
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 13
After import into enGridAfter import into enGrid
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 14
Save as enGrid case file(s)Save as enGrid case file(s)
• enGrid stores two files per case:
– *.egc file with the description (patch
names, boundary conditions, volume
definitions, …)
– *.vtu file with actual grid information
(this file can be loaded into ParaView)
• It proved useful to save different
steps of the mesh generation
process.
For example:
– *_S0.egc: all definitions done
– *_S1.egc: surface meshing done
– *_S2.egc: first volume mesh
– *_S3.egc: refined boundary layer
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 15
Select visible patchesSelect visible patches
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 16
Zoom in to view wing onlyZoom in to view wing only
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 17
Define boundary and solver parametersDefine boundary and solver parameters
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 18
Define boundary (patch) typesDefine boundary (patch) types
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 19
Assign boundary types to patchesAssign boundary types to patches
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 20
Define solver parametersDefine solver parameters
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 21
Enter parameters for surface meshingEnter parameters for surface meshing
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 22
Select patches for meshing (typically all)Select patches for meshing (typically all)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 23
Define mesh size constraints for patchesDefine mesh size constraints for patches
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 24
Define maximal edge size (global)Define maximal edge size (global)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 25
Define cell growthDefine cell growth
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 26
Save and then save under a different nameSave and then save under a different name
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 27
Start the surface meshingStart the surface meshing
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 28
Watch the progress in the output windowWatch the progress in the output window
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 29
Monitor the number of inserted and deleted nodesMonitor the number of inserted and deleted nodes
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 30
After 5 iterations: display symmetry plane and check progressAfter 5 iterations: display symmetry plane and check progress
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 31
After 15 iterations the mesh looks goodAfter 15 iterations the mesh looks good
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 32
Save and then save under a different nameSave and then save under a different name
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 33
Select wall patches and volume to create prismatic boundary layer Select wall patches and volume to create prismatic boundary layer
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 34
After a few minutes the boundary layer is readyAfter a few minutes the boundary layer is ready
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 35
Clipping and which cell types are displayed can be controlledClipping and which cell types are displayed can be controlled
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 36
One iteration to improve the tetra far-fieldOne iteration to improve the tetra far-field
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 37
Mesh is ready for boundary layer refinementMesh is ready for boundary layer refinement
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 38
Save and then save under a different nameSave and then save under a different name
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 39
Refine prismatic layerRefine prismatic layer
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 40
Refine prismatic layerRefine prismatic layer
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 41
Refined boundary layer meshRefined boundary layer mesh
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 42
Export mesh to OpenFOAM caseExport mesh to OpenFOAM case
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 43
Solver can be run from within enGridSolver can be run from within enGrid
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 44
Solver output can be monitored in the enGrid output windowSolver output can be monitored in the enGrid output window
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 45
Results: pressureResults: pressure
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 46
Results: y+Results: y+
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 47
OverviewOverview
• Motivation and state
• Detailed example
• General an-isotropic layers/refinement
• A few showcase examples
• Future developments
– What is planned?
– What is envisaged?
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 48
An-isotropic refinement
• “coloured” water is injected
into a laminar channel flow
• very low diffusive transport
(high Schmidt number)
• interface shall be captured by
refinement
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 49
• “coloured” water is injected
into a laminar channel flow
• very low diffusive transport
(high Schmidt number)
• interface shall be captured by
refinement
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 50
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 51
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 52
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 53
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 54
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 55
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 56
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 57
• usage of Blender as geometry tool
– definition of boundary conditions
– import/export of surface grids
• usage of, for example, iso-surfaces as meshing geometry
• improved prismatic boundary layer generation
• support for multiple volumes(e.g. for conjugate heat transfer simulations)
““Side effects” of the developmentSide effects” of the development
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 58
Ariane-5 at max QAriane-5 at max Q(pressure)(pressure)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 59
Ariane-5 at max QAriane-5 at max Q(Mach number)(Mach number)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 60
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 61
an-isotropic(aspect ratio 1:100)
tetras : 393,078prisms : 136,790total : 529,868
isotropic(equivalent to 1:5)
tetras : 2,243,414
isotropic(equivalent to 1:100)
tetras : 16,000,000,000
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 62
OverviewOverview
• Motivation and state
• Detailed example
• General an-isotropic layers/refinement
• A few showcase examples
• Future developments
– What is planned?
– What is envisaged?
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 63
Tunnel ventilation
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 64
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 65
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 66
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 67
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 68
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 69
• Time from “discussed
geometry” to “ready to run”
grid: appr. 3 hours
• Initial condition, 0.01m/s2
from left to right.
• 2 minutes of 0.05 m/s2 in y
direction
SloshingSloshing
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 70
SloshingSloshing
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 71
SloshingSloshing
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 72
OverviewOverview
• Motivation and state
• Detailed example
• General an-isotropic layers/refinement
• A few showcase examples
• Future developments
– What is planned?
– What is envisaged?
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 73
Current development(use snappyHexMesh to recover bad STL geometries)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 74
Current development(use snappyHexMesh to recover bad STL geometries)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 75
• Isotropic refinement(solution based discrete refinement)
• y+ based boundary layer adaptation
• Improved export function for polyhedral grids
Future developments (funding confirmed)
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 76
Future developments (ideas)• Automatic solution based layer generation
– unique capability
– offer problem specific adaptive meshing solutions
• Hex far-fields
– possibly interfacing with snappyHexMesh
• Scripting interface
– automatise tedious tasks
– enable automatic re-meshing with different solvers
• Include post-processing into GUI
– VTK is already used for mesh visualisation
→ implementation efforts would be manageable
– offer a “universal” interface for open-source CFD
Oliver Gloth
enGrid: Open-Source Pre-Processing
Fifth OpenFOAM Workshop, June 21-24 2010, Gothenburg, Sweden page 77
Thank you for your attention!Thank you for your attention!
http://engits.eu/engrid
• enGrid is licensed under GPL v3
• A number of openSUSE 11.2 live DVDs with enGrid
and OpenFOAM are available right here
• enGrid is also available on the workshop USB stick
(although a slightly older version)