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

[blockMesh] Why does this mesh crash?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2017, 06:14
Default Why does this mesh crash?
  #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)
(0 -1 -1)
(0 1 -1)
(0 -1 1)
(0 1 1)
(1 0 0)
(1 -1 -1)
(1 1 -1)
(1 -1 1)
(1 1 1)
);

blocks
(
prism (0 1 2 5 6 7) (1 1 1) simpleGrading (1 1 1)
prism (0 2 4 5 7 9) (1 1 1) simpleGrading (1 1 1)
prism (0 4 3 5 9 8) (1 1 1) simpleGrading (1 1 1)
prism (0 3 1 5 8 6) (1 1 1) simpleGrading (1 1 1)
);

edges
(
arc 1 2 (0 0 -1.41421356)
arc 2 4 (0 1.41421356 0)
arc 4 3 (0 0 1.41421356)
arc 3 1 (0 -1.41421356 0)
arc 6 7 (1 0 -1.41421356)
arc 7 9 (1 1.41421356 0)
arc 9 8 (1 0 1.41421356)
arc 8 6 (1 -1.41421356 0)
);

boundary
(
inlet
{
type patch;
faces
(
);
}
outlet
{
type patch;
faces
(
);
}
bottom
{
type symmetryPlane;
faces
(
(1 6 7 2)
);
}
top
{
type symmetryPlane;
faces
(
(3 8 9 4)
);
}
left
{
type symmetryPlane;
faces
(
(0 1 2)
(0 2 4)
(0 4 3)
(0 3 1)
);
}
right
{
type symmetryPlane;
faces
(
(5 6 7)
(5 7 9)
(5 9 8)
(5 8 6)
);
}
front
{
type symmetryPlane;
faces
(
(1 6 8 3)
);
}
back
{
type symmetryPlane;
faces
(
(7 2 4 9)
);
}
obstacle
{
type patch;
faces
(
);
}
);

mergePatchPairs
(
);
Thewitness is offline   Reply With Quote

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

I have no idea which version of OpenFOAM you are using, but in most ones the block type HAS to be hex.

In order to generate a prism, you would define it as a hex and have some vertices repeating.

So for something like this:
Code:
prism (0 1 2 5 6 7) (1 1 1) simpleGrading (1 1 1)
One possible solution is:
Code:
hex (0 1 2 0 5 6 7 5) (1 1 1) simpleGrading (1 1 1)
I noticed that you have arcs defined. You will not be able to view your arcs with just 1 cell. So increase the cell count to be able to capture your arcs.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   August 3, 2017, 00:07
Default Additional Question
  #3
New Member
 
Zach
Join Date: Jul 2017
Posts: 11
Rep Power: 8
Thewitness is on a distinguished road
Thanks for the help. The lab manual I was looking at had prism as a type of shape that can be used. Would just 2 cells work for arcs, or do I need like 100? I know more than 1000 can cause a crash.
Thewitness is offline   Reply With Quote

Old   August 3, 2017, 01:11
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

I don't think you need 100 or 1000. At the minimum I would suggest at least 3 or 4. But then again, it depends on how accurately you want the arc to be captured.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   August 4, 2017, 13:07
Default Are pyramids valid?
  #5
New Member
 
Zach
Join Date: Jul 2017
Posts: 11
Rep Power: 8
Thewitness is on a distinguished road
Is pyr (1 2 3 4 5) valid or does this also have to be converted to a hex?
Would the solution be hex (1 2 3 4 5 5 5 5)?
Thewitness is offline   Reply With Quote

Old   August 6, 2017, 22:07
Default
  #6
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

AFAIK, the only supported type in blocks is hex. So yes, you would have to switch to a hex definition like what you have mentioned.

Cheers,
Antimony
Antimony 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface Kryo OpenFOAM Meshing & Mesh Conversion 13 February 17, 2022 07:34
[Other] conformed FSI mesh for unstructured fluid region ashish.svm OpenFOAM Meshing & Mesh Conversion 10 August 2, 2019 08:40
[ICEM] 2D hybrid mesh (unstructured mesh highly dependent on structured mesh parameters) shubham jain ANSYS Meshing & Geometry 1 April 10, 2017 05:03
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation tommymoose ANSYS Meshing & Geometry 48 April 15, 2013 04:24
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 11:55


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