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

Steady Laminar Backwards Facing Step

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2018, 03:46
Default Steady Laminar Backwards Facing Step
  #1
Member
 
E
Join Date: Mar 2018
Posts: 77
Rep Power: 8
IbizaFR is on a distinguished road
Hello!

I am writing code to solve 2D Steady Laminar Backwards Facing Step problem for Reynolds number up to 400 through finite differences with dimensionless 2D Navier-Stokes equations. The boundary conditions are the following:

Inlet: Parabolic profile for u, v=0, pressure calculated by the pseudo-compressibility continuity equation.

Walls: u=v=0, pressure calculated by the pseudo-compressibility continuity equation.

Outlet: θu/θx=0, θv/θx=0, p=0.

I am running the code but after the step the flow has an upwards direction where it would be expected going downwards with recirculation area.

Any help?

Thank you very much.
IbizaFR is offline   Reply With Quote

Old   March 20, 2018, 03:59
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by IbizaFR View Post
Hello!

I am writing Matlab code to solve 2D Steady Laminar Backwards Facing Step problem for Reynolds number up to 400 through finite differences with dimensionless 2D Navier-Stokes equations. The boundary conditions are the following:

Inlet: Parabolic profile for u, v=0, pressure calculated by the pseudo-compressibility continuity equation.

Walls: u=v=0, pressure calculated by the pseudo-compressibility continuity equation.

Outlet: θu/θx=0, θv/θx=0, p=0.

I am running the code but after the step the flow has an upwards direction where it would be expected going downwards with recirculation area.

Any help?

Thank you very much.

I suggest to debug the code to find some bugs... have a look to the pressure equation that must have suitable Neumann BC.s
FMDenaro is offline   Reply With Quote

Old   March 20, 2018, 04:03
Default
  #3
Member
 
E
Join Date: Mar 2018
Posts: 77
Rep Power: 8
IbizaFR is on a distinguished road
Thank you FMDenaro.

Are the boundary conditions that I am using correct except for the pressure boundary conditions?
IbizaFR is offline   Reply With Quote

Old   March 20, 2018, 04:06
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by IbizaFR View Post
Thank you FMDenaro.

Are the boundary conditions that I am using correct except for the pressure boundary conditions?

I suggest not to use the constant pressure at the exit but the condition derived from the fact that you supposed du/dx=0 in the continuity equation evaluated at the exit. You will also easily see that you get v=0 along the outflow.
FMDenaro is offline   Reply With Quote

Old   March 20, 2018, 04:17
Default
  #5
Member
 
E
Join Date: Mar 2018
Posts: 77
Rep Power: 8
IbizaFR is on a distinguished road
Thank you. I will check it.
IbizaFR is offline   Reply With Quote

Old   March 20, 2018, 04:47
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Are you using a second order central discretization on staggered grid?
FMDenaro is offline   Reply With Quote

Old   March 20, 2018, 04:53
Default
  #7
Member
 
E
Join Date: Mar 2018
Posts: 77
Rep Power: 8
IbizaFR is on a distinguished road
I am working with finite differences and in some cases with second order central discretization and in another cases with forward or backward discretization.
IbizaFR is offline   Reply With Quote

Old   March 20, 2018, 05:21
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,769
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
what about the colocation of the variables on the grid?
FMDenaro is offline   Reply With Quote

Old   March 20, 2018, 06:40
Default
  #9
Member
 
E
Join Date: Mar 2018
Posts: 77
Rep Power: 8
IbizaFR is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
what about the colocation of the variables on the grid?
I am using finite differences with the same arrangement for all variables u,v,p.
IbizaFR is offline   Reply With Quote

Old   March 21, 2018, 00:12
Default Bfs
  #10
Senior Member
 
Selig
Join Date: Jul 2016
Posts: 213
Rep Power: 10
selig5576 is on a distinguished road
In your pressure solver are you sure your treating the outlet boundary correctly? For a collocated grid and using the classical Rhie-Chow method your PPE will have \frac{\partial^{2} P}{\partial x^{2}} = 0. at the outlet.
selig5576 is offline   Reply With Quote

Old   March 22, 2018, 15:09
Default
  #11
Member
 
E
Join Date: Mar 2018
Posts: 77
Rep Power: 8
IbizaFR is on a distinguished road
Quote:
Originally Posted by IbizaFR View Post
Hello!

I am writing code to solve 2D Steady Laminar Backwards Facing Step problem for Reynolds number up to 400 through finite differences with dimensionless 2D Navier-Stokes equations. The boundary conditions are the following:

Inlet: Parabolic profile for u, v=0, pressure calculated by the pseudo-compressibility continuity equation.

Walls: u=v=0, pressure calculated by the pseudo-compressibility continuity equation.

Outlet: θu/θx=0, θv/θx=0, p=0.

I am running the code but after the step the flow has an upwards direction where it would be expected going downwards with recirculation area.

Any help?

Thank you very much.
Hello!

I wrote SIMPLE algorithm for the same problem but the velocity field is not the expected.
Is there any advice about the correct boundary conditions of the problem?

Thank you.
IbizaFR is offline   Reply With Quote

Reply


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
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
p_rgh initial residual no change with different settings manuc OpenFOAM Running, Solving & CFD 3 June 26, 2018 15:53
Long simulation time (Backward Facing Step) nskelly OpenFOAM Running, Solving & CFD 3 March 6, 2018 10:59
Help for the small implementation in turbulence model shipman OpenFOAM Programming & Development 25 March 19, 2014 10:08
Setup for laminar backward facing step (bfs) quarkz Main CFD Forum 13 September 30, 2005 09:51


All times are GMT -4. The time now is 11:17.