|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Join Date: Nov 2011
Posts: 22
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
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
__________________
Last edited by wyldckat; December 31, 2011 at 13:28. Reason: see "edit:" |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Join Date: Nov 2011
Posts: 22
Rep Power: 15 ![]() |
thanks Bruno, sHM now seems to be working.
Thanks again, Kit |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 15 ![]() |
||
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Join Date: Nov 2011
Posts: 22
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#6 | |
Member
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 15 ![]() |
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 |
||
![]() |
![]() |
![]() |
![]() |
#7 |
New Member
Elise
Join Date: Jan 2012
Posts: 15
Rep Power: 14 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#8 |
New Member
Elise
Join Date: Jan 2012
Posts: 15
Rep Power: 14 ![]() |
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? |
|
![]() |
![]() |
![]() |
![]() |
#9 | |
Member
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 15 ![]() |
Quote:
I think you need to creat different parts in stl file first according to how many patches you want to creat. Aqua |
||
![]() |
![]() |
![]() |
![]() |
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Greetings to all!
@Elise: You can with createPatch. You can find several examples by running: Code:
find $WM_PROJECT_DIR -name createPatchDict Best regards, Bruno
__________________
|
|
![]() |
![]() |
![]() |
![]() |
#11 | |
Member
Aqua
Join Date: Oct 2011
Posts: 96
Rep Power: 15 ![]() |
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 |
||
![]() |
![]() |
![]() |
![]() |
#12 |
New Member
Elise
Join Date: Jan 2012
Posts: 15
Rep Power: 14 ![]() |
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. |
|
![]() |
![]() |
![]() |
![]() |
#13 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 ![]() ![]() ![]() ![]() ![]() ![]() |
Quote:
![]() Quote:
![]() Best regards, Bruno
__________________
|
|||
![]() |
![]() |
![]() |
![]() |
#14 |
New Member
Ewan
Join Date: Nov 2016
Posts: 15
Rep Power: 10 ![]() |
I am trying to run snappyHexMesh having only modified a couple of things in the control Dict to suit my patches but the following error keeps cropping up "keyword meshQualityControls is indefined in dictionary "IOstream"". The 'meshQualityControls' has also been 'castellatedMeshControls' depending on which parts I comment out.
I am working in Docker if that has any effect but I think it is probably me just missing some punctuation somewhere! Please could someone help? (I've had to rename the file to a .txt but if you change it back to .mh it should open!) |
|
![]() |
![]() |
![]() |
![]() |
#15 |
New Member
ABDUR REHMAN
Join Date: Jul 2018
Posts: 2
Rep Power: 0 ![]() |
hello everyone. i am new to openFoam and i have been working on it for 3 weeks. i failed in finding any reference videos that tell me how i can use shm on different geometries and how to create thir shm files.
can anyone help me in this regard ! thank you MANI567 |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 14:21 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 19:57 |
Compiling dynamicTopoFvMesh for OpenFOAM 2.1.x | Saxwax | OpenFOAM Installation | 25 | November 29, 2013 06:34 |
[blockMesh] apparently the mesh doesn't want to be created in one direction | Maxime Thomas | OpenFOAM Meshing & Mesh Conversion | 1 | August 18, 2012 07:05 |
CheckMeshbs errors | ivanyao | OpenFOAM Running, Solving & CFD | 2 | March 11, 2009 03:34 |