CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[blockMesh] Why is this creating a block and not a cylinder?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2017, 01:54
Default Why is this creating a block and not a cylinder?
  #1
New Member
 
Zach
Join Date: Jul 2017
Posts: 11
Rep Power: 8
Thewitness is on a distinguished road
convertToMeters 1;

vertices
(
(0 0 0)
(1 0 0)
(0 1 0)
(1 1 0)
(0 0 1)
(1 0 1)
(0 1 1)
(1 1 1)
(0 2 0)
(1 2 0)
(0 2 1)
(1 2 1)
(2 0 0)
(2 1 0)
(2 0 1)
(2 2 1)
(2 2 0)
(2 2 1)
);

blocks
(
hex (0 1 3 2 4 5 7 6) (1 1 1) simpleGrading (1 1 1)
hex (2 3 9 8 6 7 11 10) (1 1 1) simpleGrading (1 1 1)
hex (1 12 13 3 5 14 15 7) (1 1 1) simpleGrading (1 1 1)
hex (3 13 16 9 7 15 17 11) (1 1 1) simpleGrading (1 1 1)
);

edges
(
arc 1 2 (0.292893217 0.292893217 0)
arc 2 9 (0.292893217 1.707106783 0)
arc 9 13 (1.707106783 1.707106783 0)
arc 13 1 (1.707106783 0.292893217 0)
arc 5 6 (0.292893217 0.292893217 1)
arc 6 11 (0.292893217 1.707106783 1)
arc 11 15 (1.707106783 1.707106783 1)
arc 15 5 (1.707106783 0.292893217 1)
);

boundary
(
inlet
{
type patch;
faces
(
);
}
outlet
{
type patch;
faces
(
);
}
bottom
{
type symmetryPlane;
faces
(
(0 1 3 2)
(2 3 9 8)
(1 12 13 3)
(3 13 16 9)
);
}
top
{
type symmetryPlane;
faces
(
(4 5 7 6)
(6 7 11 10)
(5 14 15 7)
(7 15 17 11)
);
}
left
{
type symmetryPlane;
faces
(
(2 0 4 6)
(8 2 6 10)
);
}
right
{
type symmetryPlane;
faces
(
(12 13 15 14)
(13 16 17 15)
);
}
front
{
type symmetryPlane;
faces
(
(0 1 5 4 )
(1 12 14 5)
);
}
back
{
type symmetryPlane;
faces
(
(9 8 10 11)
(16 9 11 17)
);
}
obstacle
{
type patch;
faces
(
);
}
);

mergePatchPairs
(
);
Thewitness is offline   Reply With Quote

Old   August 1, 2017, 04:40
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Because the pairs of points you are trying to link with an arc are not connected.

Example, vertices 1 and 2. There is no block defined where the block has an edge that connects vertices 1 and 2. block 0 for example, has the following edges: 0-1, 1-3, 3-2 and 2-0. There is no 1-2 and so it does not create the arc/curve.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   August 22, 2017, 22:30
Default
  #3
Member
 
Join Date: Feb 2016
Posts: 41
Rep Power: 10
LeeRuns is on a distinguished road
I spent a while dealing with somethi g like this accidentally made a cone instead of a semi circle. Did u get it to work?

Sent from my SM-G930V using CFD Online Forum mobile app
LeeRuns is offline   Reply With Quote

Old   August 22, 2017, 22:58
Default Answer to the last question
  #4
New Member
 
Zach
Join Date: Jul 2017
Posts: 11
Rep Power: 8
Thewitness is on a distinguished road
I scratched that mesh and just restarted, but I got the new one I created to work. The post earlier was very helpful.
Thewitness is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 15:57.