CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Calculate the volume of each cell in ParaView

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By reza2031

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2022, 13:22
Cool Calculate the volume of each cell in ParaView
  #1
New Member
 
Reza Nouri
Join Date: Oct 2012
Location: Tennessee
Posts: 26
Rep Power: 13
reza2031 is on a distinguished road
Send a message via Skype™ to reza2031
Here is the issue:
I do not know how to calculate the cell volumes as a field in ParaView.

What do I need it for:
A RANS simulation is necessary prior to an LES simulation.
One can calculate the integral length scale from a RANS simulation and use it to see if the mesh is fine enough.
In my case, I did a k-\omega simulation. Then, calculated the integral length scale L as a field in ParaView:
L = \frac{k^{0.5}}{C_{\mu}^{0.25}*\omega} ,where C_{\mu} is equal to 0.09
One can define a new field f:
f = \frac{L}{\Delta} ,where L is the integral length scale and \Delta is Cell Volume^{(1/3)}

Let us say the goal is to resolve 80% of eddies, then f < 5 shows where the mesh is coarse and needs refinement.

But, I do not know how to get the volume for each cell.

Any help is appreciated,
Reza
reza2031 is offline   Reply With Quote

Old   October 12, 2022, 17:23
Default
  #2
New Member
 
Reza Nouri
Join Date: Oct 2012
Location: Tennessee
Posts: 26
Rep Power: 13
reza2031 is on a distinguished road
Send a message via Skype™ to reza2031
For anyone having the same issue.
Here is how to calculate the cell volumes in ParaView.
You can use the "Mesh Quality" filter.
You can press Ctrl+Space and then type in "Mesh Quality", then press Enter.
Depending on your mesh (Tet, Hex, or ...), select the quality measure.
My mesh has only the "Hex" type.
See attachments.


Cheers!
Reza
Attached Images
File Type: png ssss.png (17.8 KB, 87 views)
File Type: jpg sd.jpg (73.6 KB, 73 views)
jherb and ABgabriel13 like this.
reza2031 is offline   Reply With Quote

Old   November 16, 2023, 10:18
Default
  #3
Member
 
Marķa Rosales
Join Date: Mar 2023
Location: Spain
Posts: 35
Rep Power: 3
MMRC is on a distinguished road
Hi Reza, I found this also could work:

1) using topoSet and foamToVTK extract as vtm series the region of interest

2) import it into paraview and apply filter cell size
3) open spreadsheet and check both Cell Data and Field Data info. The first one shows volume per cell, the last one shows the total volume of the vtm series.
MMRC 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
Specific cell volume in paraview Katt OpenFOAM 6 November 16, 2023 10:16
multiphaseEulerFoam FOAM FATAL IO ERROR qutadah.r OpenFOAM Running, Solving & CFD 11 December 10, 2021 20:18
[General] plot out the volume of each cell in a mesh using paraview hz283 ParaView 3 January 17, 2017 08:58
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11


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