|
[Sponsors] |
January 7, 2016, 13:59 |
Boundary conditions for known pressure drop
|
#1 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
Dear all,
I am simulating the flow of water across the domain shown in figure original.png attached. Would you have any suggestions for the appropriate boundary conditions for this case? The water flows in the white region (which seems disconnected in this slice, but is connected in 3D). The black regions are impermeable walls where the no-slip condition applies. The pressure is constant along the inlet (red) face, and constant along the outlet (blue) face. The pressure drop is known. I am struggling to find out which are the appropriate boundary conditions, for pressure p and velocity v, in the inlet, outlet and walls. One of my innumerous tries was: walls - p: zeroGradient - v: fixedValue, uniform (0 0 0) inlet - p: fixedValue, $p_in - v: zeroGradient outlet - p: fixedValue, $p_out - v: zeroGradient but the results weren't physically correct. Moreover, I am not comfortable with the choice of zeroGradient for v at the inlet and outlet, I don't see any physical reason for such. Another try involved mirroring the mesh (figure mirrored.png attached) and doubling the pressure drop (it is a Stokes flow, so I can do it). This would allow me to apply a periodic boundary condition for the velocity. However, the pressure field is not periodic, and OpenFOAM apparently do not accept a periodic boundary condition for one field (v) and not for the other (p). Thank you for your attention, Thomas Last edited by t.oliveira; January 7, 2016 at 16:03. Reason: grammar |
|
January 7, 2016, 18:55 |
|
#2 |
Senior Member
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18 |
Hello Thomas,
I think numerically this is very hard to do. I would advice to make an iteration where you select the outlet pressure and the inlet velocity and than change the inlet velocity until you inlet pressure is the one you want. Hope this helps Wouter |
|
February 1, 2016, 10:52 |
|
#3 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
Thanks, Wouterfor the suggestion.
What really worked was using one of the traditional solution algorithms for pressure-velocity coupling. |
|
February 1, 2016, 12:02 |
|
#4 |
Senior Member
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18 |
hello,
Seems too late, but there is a new BC in OF3.0+ :"pressurePIDControlInletVelocity" which seems to do what you want. (see here http://www.openfoam.com/version-v3.0...ndTunnelNozzle ) regards, olivier |
|
March 4, 2016, 14:46 |
|
#5 |
Senior Member
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12 |
Thank you, Olivier! It is never too late. It calls my attention to all the new BCs available on OF 3.0.
|
|
Tags |
boundary conditons |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Boundary conditions for known pressure drop | t.oliveira | OpenFOAM Running, Solving & CFD | 0 | January 5, 2016 23:04 |
Problem with SIMPLEC-like finite volume channel flow boundary conditions | ghobold | Main CFD Forum | 3 | June 15, 2015 12:14 |
Implementation of boundary conditions for FVM | Tom | Main CFD Forum | 7 | August 26, 2014 06:58 |
Water subcooled boiling | Attesz | CFX | 7 | January 5, 2013 04:32 |