CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Technical] How to convert Corner-grid format to OpenFOAM mesh (https://www.cfd-online.com/Forums/openfoam-meshing/216799-how-convert-corner-grid-format-openfoam-mesh.html)

ELwardi April 20, 2019 12:05

How to convert Corner-grid format to OpenFOAM mesh
 
Hello all,

So, I have to convert a corner grid to OpenFOAM mesh. The big problem is that the grid allows for two adjacent cells to share a "portion of a face" but the mesh classes in OpenFOAM (fvMesh in particular) doesn't like this.

Does anyone know a quick way to convert it? Provided that there is some C library which, apparently, can read in the grid; which means I can easily retrieve the points cloud and their connectivity (to some extent).

This particularly leads to the ability of writing an invalid "blockMeshDict" where some cells are described like this:

Code:

+-----------------+
|                |
|                |
|                +----------------+
|                |                |
+-----------------+                |
                  |                |
                  |                |
                  +----------------+

But I'm not sure about where to go from there :rolleyes:


Note that trying to extract the surface mesh from the grid and re-meshing it with tools like "cfMesh" didn't work, obviously because of the same issue ::(

"Bounding box (0 0 -20) (7000 7000 0)"

Thanks in advance.


All times are GMT -4. The time now is 09:38.