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

Boundary conditions for known pressure drop

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2016, 13:59
Default Boundary conditions for known pressure drop
  #1
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
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
Attached Images
File Type: png original.png (16.4 KB, 97 views)
File Type: png mirrored.png (92.3 KB, 59 views)

Last edited by t.oliveira; January 7, 2016 at 16:03. Reason: grammar
t.oliveira is offline   Reply With Quote

Old   January 7, 2016, 18:55
Default
  #2
Senior Member
 
Wouter van der Meer
Join Date: May 2009
Location: Elahuizen, Netherlands
Posts: 203
Rep Power: 18
wouter is on a distinguished road
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
wouter is offline   Reply With Quote

Old   February 1, 2016, 10:52
Default
  #3
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Thanks, Wouterfor the suggestion.

What really worked was using one of the traditional solution algorithms for pressure-velocity coupling.
t.oliveira is offline   Reply With Quote

Old   February 1, 2016, 12:02
Default
  #4
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
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
olivierG is offline   Reply With Quote

Old   March 4, 2016, 14:46
Default
  #5
Senior Member
 
Thomas Oliveira
Join Date: Apr 2015
Posts: 114
Rep Power: 12
t.oliveira is on a distinguished road
Thank you, Olivier! It is never too late. It calls my attention to all the new BCs available on OF 3.0.
t.oliveira is offline   Reply With Quote

Reply

Tags
boundary conditons


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
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


All times are GMT -4. The time now is 03:53.