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

SIMPLE BCs for flow in parallel plates

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 10, 2015, 06:12
Default SIMPLE BCs for flow in parallel plates
  #1
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
Hi,

I've recently coded up in C++ the SIMPLE algorithm for incompressible flow btn parallel plates (u-momentum eq'n and mass eq'n). I'm using a staggered grid and following the book by Versteeg and Malalasekera (2007).

I've run a few test cases with different BC's:
- inlet velocity (uniform) with pressure outlet (0) -> uniform velocity distribution throughout flow is attained.
- inlet velocity (parabolic) with pressure outlet (0) -> parabolic velocity distribution throughout flow is attained.


Other BCs are u=0 at top and bottom wall (u-momentum eq'n) and p'=0 for outlet. The pressure correction equation for top and bottom wall give p'=0 since the source term is always zero (u=0). And the pressure at the inlet is obtained by linear interpolation from inside the domain (Ferziger & Peric, 1997)

My question is on the first case - is it correct? Isn't the flow supposed to develop into a parabolic profile towards the outlet?
kabz is offline   Reply With Quote

Old   September 10, 2015, 06:28
Default
  #2
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 kabz View Post
Hi,

I've recently coded up in C++ the SIMPLE algorithm for incompressible flow btn parallel plates (u-momentum eq'n and mass eq'n). I'm using a staggered grid and following the book by Versteeg and Malalasekera (2007).

I've run a few test cases with different BC's:
- inlet velocity (uniform) with pressure outlet (0) -> uniform velocity distribution throughout flow is attained.
- inlet velocity (parabolic) with pressure outlet (0) -> parabolic velocity distribution throughout flow is attained.


Other BCs are u=0 at top and bottom wall (u-momentum eq'n) and p'=0 for outlet. The pressure correction equation for top and bottom wall give p'=0 since the source term is always zero (u=0). And the pressure at the inlet is obtained by linear interpolation from inside the domain (Ferziger & Peric, 1997)

My question is on the first case - is it correct? Isn't the flow supposed to develop into a parabolic profile towards the outlet?

yes, provided that the lengh of the plate is sufficient, you should get a parobolic velocity profile. What Re number do you set?
FMDenaro is offline   Reply With Quote

Old   September 10, 2015, 06:49
Default
  #3
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
yes, provided that the lengh of the plate is sufficient, you should get a parobolic velocity profile. What Re number do you set?

Re=10000
density=1000Kg/m^3
viscosity=0.001Kg/m s
height=0.1m
length=width=1m
velocity=0.05m/s
kabz is offline   Reply With Quote

Old   September 10, 2015, 07:15
Default
  #4
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
at such a Re number you cannot see a developed viscous profile........you have to reduce the Re number of some order of magnutude
FMDenaro is offline   Reply With Quote

Old   September 10, 2015, 08:03
Default
  #5
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
at such a Re number you cannot see a developed viscous profile........you have to reduce the Re number of some order of magnutude
Tried it with lower velocities (u=1e-3, u=1e-4) but I still obtain a uniform flow profile.
kabz is offline   Reply With Quote

Old   September 10, 2015, 08:28
Default
  #6
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 kabz View Post
Tried it with lower velocities (u=1e-3, u=1e-4) but I still obtain a uniform flow profile.
Try for Re=1
FMDenaro is offline   Reply With Quote

Old   September 10, 2015, 09:25
Default
  #7
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
I still obtain a uniform velocity profile.

the predicted velocity profile is okay but once i solve the pressure correction equation and correct the velocity, i obtain a uniform profile. See the attached matlab .fig files
Attached Files
File Type: zip velocities.zip (160.2 KB, 15 views)
kabz is offline   Reply With Quote

Old   September 10, 2015, 10:01
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 kabz View Post
I still obtain a uniform velocity profile.

the predicted velocity profile is okay but once i solve the pressure correction equation and correct the velocity, i obtain a uniform profile. See the attached matlab .fig files

At Re=1 you should see the viscous parablic profile...something is wrong...are you sure to have reached the steady state?
FMDenaro is offline   Reply With Quote

Old   September 10, 2015, 10:38
Default
  #9
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
At Re=1 you should see the viscous parablic profile...something is wrong...are you sure to have reached the steady state?

Yes. At 200 iterations, only the predicted velocity changes but the corrected velocity is maintained. See attached.
Attached Files
File Type: zip velocities.zip (95.5 KB, 8 views)
kabz is offline   Reply With Quote

Old   September 10, 2015, 10:46
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
please, post directly the image... however, there is for sure something wrong in the code...check the BC.s after the correction, are they no-slip conditions?
FMDenaro is offline   Reply With Quote

Old   September 11, 2015, 06:55
Default
  #11
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
please, post directly the image... however, there is for sure something wrong in the code...check the BC.s after the correction, are they no-slip conditions?
Yes no slip conditions are maintained
kabz is offline   Reply With Quote

Old   September 11, 2015, 07:01
Default
  #12
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
you have a bug in the code ... at Re=1 you should see the two spatially evolving boundary layers
aerosjc likes this.
FMDenaro is offline   Reply With Quote

Old   September 15, 2015, 13:43
Default
  #13
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
After much debugging, i have some limited success - see images attached.
I get a more or less triangular profile near the outlet

Ignore the pressure at inlet as I've not implemented the linear interpolation from inside the domain.
Attached Images
File Type: jpg ux.jpg (118.2 KB, 10 views)
File Type: jpg ux2.jpg (48.3 KB, 10 views)
File Type: jpg uy.jpg (62.6 KB, 9 views)
File Type: jpg pressure.jpg (107.1 KB, 8 views)
kabz is offline   Reply With Quote

Old   September 15, 2015, 14:04
Default
  #14
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
you found the bug, the results seems physically reasonable now...you can compare with the analytical Blasius solution for a flat plane...then check that after some height a fully parabolic velocity profile is obtained
Of course, x=0 is a singular point.
FMDenaro is offline   Reply With Quote

Old   September 15, 2015, 14:27
Default
  #15
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
you found the bug, the results seems physically reasonable now...you can compare with the analytical Blasius solution for a flat plane...then check that after some height a fully parabolic velocity profile is obtained
Of course, x=0 is a singular point.
My current issue is that it seems to develop a parabolic profile after entry but towards the outlet a "triangular" profile is acquired.
kabz is offline   Reply With Quote

Old   September 15, 2015, 15:06
Default
  #16
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 kabz View Post
My current issue is that it seems to develop a parabolic profile after entry but towards the outlet a "triangular" profile is acquired.
plot the velcoity at some station and superimpose the parabolic law...anyway, do you have ensured to have a suffient lenght do let the flow develop?
FMDenaro is offline   Reply With Quote

Old   September 21, 2015, 04:33
Default
  #17
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
Hopefully final question:

The momentum equations are linearized by using velocity and pressure fields from the previous outer iteration to solve for new fields. Now, at the end of an outer iteration, one has the new corrected velocity and pressure fields - u^{n},v^{n},p^{n}. Are residuals calculated based on the linearized momentum equations (ie using the old velocity fields to compute coefficients and old pressure field to compute flux and then apply the new velocity field to complete the equation) or are the residuals based on the non-linear momentum equations (ie use the new velocity fields to compute coefficients and new pressure field to compute flux and then apply new velocity field to complete the equation)?
kabz is offline   Reply With Quote

Old   September 21, 2015, 04:36
Default
  #18
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 residual is computed for the discrete equation you really want to satisfy...if you linearized, this discrete equation must provide a vanishing residual. You cannot use the solution vector to compute the residual in a different discrete equation
FMDenaro is offline   Reply With Quote

Old   September 21, 2015, 05:26
Default
  #19
New Member
 
Join Date: Jul 2015
Posts: 18
Rep Power: 10
kabz is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
the residual is computed for the discrete equation you really want to satisfy...if you linearized, this discrete equation must provide a vanishing residual. You cannot use the solution vector to compute the residual in a different discrete equation

And if one used deferred correction terms (eg bounded higher order schemes), are these computed for residuals or is it safe to ignore them?
kabz is offline   Reply With Quote

Old   September 21, 2015, 05:44
Default
  #20
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 kabz View Post
And if one used deferred correction terms (eg bounded higher order schemes), are these computed for residuals or is it safe to ignore them?

in the residual you must consider any discrete term you used in the computation... in symbolic term, said vn the solution at step n and A the discrete operators containing all fluxes (bounded or not), the residual at step n can be written (similar to interative methods for linear algebric systems)

A(vn) - s = rn


somehow, for steady solutions, rn can be interpreted as the time derivative you want to drive to zero
FMDenaro is offline   Reply With Quote

Reply

Tags
incompressible flow, parallel plates, simple


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
Running parallel case after parallel meshing with snappyHexMesh? Adam Persson OpenFOAM Running, Solving & CFD 0 August 31, 2015 22:04
radiation b/w parallel plates str6073 FLUENT 0 November 18, 2013 07:42
Injection between parallel plates, homogenous mode Terje CFX 7 September 7, 2008 19:51
Flow between 2 parallel flat plates pelli FLUENT 2 July 14, 2007 09:59
Parallel Computing Classes at San Diego Supercomputer Center Jan. 20-22 Amitava Majumdar Main CFD Forum 0 January 5, 1999 12:00


All times are GMT -4. The time now is 22:40.