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

How to approach calculating a stream function given a velocity profile on a grid

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 24, 2009, 15:44
Default How to approach calculating a stream function given a velocity profile on a grid
  #1
New Member
 
Eric Jase
Join Date: Oct 2009
Posts: 3
Rep Power: 7
ComFlu is on a distinguished road
I have the velocity profiles for a 12x12 grid. So a 12x12 grid for the velocity in the x direction (u) and a 12x12 gride for velocity in the y direction(y) the stream function is defined as u=d(phi)/dy and v=d(phi)/dx. Where phi is the stream function.

This is a cavity flow: At the left, right, and bottom of the grid, the walls are stationary, therefore phi=0. To the right the change in phi (d(phi)) is the velocity in the y direction (v) times the change in distance going to the right (dx).

Denoting each grid line in the x direction as i, In summary:
d(phi) = dy * u ----> (phi)i+1 = (u)i*(dy)i+(phi)i

Thoughts on my approach?
ComFlu is offline   Reply With Quote

Old   October 25, 2009, 14:25
Default
  #2
otd
Member
 
private
Join Date: Mar 2009
Posts: 74
Rep Power: 8
otd is on a distinguished road
[QUOTE=ComFlu;233904]I have the velocity profiles for a 12x12 grid. So a 12x12 grid for the velocity in the x direction (u) and a 12x12 gride for velocity in the y direction(y) the stream function is defined as u=d(phi)/dy and v=d(phi)/dx. Where phi is the stream function.


If u = d(phi)/dy then v = - d(phi)/dx. The minus sign is mandatory. [Or you can go with u = - d(phi)/dy and v = d(phi)/dx. If you carry the signs consistently throughout the derivations, either will work.]
otd is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[UDF] Relative coordinates in logarithmic velocity profile cfdworker Fluent UDF and Scheme Programming 24 February 23, 2015 05:33
Logarithmic velocity profile cfdworker Fluent UDF and Scheme Programming 0 April 23, 2009 19:09
[boundary condition] logarithmic velocity profile cfdworker FLUENT 2 April 17, 2009 23:36
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27
particle velocity and velocity profile HGG FLUENT 2 June 10, 2001 16:32


All times are GMT -4. The time now is 16:28.