CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Got trouble meshing (https://www.cfd-online.com/Forums/openfoam/82658-got-trouble-meshing.html)

Leech December 1, 2010 17:09

Got trouble meshing
 
1 Attachment(s)
Hi everyone,

i'm working on a project and i just can't get my mesh working. First of all i'll show you the geometry i'm trying to realize using blockmesh (unfortunately i'll have to use the direct way by the blockmeshdict, instead of importing a cad-model).
So in the atachement is the geometry shown in 2D. For shure im creating it 3D.
Everything went good and i already saw the mesh in paraview, but then i realized that the little faces from the "turbulenzgenerator" were not addressed. So i wanted to add them in the wall section and Openfoam got me an error. So i thought i got to merge the patches from the neighbor blocks, so they share the cells. So i tried to add them in the mergePatchPairs section. But i don't now if i missunderstood the syntax or what the problem is.
So here is my blockmeshdict:
Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.7.1                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.com                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

convertToMeters 0.01;

vertices       
(
(-340 0 0)
(-306.8 0 0)
(-306.8 10 0)
(-340 10 0)

(-340 0 38.1)
(-306.8 0 38.1)
(-306.8 10 38.1)
(-340 10 38.1)

(-340 0 76.2)
(-306.8 0 76.2)
(-306.8 10 76.2)
(-340 10 76.2)

(-306.8 0 2)
(-302.8 0 2)
(-302.8 10 2)
(-306.8 10 2)

(-302.8 0 38.1)
(-302.8 10 38.1)

(-306.8 0 74.2)
(-302.8 0 74.2)
(-302.8 10 74.2)
(-306.8 10 74.2)

(-302.8 0 0)
(0 0 0)
(0 10 0)
(-302.8 10 0)

(0 0 38.1)
(0 10 38.1)

(-302.8 0 76.2)
(0 0 76.2)
(0 10 76.2)
(-302.8 10 76.2)

(0 0 -50.8)
(4000 0 -50.8)
(4000 10 -50.8)
(0 10 -50.8)

(4000 0 76.2)
(4000 10 76.2)
);

blocks         
(
hex (0 1 2 3 4 5 6 7) (50 1 70) simpleGrading (1 1 10)
hex (4 5 6 7 8 9 10 11) (50 1 70) simpleGrading (1 1 0.1)
hex (12 13 14 15 5 16 17 6) (20 1 60) simpleGrading (1 1 10)
hex (5 16 17 6 18 19 20 21) (20 1 60) simpleGrading (1 1 0.1)
hex (22 23 24 25 16 26 27 17) (200 1 70) simpleGrading (1 1 10)
hex (16 26 27 17 28 29 30 31) (200 1 70) simpleGrading (1 1 0.1)
hex (32 33 34 35 29 36 37 30) (800 1 300) simpleGrading (1 1 1)
);

edges         
(
);

patches       
(
    patch  Einlass
    (
    (0 4 7 3)
    (4 8 11 7)
    )
    patch Auslass
    (
    (37 36 33 34)
    )
    empty Leer   
    (
    (0 1 5 4)
    (4 5 9 8)
    (3 7 6 2)
    (7 11 10 6)
    (12 13 16 5)
    (5 16 19 18)
    (15 6 17 14)
    (6 21 20 17)
    (22 23 26 16)
    (16 26 29 28)
    (25 17 27 24)
    (17 31 30 27)
    (32 33 36 29)
    (35 30 37 34)
    )
    wall WandFest
    (
    (8 9 10 11)
    (3 2 1 0)
    (15 14 13 12)
    (18 19 20 21)
    (22 25 24 23)
    (28 29 30 31)
    (32 35 34 33)
    (29 36 37 30)
    /*(10 9 18 21)
    (15 12 1 2)
    (20 19 28 31)
    (25 22 13 14)
    (35 32 23 24)*/
    )
    patch one /* Patch für merged Patch pairs */
    (
    (10 9 5 6)
    )
    patch two /* Patch für merged Patch pairs */
    (
    (6 5 18 21)
    )
   
);

mergePatchPairs
(
    (one two)
);

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

I guess am in a point where i dont know how to continue the work and so i thought it might be a good idea to ask in the forum.
Thanks anyone who is trying to help me.
By the way: the patches in the "wall wandfest" section which are out commentated are the 5 patches which i forgot to define. But Foam didn't wanted them to use.

Thanks for your help
Leech

nakul December 2, 2010 06:05

Hi,
It woud be better if you try to specify these faces in "wall" patch only, rather than using merge patch pairs.

It might be possible that you had defined these faces in wrong order. Have a look at them and also tell what error do you get when you specify those faces in "wall" patch.


All times are GMT -4. The time now is 21:14.