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

Outlet boundary condition for pressure correction and navier stokes equation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 27, 2016, 14:26
Question Outlet boundary condition for pressure correction and navier stokes equation
  #1
Member
 
Jan
Join Date: Jul 2013
Location: Berlin - Germany
Posts: 36
Rep Power: 13
Jan Smedseng is on a distinguished road
Hallo.

Actually, I'm designing a 3D CFD code. Now, I got problems on my inlet and outlet boundary condition. The problem is, that so many things have to work correctly so you cannot really debug.

What do I have to specify on a inlet and outlet boundary condition for incompressible flow using velocity specified at the inlet and pressure at the outlet.

Until now, I have specified:

Inlet - Momentum:
Massflow for convective transport

Outlet - Momentum:
Nothing

Inlet Pressure:
Uncorrected Massflow

Outlet Pressure:
Uncorrected Massflow
aP_p += (Density * (Df.Af) * Af)/(af.PN)

aP_P is the pivot matrix coefficient
Df is the following 3x3 matrix: Df = [Df_u, 0, 0; 0, Df_v, 0; 0, 0, Df_w]
Df_u is V/aP_u;
Af is the area normal vector
PN is the vector from the current cell center to the cell center of the neighbour cell.

The massflow at the outlet is scaled so it is equal to the inlet massflow.
OutletMassFlow = -InletMassFlow

I know, that I'll have some diffusive terms in the momentum equation, but first it also have to work without too.

Does anybody has knowledge about this boundary conditions or a really good paper/reading?

Thanks in advance,
Jan
Jan Smedseng is offline   Reply With Quote

Old   January 27, 2016, 16:14
Default Have a look at my problem
  #2
Member
 
Jan
Join Date: Jul 2013
Location: Berlin - Germany
Posts: 36
Rep Power: 13
Jan Smedseng is on a distinguished road
Hallo.

I just uploaded a video, showing the problem, I described.

Maybe somebody has an idea, what could be wrong. The velocity at the outlet changes frequently.

https://youtu.be/9RMRI3KNMrU
Jan Smedseng is offline   Reply With Quote

Old   January 27, 2016, 17:14
Default
  #3
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The video does not help me so much in understanding what happens...

As you are testing (and debugging) a CFD code, I suggest starting with a straight pipe with the same inlet and outlet BCs in steady laminar condition to check your solution. Use Re=1. The pressure gradient along the axis must result constant and a quadratic streamwise velocity profile must be computed after a sufficient lenght. So, ensure a sufficient length of the pipe.
FMDenaro is offline   Reply With Quote

Old   January 27, 2016, 17:45
Default
  #4
Member
 
Jan
Join Date: Jul 2013
Location: Berlin - Germany
Posts: 36
Rep Power: 13
Jan Smedseng is on a distinguished road
Thank you, I'll try that.

Do I have to specify the velocity or rather the massflow in the boundary conditions of the momentum equation for the convective term in the incompressible case?
Jan Smedseng is offline   Reply With Quote

Old   January 27, 2016, 17:49
Default
  #5
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Jan Smedseng View Post
Thank you, I'll try that.

Do I have to specify the velocity or rather the massflow in the boundary conditions of the momentum equation for the convective term in the incompressible case?

try to specify the plug velocity profile as inlet condition, it must develop a boundary layer until to reach the quadratic velocity profile
FMDenaro is offline   Reply With Quote

Old   January 27, 2016, 18:12
Default
  #6
Member
 
Jan
Join Date: Jul 2013
Location: Berlin - Germany
Posts: 36
Rep Power: 13
Jan Smedseng is on a distinguished road
I already did that. But what about the convective flux at the outlet condition? I have three different books and two different answers at this question, thats my problem.
Jan Smedseng is offline   Reply With Quote

Old   January 27, 2016, 18:15
Default
  #7
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by Jan Smedseng View Post
I already did that. But what about the convective flux at the outlet condition? I have three different books and two different answers at this question, thats my problem.
for laminar fully developed conditions, at the outlet you can specify vanishing normal derivatives for the velocity
FMDenaro is offline   Reply With Quote

Old   January 27, 2016, 19:00
Default
  #8
Member
 
Jan
Join Date: Jul 2013
Location: Berlin - Germany
Posts: 36
Rep Power: 13
Jan Smedseng is on a distinguished road
That means, nothing to define at the outlet condition.

I uploaded a video of a simple, rectangular cannel:
https://youtu.be/gTIvibW0Nf8

The channel is quite short, but my ansys licence just ran out, so I have to renew it to generate new meshes.

But this example shows, that there has to be something wrong with the inlet condition. The high velocity at the symmetry planes is not a display bug as I thought.
In the end of the video, I'm showing the pressure. Looks strange. But the poisson-equation it self works. I tested it without any sources with some dirichlet and neumann boundary conditions and it did, what is should do. The gradient calculation is also correct. I use both (poisson equation and gradient calculation) for the calculation of the wall distance and that works correctly.

Thank you, that you take your time for that.
Jan Smedseng is offline   Reply With Quote

Old   January 28, 2016, 04:10
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
for incompressible flows, either velocity or pressure define a mathematically well posed problem.
Fixing the velocity inlet and a free stream condition along with Neumann condition for the pressure equation must work...

check if you effectively satisfy the divergence-free constrain
FMDenaro is offline   Reply With Quote

Old   January 28, 2016, 04:12
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
PS: please provide simple curves of the variables, your videos do not help so much
FMDenaro 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
Arbitrary Choosing of the Solution Domain - Navier Stokes and Manufactured Solutions eltenedor Main CFD Forum 5 January 12, 2015 08:35
pressure correction for axisymmetric 2d navier stokes new_at_this Main CFD Forum 0 October 17, 2011 18:20


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