CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   simple mesh with arcs (https://www.cfd-online.com/Forums/openfoam/88092-simple-mesh-arcs.html)

mikemech May 8, 2011 13:23

simple mesh with arcs
 
Hi, I am trying to create a simple mesh using blockMesh utility, like this one:

https://docs.google.com/leaf?id=0Bw0...thkey=CIWG25EF



The problem is, that when I type "checkMesh", it gives out 3 errors, as shown here:

https://docs.google.com/leaf?id=0Bw0...thkey=CNHAj8MB

But I can't figure out what the problem might be. Does anybody have an idea?

Thank you!

ps: this is the blockMeshDict file that I used:

https://docs.google.com/leaf?id=0Bw0...thkey=CIG149MM

morard May 9, 2011 03:47

Hello Mike,

I've just divided yours geometry into two blocks and everything works fine.

convertToMeters 0.1;
vertices
(

( 1 0 0 )
( 2 0 0 )
( 0 2 0 )
( 0 1 0 )
( 0 -1 0 )
( 0 -2 0 )
( 1 0 1 )
( 2 0 1 )
( 0 2 1 )
( 0 1 1 )
( 0 -1 1 )
( 0 -2 1 )

);

edges
(
arc 1 2 (1.414213562 1.414213562 0)
arc 0 3 (0.707106781 0.707106781 0)
arc 0 4 (0.707106781 -0.707106781 0)
arc 1 5 (1.414213562 -1.414213562 0)


arc 7 8 (1.414213562 1.414213562 1)
arc 6 9 (0.707106781 0.707106781 1)
arc 6 10 (0.707106781 -0.707106781 1)
arc 7 11 (1.414213562 -1.414213562 1)

);

blocks
(
hex (0 1 2 3 6 7 8 9) (10 10 10) simpleGrading (1 1 1)
hex (4 5 1 0 10 11 7 6) (10 10 10) simpleGrading (1 1 1)
);

patches
(

patch inlet
(
(3 9 8 2)
)

patch outlet
(
(5 11 10 4)
)

wall walls
(
(1 2 8 7)
(5 1 7 11)
(3 0 6 9)
(0 4 10 6)
)

empty front
(
(0 1 2 3)
(4 5 1 0)
(6 7 8 9)
(10 11 7 6)
)
);

Sorry because I changed numbering of your original geometry.

Regards,
Dejan


All times are GMT -4. The time now is 16:28.