CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing Format & General Technical (http://www.cfd-online.com/Forums/openfoam-meshing-technical/)
-   -   BlockMesh not making arcs (http://www.cfd-online.com/Forums/openfoam-meshing-technical/77853-blockmesh-not-making-arcs.html)

Disco_Caine July 6, 2010 07:54

BlockMesh not making arcs
 
Hi, i've been reading the userguide on how to do simple arcs (and it seems simple enough) but for some reason, it's not working for me.

Here is my mesh:

vertices
(
(0 -1.35 0) //0
(10.235 -6.835 0) //1
(10.235 6.835 0) //2
(0 1.35 0) //3
(0 -1.35 4.45) //4
(10.235 -6.835 4.45) //5
(10.235 6.835 4.45) //6
(0 1.35 4.45) //7

);

blocks
(
hex (0 1 2 3 4 5 6 7) (10 1 100) simpleGrading (1 1 10)

);

edges
(
arc 1 2 (11.5 0.0 0.0)
arc 5 6 (11.5 0.0 4.45)
);

patches
(

patch walls
(
(0 4 7 3)
(0 1 5 4)
(1 2 6 5)
(2 3 7 6)
(3 2 1 0)
(4 5 6 7)
)
);

mergePatchPairs
(
);

//-----//

As you can see, the edge is defined accordingly. But when i create my mesh and use paraview I get a straight line instead of an arc. I assume it's something quite simple (as my past enquiries have turned out to be). But i am stumped here.

Thanks in advance!
GB

Disco_Caine July 6, 2010 10:03

Update:

FIXED! I ended up copying the blockmeshdict from the stress analysis tutorial and modifying the vertex and the arcs accordingly and it worked. Doing a line by line comparison it is exactly the same. I dont know what happened. So, for anyoe out there having trouble making arcs, just copy the blockmeshdict from the stress analysis tutorial, and modify accordingly. Best of luck!

herbert July 6, 2010 10:09

Just for note:

the problem here was, that an arc was defined on an edge (1 2) with only one single cell. To create arcs, of course, you need some more cells along it.

Regards,
Stefan

Disco_Caine July 6, 2010 10:16

Ofcourse, that was it. How embarassing. I should bite my tongue (or fingers) before i post. I thought i had set 10 cells for my y axis. And the tutorial case file has that and that is why it worked. Thank you for pointing that out to me. I can't believe it.

Thank you again, Stefan.


All times are GMT -4. The time now is 03:29.