CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Calculate the volume of one cell

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2018, 11:44
Question Calculate the volume of one cell
  #1
Senior Member
 
LT
Join Date: Dec 2010
Posts: 104
Rep Power: 16
NewKid is on a distinguished road
As listed in the title, is there any function which can calculate the volume of one cell directly in OF 4.0?
Thanks!
NewKid is offline   Reply With Quote

Old   October 5, 2018, 08:35
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
The first item in the result list of a simple google search for openfoam cell volume gives this result:
How to get the volume of a cell
jherb is offline   Reply With Quote

Old   October 6, 2018, 22:08
Default
  #3
Senior Member
 
LT
Join Date: Dec 2010
Posts: 104
Rep Power: 16
NewKid is on a distinguished road
jherb, thanks very much!
I used the cellVolume() to get the volume of one cell. Now mesh().V() should be a better way.
This thread should be finished!
NewKid 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
Set cell volume integrated field values to preserve integral Diro7 OpenFOAM Pre-Processing 2 June 3, 2018 11:44
[snappyHexMesh] sHM layer process keeps getting killed MBttR OpenFOAM Meshing & Mesh Conversion 4 August 15, 2016 04:21
[General] Wrong Calculation of Cell Volume olli191 ParaView 1 August 3, 2016 05:09
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
gradient calculation of cell centered finite volume method zhengjg Main CFD Forum 10 November 12, 2012 00:13


All times are GMT -4. The time now is 22:10.