|
[Sponsors] |
[snappyHexMesh] Issues in using snappyHexMesh |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 18, 2021, 06:32 |
Issues in using snappyHexMesh
|
#1 |
Senior Member
starter
Join Date: Sep 2012
Posts: 125
Rep Power: 16 |
Greetings, I am following Tobias' exhaust manifold tutorial. When I combine all STLs into regionSTL, I cannot achieve water tight STL. In Salome, I had reached solid and meshed it according to the parameters in the video. Also, while performing snappyHexMesh, I get the error as below:
I understand that this is due to some curly bracket missing in snappyHexMeshDict but despite my numerous efforts I could not find where the error is. I have attached my Dict for anyone who can have a quick review and please guide me on this. I shall be very grateful. --> FOAM FATAL IO ERROR: keyword castellatedMeshControls is undefined in dictionary "/home/imad/cad/system/snappyHexMeshDict" file: /home/imad/cad/system/snappyHexMeshDict from line 19 to line 293. From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const in file db/dictionary/dictionary.C at line 943. FOAM exiting |
|
January 18, 2021, 06:43 |
keyword mode is undefined
|
#2 |
Senior Member
starter
Join Date: Sep 2012
Posts: 125
Rep Power: 16 |
All, I resolved the error I earlier posted but this new one has popped up and I cannot resolve it. I do not have the word mode at all in my Dict attached.
--> FOAM FATAL IO ERROR: keyword mode is undefined in dictionary "/home/imad/cad/system/snappyHexMeshDict/castellatedMeshControls/refinementRegions/regionSTL.stl" file: /home/imad/cad/system/snappyHexMeshDict/castellatedMeshControls/refinementRegions/regionSTL.stl from line 68 to line 82. From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const in file db/dictionary/dictionary.C at line 802. FOAM exiting Shall be grateful for help in resolution of this error. Last edited by sihaqqi; January 18, 2021 at 07:06. Reason: New error |
|
January 19, 2021, 04:13 |
|
#3 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,200
Rep Power: 28 |
Hi !
This error tells you exactly where the problem is: Code:
--> FOAM FATAL IO ERROR: keyword mode is undefined in dictionary "/home/imad/cad/system/snappyHexMeshDict/castellatedMeshControls/refinementRegions/regionSTL.stl" file: /home/imad/cad/system/snappyHexMeshDict/castellatedMeshControls/refinementRegions/regionSTL.stl from line 68 to line 82. Have a look at any tutorial using snappyHexMesh, for instance the motorbike tutorial, and you will find the proper syntax to define refinementRegions: Code:
refinementRegions { refinementBox { mode inside; levels ((1E15 4)); } } Cheers, Yann Last edited by Yann; January 19, 2021 at 04:14. Reason: typo |
|
January 19, 2021, 04:20 |
|
#4 |
Senior Member
starter
Join Date: Sep 2012
Posts: 125
Rep Power: 16 |
Thanks Yann,
Just for information as I am not fluent in C++, what does double parenthesis mean in levels ((1E15 4)). |
|
January 19, 2021, 04:42 |
|
#5 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,200
Rep Power: 28 |
This is not C++ specific, this is just the syntax used by OpenFOAM. there are a double parenthesis because you can specify several distances and refinement levels, as you can see in the documentation:
Code:
sphere1 { // refinement level 5 within 1.0 m mode distance; // refinement level 3 within 2.0 m levels ((1.0 5) (2.0 3)); // levels must be ordered nearest first } |
|
Tags |
error, snappyhexmesh 3d |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] SnappyHexMesh Issues | deji | OpenFOAM Meshing & Mesh Conversion | 16 | October 20, 2021 08:13 |
[snappyHexMesh] Running snappyHexMesh in parallel - optimizing | peterhess | OpenFOAM Meshing & Mesh Conversion | 2 | January 3, 2018 03:54 |
[swak4Foam] and snappyHexMesh gives erratic mesh result | Coke Rivas Ordenes | OpenFOAM Community Contributions | 3 | April 17, 2017 14:06 |
[snappyHexMesh] snappyHexMesh add-layers issues, warped cells | heling | OpenFOAM Meshing & Mesh Conversion | 9 | August 19, 2013 14:01 |
[snappyHexMesh] SnappyHexMesh issues | Alessio_1985 | OpenFOAM Meshing & Mesh Conversion | 4 | November 6, 2012 20:59 |