CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Volume of cells with interFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 7, 2010, 11:54
Default Volume of cells with interFoam
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 275
Rep Power: 7
Andrea_85 is on a distinguished road
Dear all,

I just started using OpenFoam as part of my phd and so i am a very new user. At the moment i would like to simulate multiphase flows using interFoam, in simple geometry created with blockMesh.

probably is a very simple questions but...
Is there an easy way to knows the volume of each cell using an unstructured grid (my geometry is a sphere for now..)

I have seen that after using blockMesh appear "faces" "neigbour" "owner" and "point" in your /polyMesh directory but it seems difficult to obtain the volume of each cell from there.

Thank you in advance for any help provided!
Andrea_85 is offline   Reply With Quote

Old   December 7, 2010, 14:23
Default
  #2
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 418
Rep Power: 14
santiagomarquezd will become famous soon enough
Andrea, the basic info for the mesh is: the points (and their coordinates), which identifies the vertices of the elements, the numeration of the faces, the ownership of these faces by the elements and the patches. Volume of cells have to be reconstructed from this basic info and is not written in the mesh directory (./constant/polyMesh). At running time, you have the mesh.V() method that gives you this info.
If you want to obtain this info prior to run you have to program a preprocessing tool that loads the mesh and then writes this info to disk.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   December 8, 2010, 04:57
Default
  #3
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 275
Rep Power: 7
Andrea_85 is on a distinguished road
First of all thanks for the reply,

Can you explain a bit better what you mean by mesh.V method. I need this info after the simulation to calculate the energy.

Thanks
Andrea_85 is offline   Reply With Quote

Old   December 8, 2010, 12:15
Default
  #4
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 418
Rep Power: 14
santiagomarquezd will become famous soon enough
Hi Andrea, this method (function of C++ object) is part of fvMesh class that gives you a scalarField with the volumes, a good approach to the use of this method was explained in this thread write cell volumes, post #10.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Post-doctoral Fellow
Research Center for Computational Mechanics (CIMEC) - CONICET/FICH-UNL
T.E.: 54-342-4511594 Ext. 1005
Güemes 3450 - (3000) Santa Fe
Santa Fe - Argentina
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[ICEM] Negative volume error in hybrid mesh siw ANSYS Meshing & Geometry 4 September 3, 2014 05:25
blockMesh error ... balkrishna OpenFOAM Pre-Processing 0 August 17, 2010 02:39
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 14:11
interFoam, problems with volume fraction conservation jorgehegar OpenFOAM 4 October 15, 2009 06:53
split volume Kabo FLUENT 1 January 28, 2008 08:08


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