CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum


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

LinkBack Thread Tools Display Modes
Old   May 3, 2005, 08:12
Default Streamfunction?
Posts: n/a
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?
  Reply With Quote

Old   May 3, 2005, 08:44
Default Re: Streamfunction?
Posts: n/a
u =partial p/partial(y) v=-partial p/parital(x)
  Reply With Quote

Old   May 3, 2005, 09:39
Default Re: Streamfunction?
Jonas Holdeman
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.
  Reply With Quote

Old   July 19, 2012, 08:46
New Member
Join Date: Jul 2012
Posts: 18
Rep Power: 7
mila_oliv is on a distinguished road
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? \DeltaPsi=(Vx)*(y2-y1) ????

And also on fluent, how could i assigs a value to PSI in a node?????
mila_oliv is offline   Reply With Quote

Old   July 19, 2012, 10:01
Senior Member
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 109
Rep Power: 11
Jonas Holdeman is on a distinguished road
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.
Jonas Holdeman is offline   Reply With Quote

Old   July 19, 2012, 10:05
New Member
Join Date: Jul 2012
Posts: 18
Rep Power: 7
mila_oliv is on a distinguished road
I'm working with natural convection in a cavity and when I say next column I mean in the mesh....

thanks for the help!
mila_oliv is offline   Reply With Quote


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
problem of streamFunction in buoyantBoussinesqSimpleFoam jignesh_thaker2007 OpenFOAM 4 September 29, 2011 12:25
StreamFunction utility titio OpenFOAM Post-Processing 0 May 19, 2010 16:04
UDF for streamfunction nisha Fluent UDF and Scheme Programming 0 September 15, 2009 06:55
streamfunction from u and v on a coarse mesh ryoga Main CFD Forum 0 February 1, 2002 19:20
cylinder streamfunction Steven Main CFD Forum 1 December 30, 2000 13:04

All times are GMT -4. The time now is 03:23.