|
[Sponsors] |
June 3, 2011, 19:32 |
outlet boundary conditions
|
#1 |
New Member
Joel
Join Date: Jun 2011
Posts: 4
Rep Power: 15 |
Hello,
I am very new to OpenFOAM but have spent time reading about it and playing around with it for hours. I am trying to model a simple dropbox, as shown in the picture. I am using interFoam (for the moment, I intend to use rasInterFoam eventually) and a free surface model. Right now the mesh is very course until I get it the way I want it. The end of the top pipe is the inlet, the end of the bottom pipe is the outlet, and the top of the box is open to the atmosphere. I have constructed the geometry using Salome and have gotten it to run in OpenFOAM without errors. I am not sure if I have the boundary conditions right, however, especially at the outlet. I ran the simulation for 80 seconds, and from a vector plot in paraFoam, around 50 seconds the fluid in the outlet pipe actually seems to start coming back the other way. I don't believe this is right. (@55.5 seconds shown) This is what I have right now: alpha1: boundaryField { Inlet { type inletOutlet; inletValue uniform 1; value uniform 1; } Outlet { type zeroGradient; } Atmosphere { type inletOutlet; inletValue uniform 0; value uniform 0; } Walls { type zeroGradient; } } p_rgh: boundaryField { Inlet { type zeroGradient; } Outlet { type buoyantPressure; value uniform 0; } Atmosphere { type totalPressure; p0 uniform 0; U U; phi phi; rho none; psi none; gamma 0; value uniform 0; } Walls { type zeroGradient; } } U: boundaryField { Inlet { type fixedValue; value uniform (3 0 0); } Outlet { type zeroGradient; } Atmosphere { type zeroGradient; } Walls { type fixedValue; value uniform (0 0 0); } } Can someone help me with my boundary conditions? The box is starting off empty (just air) and the fluid comes in from the inlet pipe. I really don't understand exactly what zeroGradient does, I just know I don't want to specify alpha at the outlet, it needs to be determined by the flow.; Thanks in advance. |
|
June 4, 2011, 18:04 |
|
#2 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
Fix the pressure at the outlet and if you want to prevent back-mixing, use the inletOutlet BC.
Best,
__________________
Alberto Passalacqua GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541) OpenQBMM - An open-source implementation of quadrature-based moment methods. To obtain more accurate answers, please specify the version of OpenFOAM you are using. |
|
June 5, 2011, 17:17 |
|
#3 |
Senior Member
Join Date: Mar 2011
Posts: 158
Rep Power: 15 |
||
June 11, 2011, 20:33 |
|
#4 |
New Member
Joel
Join Date: Jun 2011
Posts: 4
Rep Power: 15 |
Thank you for your help, alberto and tH3f0rC3.
From your posts I take it I need to change the outlet boundary conditions to inletOutlet for pressure and velocity, 0 and (0 0 0). I will try that. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wind turbine simulation | Saturn | CFX | 60 | July 17, 2024 06:45 |
New topic on same subject - Flow around race car | Tudor Miron | CFX | 15 | April 2, 2004 07:18 |
Please help with flow around car modelling! | Tudor Miron | CFX | 17 | March 19, 2004 20:23 |
Outlet vent boundary conditions | Ignacio | FLUENT | 2 | August 30, 2001 05:43 |
A problem about setting boundary conditions | lyang | Main CFD Forum | 0 | September 19, 1999 19:29 |