|
[Sponsors] |
[Other] How does OpenFOAM know if dealing with sturctured or unstructured mesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 11, 2019, 18:14 |
How does OpenFOAM know if dealing with sturctured or unstructured mesh
|
#1 |
New Member
Join Date: Mar 2019
Posts: 11
Rep Power: 7 |
Hi everyone,
I know this is a well discussed topic in this forum but I have not found an answer on my question so I hope you can help: I was wondering how OpenFOAM "decides" whether it is dealing with a sturctured or unstructured mesh. I read in a textbook structured is much easier to handle as the belonging neighbours, faces, etc don't have to be stored as they are kind of defined by the structure of the mesh. Furthermore I understood at least when having structured mesh with same cell size (and optimally of hexahedral) the volume and area calculation for integral is much easier as well as interpolation due to orthogonality. (I know I am probably mixing definitions of structured and regular mesh here, but the question stays the same: how does OpenFOAM "know") Nevertheless even for the simpliest blockMesh neighbour, faces, ... files are stored. So my question is if they are used for calculation anyhow and even a structured mesh is considered unstructured by OpenFOAM or if somehow in the files is defined how to handle the data which can be read by the code. Furthermore I read about hybrid meshes. This would mean the files need to provide information how to handle the mesh for given areas of the mesh. What about the refineHexMesh tool (for local refinement)? I assume it is generating structured meshes (starting from structured of course). Does this mean the whole "numbering" is rearranged? And what about the "transition" area. I guess the system of neighbouring cells is different from the rest of the mesh. How is this dealt with? Thanks a lot in advance for any answer. |
|
July 12, 2019, 03:44 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
There are no structured meshes in OpenFOAM. Everything is unstructured, which is the most general way of doing things.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
July 12, 2019, 16:18 |
|
#3 |
New Member
Join Date: Mar 2019
Posts: 11
Rep Power: 7 |
Thanks a lot for the fast reply.
Is there still any advantage of using blockMesh build meshes instead of for example snappyHexMesh build ones? I guess the orthogonality criterium is easier to handle but is there anything else? I am especially thinking of using actuator line oder disk models instead of full meshes for representation of a turbine. Of course the mesh for full mesh needs to be much finer around the blades for a full mesh solution, but I always thought the structured uniform blockMesh grid has further advantages which I can't really give reasons for if OpenFOAM is handling the meshes as unstructured anyway. |
|
July 18, 2019, 04:27 |
|
#4 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
blockMesh is very fast, and gives you much more control over the mesh than snappyHexMesh.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
July 18, 2019, 05:13 |
|
#5 |
Senior Member
|
Hi Anton,
I agree, but do you know of tutorials that use blockMesh to mesh a non-basic geometry in 3D? Regards, |
|
July 18, 2019, 05:46 |
|
#6 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
What is "non-basic"? Perhaps the heatExchanger tutorial fits the bill. Check chtMultiRegionFoam.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
July 18, 2019, 06:28 |
|
#7 |
Senior Member
|
Thanks for this hint, I looked it up (and also found a nice windshield example).
However, I was thinking more in the lines of aircraft fuselage or wings, or something like the motorbike tutorial. It would take a lot of patience to convert the motorbike stl into vertices that could be used by blockMesh. |
|
July 18, 2019, 06:43 |
|
#8 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
Nobody in their right mind would try meshing something as complex as a motorbike with blockMesh (or any other structured mesher IMO)
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
July 18, 2019, 06:46 |
|
#9 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
For a fuselage, you could snap your blockMesh to vertices of an STL using community tools:
http://www.etudes-ng.net/home/development/extBlockMesh
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
July 23, 2019, 13:22 |
|
#10 |
Senior Member
|
Thanks for sharing this link, the software does look interesting indeed.
However, it requires an old OpenFOAM version (which is not such a big issue) but, more importantly, it does not mesh boundary layers, which would be the reason I was considering to use blockMesh. |
|
Tags |
hybrid mesh, refinehexmesh, structured mesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 06:29 |
Gambit problems | Althea | FLUENT | 22 | January 4, 2017 04:19 |
[Other] vtk mesh or Abaqus mesh to OpenFOAM | bigphil | OpenFOAM Meshing & Mesh Conversion | 27 | November 23, 2015 18:31 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
unstructured vs. structured grids | Frank Muldoon | Main CFD Forum | 1 | January 5, 1999 11:09 |