CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] How does OpenFOAM know if dealing with sturctured or unstructured mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2019, 18:14
Default How does OpenFOAM know if dealing with sturctured or unstructured mesh
  #1
New Member
 
Join Date: Mar 2019
Posts: 11
Rep Power: 7
mörli is on a distinguished road
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.
mörli is offline   Reply With Quote

Old   July 12, 2019, 03:44
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   July 12, 2019, 16:18
Default
  #3
New Member
 
Join Date: Mar 2019
Posts: 11
Rep Power: 7
mörli is on a distinguished road
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.
mörli is offline   Reply With Quote

Old   July 18, 2019, 04:27
Default
  #4
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   July 18, 2019, 05:13
Default
  #5
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
Hi Anton,
I agree, but do you know of tutorials that use blockMesh to mesh a non-basic geometry in 3D?
Regards,
louisgag is offline   Reply With Quote

Old   July 18, 2019, 05:46
Default
  #6
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Quote:
Originally Posted by louisgag View Post
Hi Anton,
I agree, but do you know of tutorials that use blockMesh to mesh a non-basic geometry in 3D?
Regards,
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.
akidess is offline   Reply With Quote

Old   July 18, 2019, 06:28
Default
  #7
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
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.
louisgag is offline   Reply With Quote

Old   July 18, 2019, 06:43
Default
  #8
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   July 18, 2019, 06:46
Default
  #9
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   July 23, 2019, 13:22
Default
  #10
Senior Member
 
louisgag's Avatar
 
Louis Gagnon
Join Date: Mar 2009
Location: Stuttgart, Germany
Posts: 338
Rep Power: 18
louisgag is on a distinguished road
Send a message via ICQ to louisgag
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.
louisgag is offline   Reply With Quote

Reply

Tags
hybrid mesh, refinehexmesh, structured mesh


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:30.