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

[snappyHexMesh] Average cell size

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2022, 11:45
Default Average cell size
  #1
New Member
 
Join Date: Oct 2022
Posts: 1
Rep Power: 0
emma is on a distinguished road
Hi,



I have to do a grid convergence study and i need the average cell size (mesh obtained with snappyhexmesh), but i can't figure it out how to do it.
Could someone help me?


Thanks
emma is offline   Reply With Quote

Old   October 25, 2022, 02:28
Default
  #2
Senior Member
 
M
Join Date: Dec 2017
Posts: 694
Rep Power: 12
AtoHM is on a distinguished road
1) checkMesh can put out cellVolume field which you can use (-writeAllFields option)

2) Paraview has a filter called mesh quality. This allows you to extract all sorts of quality measures per cell. You can presribe it to put out the cell volume as a field, which you can either export and process somewhere else or make e.g. a histogram in Paraview itself. I remember with this approach, sometimes PV is not able to extract volume (or was it area?) correctly for all cell types, then the result may be off.
AtoHM is offline   Reply With Quote

Old   May 13, 2024, 07:55
Default
  #3
Member
 
Mohd Shaeq
Join Date: Aug 2023
Location: Leinfelden-Echterdingen
Posts: 30
Rep Power: 3
MohdShaeq is on a distinguished road
Quote:
Originally Posted by emma View Post
Hi,



I have to do a grid convergence study and i need the average cell size (mesh obtained with snappyhexmesh), but i can't figure it out how to do it.
Could someone help me?


Thanks
The average element/cell size can easily be calculated by the following formula:-

^{E}size = \sqrt[3]{^{V}mesh/^{N}hex}
where
^{E}size is the average size of an element,
^{V}mesh is the volume of the mesh, and
^{N}hex is the number of hexahedral elements of which the mesh is composed.

The latter two can easily be found out using the checkMesh utility.

The following link explains this procedure in detail:-
https://www.sandia.gov/files/cubit/1...tem/set-up.htm
MohdShaeq is offline   Reply With Quote

Reply

Tags
average cell, mesh, openfoam2112


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
UDF in case with DPM modle POSTHU Fluent UDF and Scheme Programming 0 March 3, 2021 07:21
Choice of cell size w.r.t size of the domain for meshing mazhar16823 Main CFD Forum 1 June 16, 2020 01:53
[mesh manipulation] How to write cellSet for different regions in constant/polyMesh/sets Struggle_Achieve OpenFOAM Meshing & Mesh Conversion 3 June 17, 2019 09:29
Courant Number Cell Size vitorgabriel OpenFOAM Pre-Processing 0 June 3, 2016 10:41
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43


All times are GMT -4. The time now is 16:12.