|
[Sponsors] |
February 15, 2024, 11:41 |
backflow with pressureInletOutletVelocity BC
|
#1 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 366
Rep Power: 8 |
hi all,
despite declaring the outlet as pressureInletOutletVelocity with zero inflow velocity: "outlet.*" { type pressureInletOutletVelocity; phi phi; inletValue uniform (0 0 0); value uniform (0 0 0); } i am having backflow from the outlet patch. (see atached screenshot) i thought that inletValue -> 0 would prevent backflow in the domain, am i missing something? any help is appreciated, kind regards |
|
February 15, 2024, 12:03 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,193
Rep Power: 27 |
Hello,
I think there is a confusion about the BC name: if you want to avoid backflow you should use an inletOutlet BC with inletValue set to 0. The whole point of pressureInletOutletVelocity BC is to be able to compute a velocity if there is back flow. (And there is no inletValue parameter for pressureInletOutletVelocity ) Regards, Yann |
|
February 15, 2024, 12:25 |
|
#3 |
Senior Member
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 366
Rep Power: 8 |
hi Yann,
thanks for your fast response. HTML Code:
https://github.com/OpenFOAM/OpenFOAM-10/blob/master/tutorials/lagrangian/denseParticleFoam/cyclone/0/U.air |
|
February 15, 2024, 12:44 |
|
#4 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,193
Rep Power: 27 |
Yes it often happens in tutorials and it can be quite misleading indeed.
Since you are using OpenFOAM-10, foamInfo is pretty handy to get information about boundary conditions. (and other things!) Code:
foamInfo pressureInletOutletVelocity |
|
March 16, 2024, 10:40 |
|
#5 |
Member
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 84
Rep Power: 6 |
The outflow boundary condition for velocity in some paper in this case attached is kept as zeroGradient. I am confused about the pressure boundary condition? For now I am following the damBreak atmosphere boundary condition totalPressure with p0 as 0. Whereas somewhere I found that they have specified a pressure value at the outlet. Although the simulation runs, I am skeptic of the fixed pressure with zeroGradient of velocity at outlet. Any suggestions? @Yann
|
|
March 18, 2024, 05:07 |
|
#6 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,193
Rep Power: 27 |
Hello Michael,
I am not sure to understand your question. Whether you use totalPressure or fixedValue at the outlet, you're still defining a fixed pressure (either fixing static or total pressure). For the velocity, zeroGradient is fine as long as there is no backflow, otherwise it might be unstable. PressureInletOutletVelocity is useful if you do expect backflow and you want a BC able to handle it. Another common BC is to use inletOutlet on the velocity at the outlet, with an inletValue of (0 0 0). This is a way to forbid backflow as you specify a 0 velocity on it. I hope this helps, Yann |
|
March 18, 2024, 09:05 |
|
#7 |
Member
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 84
Rep Power: 6 |
Velocity:
outlet { type inletOutlet; phi phi; //Don't know since its optional inletValue uniform 0; // No backFlow or velocity (0 0 0) value uniform 0; // Isn't it suppose to give me zeroGradient? } Pressure: p_rgh outlet { type totalPressure; value uniform 0; // Setting a fixed pressure 0 Pa. } Apart from some doubts which let me look into the src I think considering no backFlow, the U and p_rgh bc works with this combination. Thank you Yann. |
|
March 18, 2024, 09:37 |
|
#8 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,193
Rep Power: 27 |
This should be the proper syntax, as U expect a vector instead of a scalar:
Code:
outlet { type inletOutlet; inletValue uniform (0 0 0); value uniform (0 0 0); } Code:
outlet { type totalPressure; p0 uniform 0; value uniform 0; } (more details here: What is the difference between the parameters 'value' and 'p0' in totalPressure BC?) |
|
March 18, 2024, 09:45 |
|
#9 |
Member
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 84
Rep Power: 6 |
Sorry forgot about the volVectorField. Yes it should be (0 0 0). I messed up the syntax about p0 as well. If I get into the more technical stuff, I would post here so that others could follow. Thanks!!
P.S: Since there is no inlet pressure in this case (i.e. moving wall - fixedFluxPressure) I think the value of pressure p0 wouldn't matter as the simulation is incompressible and its the pressure difference which is the driving force and not the absolute pressure. |
|
March 18, 2024, 17:00 |
|
#10 | |
Member
Ching Liu
Join Date: Sep 2017
Posts: 52
Rep Power: 9 |
Quote:
|
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF to simulate one-way valves in ANSYS Fluent to prevent backflow | viliam_kacerik | Fluent UDF and Scheme Programming | 1 | August 26, 2021 15:05 |
backflow | chirag.palan1987@yahoo.in | FLUENT | 0 | June 1, 2015 03:42 |
Inducing backflow restrictions in domain interface for multiphase flow | DarrenC | CFX | 4 | August 6, 2014 22:17 |
Modeling Backflow for a 3D Airfoil (Wing of Finite Span) | Josh | CFX | 9 | August 18, 2009 12:31 |
Swirl in backflow on pressure outlets | Jonas Larsson | FLUENT | 17 | February 3, 2000 03:14 |