![]() |
snappy hex mesh error
2 Attachment(s)
Hi there, I am trying to get to grips with sHM but am finding it hard to follow some of the tutorials online and in the user guide. I have an STL file of a cylinder which will be used for preliminary tests. Would it be possible for someone to have a quick look at the error I am getting when I run snappyHexMesh and point me in the right drection:
FOAM Warning : From function entry::getKeyword(keyType&, Istream&) in file db/dictionary/entry/entryIO.C at line 78 Reading /home/kd55/OpenFOAM/kd55-1.6/run/tutorials/incompressible/pisoFoam/ras/STLCylinder2-copy/system/snappyHexMeshDict found on line 86 the punctuation token '{' expected either } or EOF keyword meshQualityControls is undefined in dictionary "/home/kd55/OpenFOAM/kd55-1.6/run/tutorials/incompressible/pisoFoam/ras/STLCylinder2-copy/system/snappyHexMeshDict" file: /home/kd55/OpenFOAM/kd55-1.6/run/tutorials/incompressible/pisoFoam/ras/STLCylinder2-copy/system/snappyHexMeshDict from line 24 to line 87. From function dictionary::subDict(const word& keyword) in file db/dictionary/dictionary.C at line 467. FOAM exiting relevant files should be attatched bar the STL Kind Regards, Kit |
1 Attachment(s)
Greetings Kit,
It looks to me like you aren't using a proper text editor. My favourite one is Kate, although it requires KDE to be installed, which can mean that you would need to download and install an additional 200-300 MB of packages. Either way, I suggest that you take more care with where the brackets "{" and "}" are placed, because the following fields have the "}" ones in the wrong place:
Another advice is to always have the original "snappyHexMeshDict" open in another window, so you can consult it and compare it with your current version. edit: by what I've seen from your previous posts, you might be running on Windows. So you might be interested in this: http://code.google.com/p/bluecfd-sin...epad2_manually Best regards and good luck! Bruno |
thanks Bruno, sHM now seems to be working.
Thanks again, Kit |
Quote:
I have the same problem as yours, could you please tell me how you got your case working? Thank you so much! Aqua |
Hi Aqua,
I'm not so sure I have got it working now, as I am using snappy in the pisofoam solver which I can't run at the moment as it has a bug which is caused by the R file in the 0 directory. However, I do have a few pointers on where you might be going wrong as I have spent quite a lot of time on this now: - if you are using paraview (not parafoam), i would use foamToVTK to transfer the data files - copy the snappyHexMesh dict from the motorbike tutorial and make sure you are carefull when making changes to it, i.e. be carefull with th {,(,),}. change little bits at a time and make sure you know what you are changing, there is plenty of info on here. There are also some online tutorials: http://www.hydroniumion.de/general/s...mesh-tutorial/ http://www.hydroniumion.de/studium/s...torial-part-2/ Regards, Kit |
Quote:
Thank you so much for your help! I am reading the turorials and hopefully will find some solution! Thank you so much and wish you good luck in your research! Aqua |
2 Attachment(s)
I get the same error; keyword meshQualityControls is undefined in dictionary snappyHexDict. I looked at the right places for the brackets but I can't figure it out?
I'm trying to make a mesh inside the scour stl file instead of outside the region. |
1 Attachment(s)
I had the wrong internal co-ordinates and also had an old mesh in the polymesh folder.
However, I want to refine my grid at the walls inside the stl file, how can I do this? And further I want to make a patch at the left small tube to let water in and a patch on the left largest circle part to let water out again. The rest I want as a patch to specify a B.C. on it (wall, no velocity, no flux). How can I do this? |
Quote:
I think you need to creat different parts in stl file first according to how many patches you want to creat. Aqua |
Greetings to all!
@Elise: You can with createPatch. You can find several examples by running: Code:
find $WM_PROJECT_DIR -name createPatchDictBest regards, Bruno |
Quote:
I wonder, If my geometry is a car with only one part named "car", in a stl file. After snappyHexMesh, in the boundary file there is only the patch named "car". Then, Now I want to create different parts for the car such as "car_frontwindow", "car_backwindow", "car_leftsidewindow" etc. Is it possible to do that in OF? Thank you so much! Aqua |
I loaded in the different stl files instead of one stl file, now I have the different patches.
Next time I will use autopatch, easier to use I think. |
Quote:
Quote:
Best regards, Bruno |
| All times are GMT -4. The time now is 22:17. |