|
[Sponsors] |
June 8, 2016, 05:50 |
confusion about inletOutlet & outletInlet BC
|
#1 |
New Member
Join Date: Mar 2016
Posts: 15
Rep Power: 10 |
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) |
|
June 9, 2016, 08:42 |
|
#2 |
Member
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 12 |
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 } 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 |
|
June 9, 2016, 10:52 |
|
#3 |
New Member
Join Date: Mar 2016
Posts: 15
Rep Power: 10 |
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! |
|
June 9, 2016, 10:57 |
|
#4 |
Member
Pedro
Join Date: Nov 2014
Posts: 50
Rep Power: 12 |
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.
|
|
Tags |
inletoutlet piecewise bc |
|
|
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 02:16 |
Inletoutlet | rengu | OpenFOAM Running, Solving & CFD | 8 | December 25, 2015 16:44 |
Trying to understand outletInlet BC | ThomasV | OpenFOAM Programming & Development | 19 | January 22, 2015 08:57 |
Understanding code of inletOutlet / outletInlet | fredo490 | OpenFOAM Programming & Development | 10 | June 13, 2013 13:45 |
inletOutlet b.c. | vaina74 | OpenFOAM Running, Solving & CFD | 5 | August 26, 2010 12:23 |