Mesh structure of Open Foam.
Hi Foamers,
Can anybody explain me the underlying mesh connectivity of the mesh generated in OpenFoam by blockMesh. Or the reference where should I look for the same ? rgds, -Gopal :( |
Hello i do not know if this information is still valid (i mean using -blockTopology argument to dump out a blockTopology.obj file)http://openfoamwiki.net/index.php/BlockMesh
and can not try blockmesh right now. But try to visualise some blockmesh-examples with the help of VTK (for example visit http://www.llnl.gov/visit/ mayavi http://mayavi.sourceforge.net/ or paraview that comes with OF) just my 2 cents elvis |
Check out the doxygen documentation: there you'll find the mesh classes. Doxygen is your friend. ;)
The basic idea is that you have a global pointField that holds all the mesh points. The position of the points in this pointField is your connection to all the upper topologies: face, cell, even the patches, sets and zones... their core is in this idea.. because the upper sets are just lists of the lower ones. :D like this: Code:
pointField myLittleMeshPoints (3, point(0,0,0)); |
When defining a face from a list of point as per your example, does the ordering of the points matters ?
Will it matter when computing surface flux latter, for example ? EDIT Just found my answer in the user guide :) |
Quote:
"The order in which the vertices are given must be such that, looking from inside the block and starting with any vertex, the face must be traversed in a clockwise direction to define the other vertices." |
Quote:
I'm working on a 2D solver (gathering 3D cell centered data for the interpolation) so I just need to be careful to have the counter clockwise oriented polygons (that's what faces are) so that my area is calculated positively. Or, as the U-Guide states: Code:
if (inside and looking out) Code:
Foam::face Foam::face::reverseFace() |
Quote:
|
Quote:
Hi Tomislav! I'm trying to build a cylinder made of points by using pointField. If you have a look at the pointField class, you'll see that the write function is missing, so can I write and read this list of points in file? Up to the moment I've been able of writing them by using: OFstream cylinderPoints("cylinderPoints"); but I'm sure that something better can be done... :D Regards, -- Antonio |
All times are GMT -4. The time now is 11:28. |