Insert Box of Water in SHM object
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 |
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. |
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 |
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 |
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 |
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 |
FYI, it's the other way around:
|
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 |
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. |
Dropbox synced.
Many thanks for the time you spent I really appreciate that. I will have a look on the setFields. |
2 Attachment(s)
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 |
I used Allrun but openFoam displays that file points in directory polyMesh is missing.
And why did you removed the snappyHexMeshDict? Thanks |
Quote:
Maybe you have a other system: just type into the consol: Code:
cp files/blockMeshDict constant/polyMesh/ If you have a look into the system folder you ll see that I do not remove the snappyHexMeshDict. |
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. |
Hi,
you should do it step by step. "createPatch" you have to do after meshing! |
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 |
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 |
All times are GMT -4. The time now is 08:07. |