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

Volume of cells with interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 7, 2010, 11:54
Default Volume of cells with interFoam
  #1
Senior Member
 
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17
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: 452
Rep Power: 24
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.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) 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: 319
Rep Power: 17
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: 452
Rep Power: 24
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 http://www.cfd-online.com/Forums/ope...l-volumes.html, post #10.

Regards.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd 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
[ICEM] Negative volume error in hybrid mesh siw ANSYS Meshing & Geometry 4 September 3, 2014 06:25
blockMesh error ... balkrishna OpenFOAM Pre-Processing 0 August 17, 2010 03:39
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
interFoam, problems with volume fraction conservation jorgehegar OpenFOAM 4 October 15, 2009 07:53
split volume Kabo FLUENT 1 January 28, 2008 08:08


All times are GMT -4. The time now is 00:59.