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/)
-   -   [Commercial meshers] How to separate fluid zones? (https://www.cfd-online.com/Forums/openfoam-meshing/121661-how-separate-fluid-zones.html)

yurifrey August 2, 2013 08:46

How to separate fluid zones?
 
Hello everyone!

I have a fluid domain which is separated into two zones (one of them should be set as porous) and I meshed it in gambit creating two different "continuum types". At the end of the .msh file there is

Code:

(0 "Zones:")
(45 (2 fluid zone2)())
(45 (3 fluid zone1)())
(45 (4 wall wall_in)())
(45 (5 wall wall_out)())
(45 (6 pressure-outlet outlet)())
(45 (7 velocity-inlet inlet)())
(45 (9 interior default-interior)())

so I guess the two zones are set correctly. When I convert the mesh to OF I lose this division and I can only find one cell zone as I can read from the cellZone file contained in polyMesh:

Code:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

0
()

// ************************************************************************* //

Is there a problem in the mesh? Should I specify something in the conversion? Thank you for any help, I lost lot of time trying to fix this without succeeding.. :(

Yuri

joegi.geo August 8, 2013 07:21

Hi,

If the mesh is 2d, you should use an option to preserve the zones (do not recall the option, just type -help). If the mesh is 3d, it should preserve the zones. At least it works for me with no problems.

jg


All times are GMT -4. The time now is 07:08.