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

[snappyHexMesh] Smooth Devision around objects with sHM

Register Blogs Community New Posts Updated Threads Search

Like Tree16Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 29, 2023, 13:00
Default
  #21
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Hello again 👋

I have come across another interesting question in regarding SnappyHexMesh. Is it possible to get the number of devisions around an object, for instance a cylinder?
Let's consider refinement level (6,6).
I know the the theory of the refinement and I have attached a figure for that, nevertheless, what about the number of element around the cylinder?

Thank you for your advice.
Attached Images
File Type: png download.png (2.3 KB, 3 views)
saeed jamshidi is offline   Reply With Quote

Old   December 29, 2023, 13:22
Default
  #22
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,070
Rep Power: 26
Yann will become famous soon enough
Hello Saeed,

In snappyHexMeshDict you can activate some writeFlags to write the refinement level as a scalar field. (check the end of snappyHexMeshDict here: https://develop.openfoam.com/Develop...ppyHexMeshDict)
Then you can use the treshold filter in ParaView to filter cells based on their refinement level. In the information tab you should get the cell count.

Let me know if this answers your question!

Regards,
Yann
saeed jamshidi likes this.
Yann is offline   Reply With Quote

Old   December 29, 2023, 13:32
Default
  #23
Senior Member
 
Saeed Jamshidi
Join Date: Aug 2019
Posts: 214
Rep Power: 7
saeed jamshidi is on a distinguished road
Thank you Yann🙏
As always helpful.
Yann likes this.
saeed jamshidi is offline   Reply With Quote

Reply


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
Run function objects on final time b.simpson OpenFOAM Post-Processing 3 September 19, 2022 20:09
[snappyHexMesh] Advice on limitations of SHM Tobermory OpenFOAM Meshing & Mesh Conversion 0 February 26, 2021 07:09
Multiple floating objects using InterDyMFoam and sixDoFRigidBodyMotion solver FloatingSolar OpenFOAM Running, Solving & CFD 4 December 29, 2020 11:09
[snappyHexMesh] SHM not snapping to some surfaces Swift OpenFOAM Meshing & Mesh Conversion 13 January 4, 2016 01:56
Using clip filter to acquire smooth interface sharonyue OpenFOAM Post-Processing 0 April 14, 2015 11:03


All times are GMT -4. The time now is 14:06.