|
[Sponsors] |
December 7, 2010, 11:54 |
Volume of cells with interFoam
|
#1 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17 |
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! |
|
December 7, 2010, 14:23 |
|
#2 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24 |
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 |
|
December 8, 2010, 04:57 |
|
#3 |
Senior Member
Andrea Ferrari
Join Date: Dec 2010
Posts: 319
Rep Power: 17 |
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 |
|
December 8, 2010, 12:15 |
|
#4 |
Senior Member
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24 |
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 |
|
|
|
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 |