CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

confusion about inletOutlet & outletInlet BC

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By pupo
  • 1 Post By pupo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2016, 04:50
Default confusion about inletOutlet & outletInlet BC
  #1
New Member
 
Join Date: Mar 2016
Posts: 15
Rep Power: 10
Mike_star is on a distinguished road
I was thinking how inletOutlet and outletInlet would work if I had a single circular (assume 2D) boundary and applied this conditon to it.

U:
circularboundary
{
type inletOutlet;
inletValue uniform (5 0 0);
value uniform (0 0 0);
}

p:
circularboundary
{
type outletInlet;
outletValue uniform 0;
value uniform 0;
}

So I would have a fixed velocity on some "inlet" cells and zero gradient on "outlet" cells; and fixed pressure some "outlet" cells and zero gradient on some "inlet" cells?
Does anyone know whether this BC is applied piecewise to each cell face or to the entire boundary as a whole?
(original post: http://www.cfd-online.com/Forums/ope...plication.html)
Mike_star is offline   Reply With Quote

Old   June 9, 2016, 07:42
Default
  #2
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 11
pupo is on a distinguished road
I am not sure what you mean with " single circular (assume 2D) boundary" but, the inletoutlet condition It is applied individually to each cell.


For example:

Code:
U:
Outlet
{
      type inletOutlet;
      inletValue uniform (0 0 0);
      value uniform (0 0 0);  // this is just a start value
}
would apply a zeroGradient Velocity condition if the flow is going OUT of the domain, and a zero velocity condition if the flow is going IN to the domain. Like shown in this image:



I am not sure if applying an outlet/inlet condition for pressure is even correct at all. But if someone knows, I'd like to know :P
Mike_star likes this.
pupo is offline   Reply With Quote

Old   June 9, 2016, 09:52
Default
  #3
New Member
 
Join Date: Mar 2016
Posts: 15
Rep Power: 10
Mike_star is on a distinguished road
Awesome. Thanks for your reply. Now my main question is that if the following code can mimic inletOutlet BC you mentioned in the post:
outlet
{
type groovyBC;
valueExpression "vector(0,0,0)";
gradientExpression "vector(0,0,0)";
fractionExpression "(phi > 0) ? 0 : 1";
value uniform (0 0 0);
}
In other words, is groovyBC also applied individually on each cell?

Thank you!
Mike_star is offline   Reply With Quote

Old   June 9, 2016, 09:57
Default
  #4
Member
 
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 11
pupo is on a distinguished road
I haven't used groovy in ages so i can't vouch for the syntax. However, if memory serves me right, yes, groovyBC conditions are applied on a "per cell" basis and nor for the entire patch.
Mike_star likes this.
pupo is offline   Reply With Quote

Reply

Tags
inletoutlet piecewise bc


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Questions about the inletOutlet and outletInlet boundary conditions brooksmoses OpenFOAM Running, Solving & CFD 24 March 2, 2021 01:16
Inletoutlet rengu OpenFOAM Running, Solving & CFD 8 December 25, 2015 15:44
Trying to understand outletInlet BC ThomasV OpenFOAM Programming & Development 19 January 22, 2015 07:57
Understanding code of inletOutlet / outletInlet fredo490 OpenFOAM Programming & Development 10 June 13, 2013 12:45
inletOutlet b.c. vaina74 OpenFOAM Running, Solving & CFD 5 August 26, 2010 11:23


All times are GMT -4. The time now is 18:45.