CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Setting boundary conditions for internal faces (https://www.cfd-online.com/Forums/openfoam-solving/179615-setting-boundary-conditions-internal-faces.html)

Andy_Wang November 3, 2016 09:46

Setting boundary conditions for internal faces
 
1 Attachment(s)
Hello Foamers,

ich got a problem with the boundary condition settings. First of all, i use OpenFoam 4.0.1 und the solver is interFoam. I have used blockMesh to create a back ground mesh und used topoSet and createBaffles to create an internal face, which will be defined as patch. Now i want water comes from this patch with defined velocity or flowrate. I tried to use the following BCs, but no success. I attached a pic so that you can understand better. Could anyone please hlep? I've worked on it for long time and it bothers me very much.
Code:

alpha.water:
type      inletOutlet;
inletValue 1;
value      1;

p_rgh:
type    totalPressure;
p0      1e5;

U
type fixedValue;
value uniform(0 0 -5e-4);


wyldckat November 20, 2016 14:44

Quick answer: I've received the PM you sent me, but you aren't giving us enough information on how exactly you created the baffles.

My guess is that you created a baffle with the same name on both sides of the baffle. Here: https://github.com/OpenFOAM/OpenFOAM...ateBafflesDict - you can find two examples for creating baffles, where the second one shows how to create with two separate name, one for each side.

If you still have a problem with this, please create a simple test case, preferably based on one of OpenFOAM's tutorials, so that we can more easily reproduce the same problem and try to fix it.


Beyond this, if you haven't already, please read the thread http://www.cfd-online.com/Forums/ope...-get-help.html


All times are GMT -4. The time now is 07:51.