backflow with pressureInletOutletVelocity BC
1 Attachment(s)
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 |
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 |
hi Yann,
thanks for your fast response. HTML Code:
https://github.com/OpenFOAM/OpenFOAM-10/blob/master/tutorials/lagrangian/denseParticleFoam/cyclone/0/U.air |
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 |
1 Attachment(s)
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
|
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 |
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. |
This should be the proper syntax, as U expect a vector instead of a scalar:
Code:
outlet Code:
outlet (more details here: https://www.cfd-online.com/Forums/op...tml#post786015) |
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. |
Quote:
|
All times are GMT -4. The time now is 20:29. |