|
[Sponsors] |
[snappyHexMesh] Insert Box of Water in SHM object |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 14, 2013, 13:32 |
Insert Box of Water in SHM object
|
#1 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
Hi,
I am new user in OpenFoam and I hope that you can help me. I have created three connected tubes using AutoCad and used them as my snappyHexMesh object. I want to enter a box of water inside this object. I am trying to set the coordinates in the setFieldsDict but nothing appears when I execute the simulation. Any ideas on how I can do it? Please help Thank you Stratos |
|
February 14, 2013, 13:48 |
|
#2 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Hi Stratos,
well that is not a problem belong to my topic but I think I can help you. Open a new thread for that, couse in this one we only discuss about meshing with sHM and multi regions. Maybe I got something wrong with your question but setFields you are using after meshing to get a user defined value like. alpha = 1 or U, p, T into a certain region of the mesh. |
|
February 15, 2013, 08:12 |
|
#3 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Quote:
@Stratos: It's hard to help you if you don't provide more information If possible, please share your case or provide enough information for us to make a better guess of what you are doing wrong, such as what are the geometrical limits and what you "setFieldsDict" looks like and so on. I suggest you read this thread: http://www.cfd-online.com/Forums/ope...-get-help.html Best regards, Bruno
__________________
|
||
February 17, 2013, 18:31 |
|
#4 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
Dear Bruno,
Thanks for your interest. I was abroad and I could't reply sooner. So I uploaded somes files with images in the following link. Let me explain you. I have a normal blockMesh and then using snappyHexMesh is introduce and isolate the tubes you can see in the picture. In the setFieldsDict a set a boxToCell with water inside the tubes. But it doesn't appear. My first guess is that the problem is crated from the boxToCell. Please have a look and let me know if you need anything else. If you can help it would be brilliant and lifesaving Thanks. https://www.dropbox.com/sh/sgydndlw3rk1u0i/A4-Y6tU4hu |
|
February 18, 2013, 05:07 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Stratos,
How are you trying to visualize the water inside the domain? Have you tried applying the filter "Contours" with a value of 0.5, for the field alpha1? edit: Did you use: Code:
snappyHexMesh -overwrite Bruno
__________________
|
|
February 18, 2013, 16:15 |
|
#6 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
Hi Bruno,
Thanks for the help. I noticed a mistake that I have to fix before inserting the water. I have merged some dictionaries from the damBreak case and the wigleyHull. I will upload a second link if you could spare some time to see how it works and tell me your opinion for the issues. it should't take more than five minutes if you run blockMesh, setFields and snappyHexMesh. Kind Regards, I will come back very soon when I have the issues fixed. Thanks a lot Stratos |
|
February 18, 2013, 16:20 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
FYI, it's the other way around:
__________________
|
|
February 18, 2013, 16:28 |
|
#8 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
Did this too but no solution given. Actually the snappyHexMesh overwrite produces some fields ccx ccy ccz (remained from the wigleyHull case - thats the problem I have to solve).
If I don't use snappyHexMesh -overwrite what's the difference? Here is the link https://www.dropbox.com/sh/1dbdedtxtk5b9pi/yZfUA8gPnB |
|
February 18, 2013, 16:45 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
I think Dropbox is still syncing up... several files are missing, specially in "system".
"-overwrite" ensures that the mesh is overwritten. Otherwise, the new mesh is saved in one or more time folders, depending on the meshing stages. Which means that setFields will only have effect on... whatever time folder that it considers to be proper... In addition, if the mesh is on a folder other than constant or zero, you have to adjust "system/controlDict" accordingly.
__________________
|
|
February 18, 2013, 16:54 |
|
#10 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
Dropbox synced.
Many thanks for the time you spent I really appreciate that. I will have a look on the setFields. |
|
February 18, 2013, 17:37 |
|
#11 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Here your case.
Without -overwrite openfoam saves your mesh a new timestep folder like 0.001 (for castellated) and 0.002 (for snapped mesh). Use Allrun PS: Mistake in setFields Tobi |
|
February 18, 2013, 18:44 |
|
#12 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
I used Allrun but openFoam displays that file points in directory polyMesh is missing.
And why did you removed the snappyHexMeshDict? Thanks Last edited by raysark; February 18, 2013 at 19:02. |
|
February 18, 2013, 19:41 |
|
#13 | |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
Quote:
Maybe you have a other system: just type into the consol: Code:
cp files/blockMeshDict constant/polyMesh/ blockMesh snappyHexMesh -overwrite createPatch -overwrite rm -r 0 cp -r 0.org 0 setFields If you have a look into the system folder you ll see that I do not remove the snappyHexMeshDict. |
||
February 18, 2013, 19:44 |
|
#14 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
Create time
Reading createPatchDict Create polyMesh for time = 0 --> FOAM FATAL ERROR: Cannot find file "points" in directory "polyMesh" in times 0 down to constant From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) in file db/Time/findInstance.C at line 188. FOAM exiting Anyway I am quite sleepy. I will try it again tomorrow and I will tell you. thanks for the help. |
|
February 22, 2013, 10:26 |
|
#16 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
Hi Tobi,
I was off of some days. You solved my problem thanks a lot. The file points was a problem of OpenFOAM version i Tested it in 2.1.1-18 and worked (i habe 2.1.1-22 which seems quite strange). If I have anything else I will ask again. Best Regards, Stratos |
|
March 11, 2013, 15:53 |
|
#17 |
New Member
Efstratios Mavrogiannis
Join Date: Dec 2012
Posts: 20
Rep Power: 13 |
Hi Tobi,
Sorry for asking again for help but I think you can help. I posted this: http://www.cfd-online.com/Forums/ope...ion-error.html Could you help me with these case? Thanks |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
No liquid water exist in my Fuel Cell simulation | fatchang | FLUENT | 19 | October 15, 2018 15:27 |
Compilation error OF1.5-dev on Suse10.3 | darenyang | OpenFOAM Installation | 0 | April 29, 2009 05:55 |
OpenFOAM141dev linking error on IBM AIX 52 | matthias | OpenFOAM Installation | 24 | April 28, 2008 16:49 |
Junction Box Routine Shared Object Library | sam | CFX | 0 | March 3, 2008 13:52 |
uptodate water distribution network | fredius,magige,tanzanian,(e.a) | Main CFD Forum | 0 | January 27, 2002 08:10 |