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

Issue with a code for solving a boundary layer problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2017, 17:03
Default Issue with a code for solving a boundary layer problem
  #1
New Member
 
Join Date: Sep 2017
Posts: 1
Rep Power: 0
Vect13 is on a distinguished road
Hi,

I study an unsteady two-dimensional boundary layer problem and I write my own code based on the finite difference method (on Matlab). I have been struggling with it for a while so if someone could find a solution I would really appreciate it.
Roughly I try to solve the boundary layer equations of a jet between two parallel plates. The initial velocity profile along x=0 is parabolic such that u=1-Y^2 for Y in [-1;1] and 0 otherwise. (V=0 along x=0). Since the problem is symmetric, I study it between Y=0 and Y=d, with d>1.

Firstly I wrote the code of the problem without the plates, therefore as Y->+inf a matching condition for u holds, and it worked great: a jet propagates along the x-axis as time t increases, and after the perturbation u is equal to 0 (so e.g., u(x,Y=0,t) is equal to 0 immediately after the perturbation) as the fluid is initially at rest. Let's notice that the pressure gradient dp/dx=0 everywhere.

Then I added the plates. At Y=0, the symmetry boundary conditions hold: du/dY=0 and V=0. However at Y=d, the no-slip condition must be satisfied. So we can set u=0, but since the boundary layer equations are of first order in Y for V, I can't set V=0 at Y=d. So I restored the pressure gradient dp/dx and I used the Newton's method to compute dp/dx such that V=0 at Y=d.
And here is my problem, the profile of dp/dx looks consistent, but
1) u is not equal to 0 anymore after the perturbation. E.g., u(x,Y=0,t) tends to a finite value after the perturbation instead of 0. This value becomes larger as the distance d becomes smaller.
2) Same thing for the pressure gradient dp/dx, it does not tend to 0 after the perturbation.

The fluid being initially at rest, u should becomes 0 after the perturbation. Instead, it goes from 1 to 0.16 for example.

Someone would have a suggestion to overcome this issue? Thank you
Vect13 is offline   Reply With Quote

Old   September 12, 2017, 04:09
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,768
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
I don't understand what you are trying to do...

The problem is steady, not transient. Furthermore, if you start at x=0 with a parabolic velocity profile you are assuming a fully developed boundary layer at the inlet, not a spatially evolving that would require a uniform inlet.
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
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 15:15
Radiation interface hinca CFX 15 January 26, 2014 17:11
[snappyHexMesh] Boundary layer in a pipe Clementhuon OpenFOAM Meshing & Mesh Conversion 6 March 12, 2012 12:41
[snappyHexMesh] Boundary layer generation problems ivan_cozza OpenFOAM Meshing & Mesh Conversion 0 October 6, 2010 13:47
Boundary layer meshing problem in Gambit Crystal Main CFD Forum 0 June 12, 2009 14:32


All times are GMT -4. The time now is 08:27.