CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Static Pressure Inlet - Static Pressure Outlet

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By FMDenaro
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2016, 18:25
Default Static Pressure Inlet - Static Pressure Outlet
  #1
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
ferferimori is on a distinguished road
Hello,

My FDM code simulates Backward Facing Step flow when I use conventional BCs such as defining velocity profile at inlet and fully developed condition at outlet. I have validated the results and it seems functioning correctly.

However, when I want to impose a pressure-pressure condition (both static), it only converges when a zero-gradient condition is selected for inlet. When I try to use mass balance to update inlet normal velocity at each iteration, the solution eventually blows up. I am integrating outflow and use the mean velocity as a uniform inlet velocity.

Also I am interested to know if there is any difference to use momentum balance and mass balance to update inlet normal velocity.

Has anyone faced this problem before? I appreciate your help
ferferimori is offline   Reply With Quote

Old   August 26, 2016, 22:22
Default
  #2
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 16
duri is on a distinguished road
Quote:
Originally Posted by ferferimori View Post
However, when I want to impose a pressure-pressure condition (both static), it only converges when a zero-gradient condition is selected for inlet.
Solution will not converge when Neumann boundary condition is used for a variable at all boundaries. Static pressure-static pressure boundary condition has no meaning, one of the boundary condition should contain velocity. When four equations are solved four variables should be specified as Dirichlet boundary condition.
duri is offline   Reply With Quote

Old   August 27, 2016, 03:58
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by ferferimori View Post
Hello,

My FDM code simulates Backward Facing Step flow when I use conventional BCs such as defining velocity profile at inlet and fully developed condition at outlet. I have validated the results and it seems functioning correctly.

However, when I want to impose a pressure-pressure condition (both static), it only converges when a zero-gradient condition is selected for inlet. When I try to use mass balance to update inlet normal velocity at each iteration, the solution eventually blows up. I am integrating outflow and use the mean velocity as a uniform inlet velocity.

Also I am interested to know if there is any difference to use momentum balance and mass balance to update inlet normal velocity.

Has anyone faced this problem before? I appreciate your help

Well, you should provide more details...
1) are you using Neumann at walls and Dirichlet at inflow and outflow? what about the pressure difference ?
2) are you using staggered or colocated grid?
3) how do you discretize the pressure equation?
FMDenaro is offline   Reply With Quote

Old   August 29, 2016, 23:40
Default
  #4
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
ferferimori is on a distinguished road
Thanks Duri and Filippo for your comments. I am using a collocated explicit MacCormack (predictor-corrector) scheme for incompressible flow with pseudo-compressibility coupling for pressure. The BCs that converge for pressure-pressure are listed below:

@inlet: p=p_in , du/dx=0 , dv/dx=0
@outlet: p=p_out , du/dx=0, dv/dx=0
@walls: dp/dy=0 (or the extended version) , u=0, v=0

The BCs that won't converge:

@inlet: p=p_in , u=U_in , v=0
@outlet: p=p_out , du/dx=0, dv/dx=0
@walls: dp/dy=0 (or the extended version) , u=0, v=0

I find "U_in" from mass conservation at the end of each iteration and update it.
I have used pressure-pressure condition in CFX without zero-gradient condition so many times, so there should be a way for convergence.
ferferimori is offline   Reply With Quote

Old   August 30, 2016, 02:49
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The error is that you can not prescribe both pressure and velocity as Dirichlet bc
ferferimori and Anwer like this.
FMDenaro is offline   Reply With Quote

Old   August 31, 2016, 19:33
Default
  #6
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
ferferimori is on a distinguished road
Thanks Filippo. I did not know about this. Could you kindly introduce me a book or paper that discusses what kind of Dirichlet and Neumann conditions go well together?
ferferimori is offline   Reply With Quote

Old   August 31, 2016, 22:59
Default
  #7
Senior Member
 
duri
Join Date: May 2010
Posts: 245
Rep Power: 16
duri is on a distinguished road
Quote:
Originally Posted by ferferimori View Post
Thanks Duri and Filippo for your comments. I am using a collocated explicit MacCormack (predictor-corrector) scheme for incompressible flow with pseudo-compressibility coupling for pressure. The BCs that converge for pressure-pressure are listed below:

@inlet: p=p_in , du/dx=0 , dv/dx=0
@outlet: p=p_out , du/dx=0, dv/dx=0
@walls: dp/dy=0 (or the extended version) , u=0, v=0

The BCs that won't converge:

@inlet: p=p_in , u=U_in , v=0
@outlet: p=p_out , du/dx=0, dv/dx=0
@walls: dp/dy=0 (or the extended version) , u=0, v=0

I find "U_in" from mass conservation at the end of each iteration and update it.
I have used pressure-pressure condition in CFX without zero-gradient condition so many times, so there should be a way for convergence.
Ideally your both conditions should not converge. If it converges it might be for wrong value. Because for given static pressure difference in unchoked flow mass flow is not unique, it is determined by inlet or exit velocity. Both of your boundary condition doesn't fix the velocity at either of the boundaries. So, I expect velocity would keep on change on both boundaries unless there is choking. Some were you need to fix either mass flow or velocity or total pressure. Try to solve simple bernouli's equation with above conditions you can't.
duri is offline   Reply With Quote

Old   September 1, 2016, 03:35
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by ferferimori View Post
Thanks Filippo. I did not know about this. Could you kindly introduce me a book or paper that discusses what kind of Dirichlet and Neumann conditions go well together?

https://www.researchgate.net/publica..._viscous_flows
ferferimori likes this.
FMDenaro is offline   Reply With Quote

Old   September 2, 2016, 02:29
Default
  #9
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
ferferimori is on a distinguished road
Quote:
Originally Posted by duri View Post
Ideally your both conditions should not converge. If it converges it might be for wrong value. Because for given static pressure difference in unchoked flow mass flow is not unique, it is determined by inlet or exit velocity. Both of your boundary condition doesn't fix the velocity at either of the boundaries. So, I expect velocity would keep on change on both boundaries unless there is choking. Some were you need to fix either mass flow or velocity or total pressure. Try to solve simple bernouli's equation with above conditions you can't.
Duri I am solving for incompressible flow.
ferferimori is offline   Reply With Quote

Old   September 2, 2016, 05:19
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
compressible or incompressible???
FMDenaro is offline   Reply With Quote

Reply

Tags
pressure-pressure bc


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
interFoam (HELYX-OS) pressure boundary conditions SFr OpenFOAM Running, Solving & CFD 8 June 23, 2016 16:36
Reversed flow using Pressure inlet and pressure outlet didimad FLUENT 0 March 14, 2015 05:38
sonicFoam - pressure driven pipe: flow continuity violation and waveTransmissive BC Endel OpenFOAM Running, Solving & CFD 3 September 11, 2014 16:29
simple model, difficult outlet Eric CFX 7 May 23, 2014 08:13
pump outlet pressure higher than inlet pressure jstan3 FLUENT 14 February 13, 2014 23:44


All times are GMT -4. The time now is 05:02.