# Streamfunction?

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 May 3, 2005, 08:12 Streamfunction? #1 cain Guest   Posts: n/a Sponsored Links What's the definition of streamfunction? I have seen several articles with steamfunction contour plot showed.Imagining that we have known the velocity field, how to compute the streamfunction?

 May 3, 2005, 08:44 Re: Streamfunction? #2 dpshaka Guest   Posts: n/a u =partial p/partial(y) v=-partial p/parital(x)

 May 3, 2005, 09:39 Re: Streamfunction? #3 Jonas Holdeman Guest   Posts: n/a The stream function is used in two-dimensional incompressible flow. If the flow is divergence-free, then there exists a scalar function (the stream function) such that the flow (velocity) is the curl of this stream function. If one draws contour plots of the stream function, the coutour lines are (stream) lines of flow of the fluid, that is, the flow is tangent to the contour lines. There are two ways to get the stream function from the velocity. The first is based on the condition that the line integral between two points of the component of the velocity perpendicular to the path is the difference of the stream function values at the end points. Thus if one has divergence-free velocity values at points on a grid, one can assign an arbitrary value of the stream function to one point and find the stream function at an adjacent grid point by computing (or approximating) the line integral above from the original point. Continuing this process, one can assign stream function values to all grid points. A second way, using finite element bases, is to assume an expansion for the stream function with unknown coefficients. One then fits (least squares?) the curl of this stream function to the known velocity field. Of course the flow problem could be solved using the stream function in a Leray decomposition/representation, and calculate the velocity from this. This may have the advantage of solving a smaller system of equations. In three dimensions, one does not have a single stream function. One CAN define stream SURFACES, and the stream lines are the intersection of two stream surfaces. If phi and psi are two such surfaces, then the velocity field can be written as u=((grad psi) cross (grad phi)). (I have tried very hard to find a good use for this, but I have not been successful yet.) I might remark though that in two dimensions, if one considers the stream function as one surface and a plane parallel to the flow plane as the second stream surface, then the coutour (stream) lines are the intersection of these two surfeces.

 July 19, 2012, 08:46 #4 New Member   Join Date: Jul 2012 Posts: 18 Rep Power: 7 Jonas Holdeman, what about the points next to the one I assumed a value to? I don't have to assign another value every time i go to the next column, do I? And in fluent, how do I call the integral? Psi=(Vx)*(y2-y1) ???? And also on fluent, how could i assigs a value to PSI in a node?????

 July 19, 2012, 10:01 #5 Senior Member   Jonas T. Holdeman, Jr. Join Date: Mar 2009 Location: Knoxville, Tennessee Posts: 109 Rep Power: 11 how do I call the integral? Psi=(Vx)*(y2-y1) ???? Yes, that would be OK for flow through a vertical face, with a similar expression for flux through a horizontal face to advance in the x-direction (to the next column?) You use the integral to start the value for next column. Of course you would use a good estimate of Vx, say linear or higher order interpolation. Remembering that the stream function is independent of path, you can check the accuracy of your result by comparing different paths. I do not know fluent.

 July 19, 2012, 10:05 #6 New Member   Join Date: Jul 2012 Posts: 18 Rep Power: 7 I'm working with natural convection in a cavity and when I say next column I mean in the mesh.... thanks for the help!

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post jignesh_thaker2007 OpenFOAM 4 September 29, 2011 12:25 titio OpenFOAM Post-Processing 0 May 19, 2010 16:04 nisha Fluent UDF and Scheme Programming 0 September 15, 2009 06:55 ryoga Main CFD Forum 0 February 1, 2002 19:20 Steven Main CFD Forum 1 December 30, 2000 13:04