|
[Sponsors] |
Questions about the inletOutlet and outletInlet boundary conditions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 1, 2006, 03:38 |
I'm working on a rather simple
|
#1 |
Guest
Posts: n/a
|
I'm working on a rather simple calculation -- a polar-mesh simulation of flow around a cylinder. On the outer boundary, I want to use a boundary condition that specifies the velocity if it's an inflow, and the pressure if it's an outflow. Page U-148 of the user manual makes it pretty clear that I can do this with the inletOutlet (and possibly the outletInlet) boundary conditions, but beyond that I'm confused.
The first source of my confusion is thus: the inletOutlet boundary condition for the velocity requires two values: "value" and "inletValue". However, I can't see why it would need more than one: it needs the inlet velocity for when it's doing fixedValue on the inlet regions, and doesn't need anything to do zeroGradient on the outlet regions. Thus, my confusion: do I set "value" or "inletValue" to this desired inlet velocity? What do I set the other one to? The second source of my confusion is that I am uncertain which of the boundary conditions I should use for the pressure. Are they coupled such that I'm expected to use the same one for both U and p, or do I use outletInlet for the pressure since I want it specified at the outlet? And, again, which of "value" or "outletValue" should contain my desired outlet pressure, and what should the other one contain? Finally: Is this explained in the manual anywhere? What did I miss when I was looking for it? Thanks much! |
|
February 1, 2006, 05:30 |
Actually, now that I've poked
|
#2 |
Guest
Posts: n/a
|
Actually, now that I've poked around at this a bit more, I think I've figured most of it out:
* I should use inletOutlet for the velocity, and outletInlet for the pressure. * The "inletValue" and "outletValue" values are what I should put my desired constraints in. * The "value" values are where OpenFOAM will put the actual boundary values (which may or may not match the constraints) in the files for the later timesteps. Is this correct? Also, I'd still like to know if this is explained anywhere in the manual, so that I'll know where to look when I have a similar question. |
|
February 1, 2006, 05:59 |
I am very interested at the re
|
#3 |
Senior Member
Frank Bos
Join Date: Mar 2009
Location: The Netherlands
Posts: 340
Rep Power: 18 |
I am very interested at the results of your cylinder flow. Which Reynolds number are you using? I simulated static cylinders at Re=150, which resulted in certain 'strange' results. Check my thread:
http://www.cfd-online.com/OpenFOAM_D...tml?1138207958 Please post your results..... Frank
__________________
Frank Bos |
|
February 1, 2006, 15:45 |
I saw that thread, yes. I'm d
|
#4 |
Guest
Posts: n/a
|
I saw that thread, yes. I'm doing steady flow, so my Reynolds numbers are in the range of 10 to 30 or so.
I will indeed post a new thread once I get some results -- right now, I'm still having some convergence problems (due to starting out on a very fine mesh, rather than solving on a coarse mesh and then interpolating the results as an initial condition for the fine mesh). |
|
July 2, 2010, 06:27 |
|
#5 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Hi, brooksmoses. I'm also confused about inletOutlet and outletInlet boundary conditions. I'm involved in external flows simulations and I need them becouse I can't always know a priori inlet or outlet faces. I agree with the meaning of inletValue, but what about value? You wrote this thread in 2006, maybe you know about that now ;-)
|
|
September 27, 2010, 05:33 |
|
#6 |
New Member
Marta Camps Santasmasas
Join Date: Feb 2010
Posts: 2
Rep Power: 0 |
The value entry is the actual value of the field at the boundary.
At time 0 it is the initial value of the boundary condition. At the first iteration OpenFoam doesn't know if the boundary is an inlet or an outlet, so it needs some initial value to start the simulation. |
|
September 27, 2010, 05:53 |
|
#7 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
thanks, marta. a light in the darkness :-)
|
|
September 27, 2010, 19:14 |
|
#8 |
Senior Member
Francois
Join Date: Jun 2010
Posts: 107
Rep Power: 21 |
Ok.
Let's try to explain inflowOutflot and outflowInflow simply. Let's consider the following code: Code:
U: outlet { type inletOutlet; inletValue uniform (-2 0 0); value (0 0 0); }
Similarly, if, for some reason, we were to specify: Code:
k: outlet { type outletInlet; outletValue uniform 5; value 0; }
I hope this was helpful! |
|
September 28, 2010, 09:13 |
|
#9 |
Senior Member
Join Date: Feb 2010
Posts: 213
Rep Power: 17 |
Another light in the darkness :-)
I notice that everyone has a different theory about the value parameter. The only common thing is its probably irrelevant 'initial value'. I was interested in this boundary condition becouse I'm involved with external flows, inside spherical or similar domains. So i have a single external boundary - with no inlet or outlet patches - and use so far Code:
boundaries { type inletOutlet; inletValue $internalField; value $internalField; } Anyway, thanks for your help. |
|
November 19, 2010, 15:59 |
Undefined inletValue error
|
#10 |
New Member
James Briscoe
Join Date: Nov 2010
Posts: 3
Rep Power: 16 |
Hello everyone,
I'm using the inletOutlet boundary condition to model a bubble collapse problem. I have specified both the inletValue and value keywords for all boundaries, but for some reason OpenFOAM gives me an error that inletValue is undefined. Any assistance would be greatly appreciated. Below you can see my 0/U file. I set the initial values to correspond to an outlet, and specified inletValues which point towards the center of the domain: boundaryField { inletOutletTop { type inletOutlet inletValue uniform (0 -1 0); value uniform (0 1 0); } inletOutletBottom { type inletOutlet; inletValue uniform (0 1 0); value uniform (0 -1 0); } inletOutletLeft { type inletOutlet; inletValue uniform (1 0 0); value uniform (-1 0 0); } inletOutletRight { type inletOutlet; inletValue uniform (-1 0 0); value uniform (1 0 0); } frontAndBack { type empty; } } |
|
November 19, 2010, 16:14 |
Sorry ignore previous post
|
#11 |
New Member
James Briscoe
Join Date: Nov 2010
Posts: 3
Rep Power: 16 |
Sorry everyone, somehow stared at that forever and didn't notice a missing semicolon.
Love looking like an idiot... |
|
March 4, 2012, 15:30 |
how is value evaluated at outlet in case of neumann?
|
#12 | |
Senior Member
|
Quote:
|
||
May 16, 2012, 12:57 |
Moving a Wall Through Air
|
#13 |
Member
Edward Leonard
Join Date: May 2012
Location: Calumet, MI
Posts: 31
Rep Power: 14 |
Hey All,
I have a problem along these same lines, and I just want to make sure that my boundary conditions make sense before I move to my next step. The goal of my simulation is to have the moving wall "move" through open atmosphere (i.e. take the three walls out of the cavity tutorial in favor of inlets/outlets). So what I did, after reading through these posts, was set the following. U: Code:
internalField uniform (0 0 0); boundaryField { movingWall { type fixedValue; value uniform (10 0 0); } atmosphere { type inletOutlet; inletValue uniform (0 0 0); value (0 0 0); } frontAndBack { type empty; } } Code:
internalField uniform 0; boundaryField { movingWall { type zeroGradient; } atmosphere { type inletOutlet; inletValue uniform 0; value 0; } frontAndBack { type empty; } } It appears as though the boundary on the left is working more/less correctly, but the boundary on the right almost looks to be acting more like a wall than anything else. I'd love to hear feedback about this. In the meantime, I'm going to mess around with it a little more. Thanks! |
|
May 17, 2012, 10:06 |
Figured that Out
|
#14 |
Member
Edward Leonard
Join Date: May 2012
Location: Calumet, MI
Posts: 31
Rep Power: 14 |
Alas, it has been resolved. I was able to simulate the wall moving through air with the following:
U: Code:
boundaryField { movingWall { type fixedValue; value uniform (10 0 0); } leftWall { type pressureInletOutletVelocity; value uniform (0 0 0); } rightWall { type pressureInletOutletVelocity; value uniform (0 0 0); } bottomWall { type pressureInletOutletVelocity; value uniform (0 0 0); } frontAndBack { type empty; } } Code:
boundaryField { movingWall { type zeroGradient; } rightWall { type fixedValue; value uniform 0; } leftWall { type fixedValue; value uniform 0; } bottomWall { type fixedValue; value uniform 0; } frontAndBack { type empty; } } |
|
March 20, 2013, 06:23 |
|
#15 |
Senior Member
Albrecht vBoetticher
Join Date: Aug 2010
Location: Zürich, Swizerland
Posts: 240
Rep Power: 17 |
totalPressure for p at left / right / bottom wall would probably work well, too
|
|
August 25, 2013, 10:11 |
|
#16 |
New Member
JAY
Join Date: Jul 2013
Posts: 10
Rep Power: 13 |
I have some problem with my boundary condition that how i utilize the neumann condition(∂φ/∂x = 0) at outlet. Can i select pressure outlet at outlet?
my inlet condition is : flat velocity profile =40m/s Re=1.916*10^5 turbulent intensity=4.5% And Inlet height of duct=5mm I select velocity inlet at inlet because my flow is incompresible. And axis boundary condition applied along the centerline. and no slip condition at wall. pls help me. |
|
October 4, 2013, 11:42 |
|
#17 |
Senior Member
Join Date: Jan 2013
Posts: 372
Rep Power: 14 |
Hi All,
It is very interesting about this kind of boundary condition. For inletOutlet, in most cases, if the flux is pointed into the flow domain, then this corresponds to the reverse flow. For this situation, Openfoam will ask us to input the inletValue, however, how can we the velocity when the flow direction is into the domain? In other words, how to specify the inletValue for it? Any comments? Thank you so much! |
|
October 4, 2013, 13:56 |
|
#18 |
New Member
JAY
Join Date: Jul 2013
Posts: 10
Rep Power: 13 |
Generally Neumann condition or Drichlate condition at outlet or inlet improve the stability of your result that conditions specify the behaviour of the flow and thats so tricky in my case i used neumann condition at outlet as(∂φ/∂x = 0) where φ=U,V but how it useful in openform that i don't know because i use Fluent & CFX.
|
|
June 1, 2016, 03:00 |
Boundary Conditions Maths
|
#19 |
Member
Viraj Belekar
Join Date: Jun 2016
Posts: 68
Rep Power: 10 |
Hello,
Can anyone share any material describing the Maths behind different boundary conditions in OpenFOAM? Thanks |
|
September 13, 2016, 07:16 |
|
#20 | |
Senior Member
Join Date: Mar 2015
Posts: 250
Rep Power: 12 |
Hello Edward,
this problem sounds quite interesting. But I don't know exactly what you try to simulate. For example, where is the moving wall in the vector plot you posted? And where has the atmosphere BC gone in your second post? I hope you can remember after 4 years... Best regards, Kate Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Inletoutlet | rengu | OpenFOAM Running, Solving & CFD | 8 | December 25, 2015 16:44 |
Burgerbs equation non constant Boundary Conditions Initial Conditions | arkangel | OpenFOAM Running, Solving & CFD | 1 | October 2, 2008 15:48 |
questions in initial conditions and inlet boundary | nick | CFX | 2 | April 19, 2008 10:26 |
TwoPhaseEulerFoam and InletOutlet boundary condition | hemph | OpenFOAM Running, Solving & CFD | 10 | January 29, 2007 10:47 |
Integral boundary conditions turbulent intensitylength boundary conditions | olesen | OpenFOAM Running, Solving & CFD | 0 | July 27, 2006 08:18 |