Second air inlet within the mesh
Hi,
I'am searching for a possibility to create a second air inlet within my box (now just a normal rectangle with an inlet on the one side and an outlet on the other side). In the best case it should be only a very small circle with a second air inlet on a specific position inside the box. Any idea how I can realize that / is this even possible? Thank you in advance :) Flexi1095 |
Try createPatch utility.
|
1 Attachment(s)
Hi zfaraday,
thanks for your reply. As I am not so experienced with OpenFoam could you (or anyone else) maybe help me a bit more. Which method do I have to use from createPatch to change a certain cell to an inlet? (-overwrite, -parallel, -roots "(DIR1 [...DIRN])", -region NAME, -case DIR, -noFunctionObjects)? Flexi1095 |
Well, first of all, whenever you need some information about the usage of a utility try the following command:
Code:
grep -ri "utility name" $FOAM_TUTORIALS Code:
find $FOAM_TUTORIALS -name "utility name*" Besides that, I wil give you some information about the use of createPatch utility, since today I have use it for the first time! :p I would need more information about your geometry in order to give you more accurate help. However, as a quick guide, I will tell you that first you need to create a faceSet with the patch faces you want to convert into your new inlet patch. I recomend you to do it by making use of topoSet utility. Once you have created your faceSet with the faces that you want to be in a new patch you can run createPatch, after having set up correctly the createPatchDict, of course... Hope it helps! Regards, Alex |
1 Attachment(s)
Hi zfaraday,
thank you so much for your help so far! With the commands I found some informations, but when I want to create a cellSet it returns an error. My topoSetDict looks like this: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
michael@michael-Lenovo-G510:~/OpenFOAM/michael-2.3.0/run/AutoWF2014$ topoSet If you are interested in the geometry have a look at the attachment. It's like a small F1 car :) I want to create the second outlet (1 cell would be enough) at the left end of car in the mid of the cylinder. Best regards, Flexi1095 |
You missed a semicolon behind the last bracket!
|
Thank you zfaraday! Searched over 1 hour and in the end only one semicolon was missing. >.<
Now I have created the cellSet and with that the faceSet. If I understood correctly I can now run createPatch? My createPatchDict looks like: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
michael@michael-Lenovo-G510:~/OpenFOAM/michael-2.3.0/run/AutoWF2014$ createPatch If I interpret it right a new patch can only created when the faces are not already part of the mesh. So do I first have to delete the relevant faces (with setSet??) and then run createPatch or is there another way? Best regards and thank you so much for the help so far. ;) Flexi1095 |
Ok, this problem has an easy diagnostic. The faceSet you created contains internal faces instead of only contain external faces, which is a requirement when you use createPatch since it can only convert external faces into patch faces but it cannot handle internal faces.
Rebuild your faceSet in order to make it only contain external faces. |
Hi zfaraday,
can you maybe give me a hint how to create the faceSet with only external faces? Do I have to use another utility? :confused: I've tried to add the invert command within topoSet, but it occurs the same error. - Flexi1095 |
Well, I always do it with topoSet. My advice is to select the whole existing wall patch where you want to add the new inlet patch and convert it into a faceSet. Once you have the existing patch in a faceSet, delete the surplus faces until you get only the needed faces in the faceSet. Then you can use it so as to create the the patch properly!
Hope it helps, Alex |
All times are GMT -4. The time now is 19:55. |