CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Meshing Format & General Technical

BlockMesh not making arcs

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 6, 2010, 07:54
Default BlockMesh not making arcs
  #1
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 7
Disco_Caine is on a distinguished road
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 is offline   Reply With Quote

Old   July 6, 2010, 10:03
Default
  #2
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 7
Disco_Caine is on a distinguished road
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!
Disco_Caine is offline   Reply With Quote

Old   July 6, 2010, 10:09
Default
  #3
Senior Member
 
Stefan Herbert
Join Date: Dec 2009
Location: Darmstadt, Germany
Posts: 129
Rep Power: 8
herbert is on a distinguished road
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
herbert is offline   Reply With Quote

Old   July 6, 2010, 10:16
Default
  #4
Member
 
G B
Join Date: Mar 2010
Posts: 37
Rep Power: 7
Disco_Caine is on a distinguished road
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.
Disco_Caine is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 01:24
Blockmesh cavity error message tonitoney OpenFOAM Installation 2 March 17, 2008 12:59
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 17:51


All times are GMT -4. The time now is 19:27.