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

guidance on steps for writing code for boundary layer of velocity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2018, 11:03
Question guidance on steps for writing code for boundary layer of velocity
  #1
New Member
 
siamak rafizadeh
Join Date: May 2018
Posts: 8
Rep Power: 8
siamak 60 is on a distinguished road
hi
I want to write code with matlab using dufort frankel method.
two equation exist for this work . momentum equation in x direction for obtaining velocity inside boundary layer. consider gradient of pressure gradient at x direction as zero but in y direction is not zero.
continuity equation for determining velocity inside boundary layer at y direction.
what should i do for finding unknown variable. should i first determine all velocity in x direction by an approximate method like pohlhousen ? if i do that; then i shall believe that some finite difference method like dufort frankel is useless unless it will be used to optimize results obtained by an approximate method ?
Thanks for your time
siamak 60 is offline   Reply With Quote

Old   May 3, 2018, 12:38
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,776
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by siamak 60 View Post
hi
I want to write code with matlab using dufort frankel method.
two equation exist for this work . momentum equation in x direction for obtaining velocity inside boundary layer. consider gradient of pressure gradient at x direction as zero but in y direction is not zero.
continuity equation for determining velocity inside boundary layer at y direction.
what should i do for finding unknown variable. should i first determine all velocity in x direction by an approximate method like pohlhousen ? if i do that; then i shall believe that some finite difference method like dufort frankel is useless unless it will be used to optimize results obtained by an approximate method ?
Thanks for your time

Are you solving laminar BL? The Prandtl equations are parabolic as the x-direction can be seen in a time-like way. Therefore, you can use FD method for parabolic equations. I suggest to write the equations in the form provided by the von Mises transformation
FMDenaro is offline   Reply With Quote

Old   May 3, 2018, 15:19
Default
  #3
New Member
 
siamak rafizadeh
Join Date: May 2018
Posts: 8
Rep Power: 8
siamak 60 is on a distinguished road
Laminar Boundary Layer
Momentum in X-Direction (steady state, Incompressible flow):
u ∂u/∂x+V ∂u/∂y=v (∂^2 u)/〖∂y〗^2
Dufort-Frankel finite Difference Discretization:
u(i,j)*((u(i+1,j)-u(i-1,j))/(2*∆x)+V(i,j)*((u(i,j+1)-u(i,j-1)))/(2*∆y)=v ((u(i,j+1)-2*u(i,j)+u(i,j-1))/〖∆y〗^2
Above finite difference form of momentum equation shall be used to find all u(i,j) inside boundary layer.
Continuity equation:
∂u/∂x+∂V/∂y=0
Dufort-Frankel form
(u(i+1,j)-u(i-1,j))/(2*∆x)+(V(i,j+1)-V(i,j-1))/(2*∆y)=0
Above finite Difference form of continuity equation shall be used to drive V(i,j) .

For using these equations it seems that you shall have all values of u(i,j) and Dufort-Frankel will only optimize these values. These initial values of u(i,j) can be driven from approximated methods like Karman-Pohlhausen:
u/U_∞ =2*y/δ-〖(y/δ)〗^2
δ/x=√(30/((xU_∞)/v))
My questions are :1) isn’t any direct method to use Dufort-Frankel Method ?
2) Is described method a correct method for using Dufort- Frankel ?
siamak 60 is offline   Reply With Quote

Old   May 3, 2018, 15:34
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,776
Rep Power: 71
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by siamak 60 View Post
Laminar Boundary Layer
Momentum in X-Direction (steady state, Incompressible flow):
u ∂u/∂x+V ∂u/∂y=v (∂^2 u)/〖∂y〗^2
Dufort-Frankel finite Difference Discretization:
u(i,j)*((u(i+1,j)-u(i-1,j))/(2*∆x)+V(i,j)*((u(i,j+1)-u(i,j-1)))/(2*∆y)=v ((u(i,j+1)-2*u(i,j)+u(i,j-1))/〖∆y〗^2
Above finite difference form of momentum equation shall be used to find all u(i,j) inside boundary layer.
Continuity equation:
∂u/∂x+∂V/∂y=0
Dufort-Frankel form
(u(i+1,j)-u(i-1,j))/(2*∆x)+(V(i,j+1)-V(i,j-1))/(2*∆y)=0
Above finite Difference form of continuity equation shall be used to drive V(i,j) .

For using these equations it seems that you shall have all values of u(i,j) and Dufort-Frankel will only optimize these values. These initial values of u(i,j) can be driven from approximated methods like Karman-Pohlhausen:
u/U_∞ =2*y/δ-〖(y/δ)〗^2
δ/x=√(30/((xU_∞)/v))
My questions are :1) isn’t any direct method to use Dufort-Frankel Method ?
2) Is described method a correct method for using Dufort- Frankel ?

Use the von Mises transformation so that you can work with only one equation in the form of the classical heat equation. Then you can use standard FD method for the update along x- direction
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
VELOCITY vs VELOCITY IN STN FRAME vs RELATIVE VELOCITY everest20 FLUENT 1 July 13, 2015 08:35
[snappyHexMesh] Boundary layer in a pipe Clementhuon OpenFOAM Meshing & Mesh Conversion 6 March 12, 2012 12:41
[ICEM] Steps of generating prism layer TommyLui ANSYS Meshing & Geometry 2 September 8, 2011 17:01
errors Fahad Main CFD Forum 0 March 23, 2004 13:20
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 15:56


All times are GMT -4. The time now is 07:24.