|October 24, 2009, 15:44||
How to approach calculating a stream function given a velocity profile on a grid
Join Date: Oct 2009
Posts: 3Rep Power: 9
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?
|October 25, 2009, 14:25||
Join Date: Mar 2009
Posts: 74Rep Power: 10
[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.]
|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|