|
[Sponsors] |
August 2, 2017, 06:14 |
Why does this mesh crash?
|
#1 |
New Member
Zach
Join Date: Jul 2017
Posts: 11
Rep Power: 8 |
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 ( ); |
|
August 2, 2017, 23:04 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
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) Code:
hex (0 1 2 0 5 6 7 5) (1 1 1) simpleGrading (1 1 1) Cheers, Antimony |
|
August 3, 2017, 00:07 |
Additional Question
|
#3 |
New Member
Zach
Join Date: Jul 2017
Posts: 11
Rep Power: 8 |
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.
|
|
August 3, 2017, 01:11 |
|
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
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 |
|
August 4, 2017, 13:07 |
Are pyramids valid?
|
#5 |
New Member
Zach
Join Date: Jul 2017
Posts: 11
Rep Power: 8 |
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)? |
|
August 6, 2017, 22:07 |
|
#6 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 |
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 |
|
|
|
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 |