|
[Sponsors] |
[snappyHexMesh] snapControls is undefined in dictionary |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 13, 2023, 14:56 |
snapControls is undefined in dictionary
|
#1 |
New Member
Jefferson Galeano
Join Date: May 2023
Posts: 4
Rep Power: 3 |
Hi
I'm trying to mesh the 3D elbow with snappyHexMesh, I created an overall mesh that wraps around the elbow, I run surfaceFeatures and after applying sHM I get an error saying: --> FOAM FATAL IO ERROR: keyword snapControls is undefined in dictionary "/home/elbow/system/snappyHexMeshDict" file: /home/elbow/system/snappyHexMeshDict from line 17 to line 361. From function const Foam::dictionary& Foam::dictionary::subDict(const Foam::word&) const in file db/dictionary/dictionary.C at line 1008. FOAM exiting I already saw the syntax of snappyHexMesh, specifically in snapControls, but I can't see where the error is Any suggestions? Thanks in advance |
|
July 14, 2023, 03:07 |
|
#2 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
There is a ":" instead of ";" at line 193 which probably causes it.
Code:
level ((1e-4 1)): // distance from the surface patch-refinement level Addition: Regarding the entries there, the comment appears to be wrong (or I do not understand it correctly): the first number is just a placeholder, the second number determines how many splits of the background mesh cells are done in the volume enclosed by the region. The size at the surface of this region is determined in the refinementSurfaces subdictionary, where you also defined (1 1) - thus get the same size and there is another syntax error there at line 140: Code:
level level (1 1); |
|
July 14, 2023, 14:37 |
|
#3 |
New Member
Jefferson Galeano
Join Date: May 2023
Posts: 4
Rep Power: 3 |
I corrected the error and it didn't run, but when I change 'distance' to 'inside' I manage to run sHM and get the mesh,
{ mode inside; level 1; } my other error must be in the 'distance' syntax I still don't understand how it works I'll keep watching the guide. Thanks for your help Edit: I already saw the error, I had missed an 's' in level elbow { mode distance; levels ((1e-4 1)); // distance from the surface patch-refinement level } |
|
July 14, 2023, 16:23 |
|
#4 |
Senior Member
M
Join Date: Dec 2017
Posts: 703
Rep Power: 13 |
Oh sorry, I completely overlooked the mode setting there. Of course, with distance the comment makes sense!
|
|
Tags |
error, mesh 3d, snapcontrol, snappyhesmeshdict |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LEMOS InflowGenerator | r_gordon | OpenFOAM Running, Solving & CFD | 103 | December 18, 2018 01:58 |
OpenFOAM 1.6-ext git installation on Ubuntu 11.10 x64 | Attesz | OpenFOAM Installation | 45 | January 13, 2012 13:38 |
OpenFOAM on MinGW crosscompiler hosted on Linux | allenzhao | OpenFOAM Installation | 127 | January 30, 2009 20:08 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |
G95 + CGNS | Bruno | Main CFD Forum | 1 | January 30, 2007 01:34 |