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

stream function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 28, 2006, 22:32
Default stream function
  #1
Zarchary
Guest
 
Posts: n/a
Does anyone have a handy code to calculate stream function if the velocity field is given? Thanks.
  Reply With Quote

Old   December 28, 2006, 22:32
Default Re: stream function *NM*
  #2
Zarchary
Guest
 
Posts: n/a
  Reply With Quote

Old   December 29, 2006, 12:46
Default Re: stream function
  #3
Andrew Hayes
Guest
 
Posts: n/a
if you have a velocity (both X and Y-direction) at each of the grid points and you know the distance between each of the grid points it is a simple loop using finite difference to calculate the stream function based on its definition and your bondary conditions
  Reply With Quote

Old   January 2, 2007, 10:08
Default Re: stream function
  #4
Jonas Holdeman
Guest
 
Posts: n/a
Assuming use of the finite element method with rectangular elements and velocity data at each corner node, use a Hermite stream function element with stream function and solenoidal velocity component degrees-of-freedom at each corner node. The curl of this element gives a divergence-free (vector) velocity element. Use least squares to fit this velocity to your velocity data. This will give the stream function (and fitted velocity) at each node. Interpolation of this data with the original stream function element will give the stream function at any point.
  Reply With Quote

Old   January 8, 2007, 07:42
Default Re: stream function
  #5
student
Guest
 
Posts: n/a
i have velocity in both i and j direction at all grid points solved by using finite volume method..can any one tell how to calculate stream function using this method..

  Reply With Quote

Old   January 8, 2007, 13:52
Default Re: stream function
  #6
Jonas Holdeman
Guest
 
Posts: n/a
I have not done this, but others recommend it: Assign a value to the stream function at some node (perhaps on a no-flow boundary). Integrate the normal component of velocity from that node to the next node on a cell. This flux is the difference in stream function value between the nodes. Add this to the stream function at the first node and assign it to the new node. Repeat along all edges of all cells.
  Reply With Quote

Old   August 16, 2009, 13:54
Default velocity vector, streamline and stream function
  #7
New Member
 
Hussam
Join Date: Mar 2009
Posts: 16
Rep Power: 17
Hussam is on a distinguished road
Dear Sir
My name is Hussam Ali Khalaf, postgraduate student in Iraq and Am currently working on “A Solution Algorithm for Transient Fluid Flow with Multiple Free Boundaries”
I have results for velocities values (u and v) in directions x and y for undular bore evolution (please, note the file attachment), rectangular uniform mesh (2Dimension, (i,j)=(22,10)) consists of 20 cells in the horizontal direction (length=12 , ∆x=0.6) and 8 cells in the vertical direction (height=1.6, ∆y=0.2).
Am supposed to draw velocity vector, streamline and stream function. I have a program TecPLOT, I have tried several times but I don’t fully understand how TecPLOT reads the results, would you please help me if you have any idea on how to go about it.
Thank in advance

Yours sincerely
Hussam Ali Khalaf
Iraq
Hussam is offline   Reply With Quote

Old   August 17, 2009, 12:23
Default
  #8
Senior Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18
Jonas Holdeman is on a distinguished road
Hassam,
My last response was related to finding the stream function in two dimensions. I have not thought seriously about how one computes stream lines in three dimensions.

In three dimensions one refers to a vector potential (not quite the same as a stream function) whose curl is the velocity, and to stream surfaces. A stream line is the intersection of two stream surfaces. In 2D, one of these stream surfaces is simply z=constant, and the remaining stream surface is the only one of interest. I have thought that surely the stream surfaces must be a powerful concept, but I have never found a way to use them.

I am retired and have limited software resources, mostly an old version of Matlab, and Matlab can display stream lines in 3D. For that reason I do not use Tecplot, but I understand that it is quite powerful. I don't know what format Tecplot uses to input data, so I cannot help you. However, there are others who belong to this forum using Tecplot, so surely one of them could help you. Perhaps you should start another thread asking how you can find the format to input your data into Tecplot.
Jonas Holdeman is offline   Reply With Quote

Old   July 19, 2012, 09:50
Default
  #9
New Member
 
Join Date: Jul 2012
Posts: 18
Rep Power: 14
mila_oliv is on a distinguished road
Andrew Haye,

do you know fluent? Because there we have a lot of "ready" functions...I wonder if I need to use numerical methods to program stream functions in it or if fluent will automatically do this if I use the given functions, like loop...

Thanks,
mila
mila_oliv is offline   Reply With Quote

Old   July 19, 2012, 11:03
Default
  #10
Senior Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18
Jonas Holdeman is on a distinguished road
Sorry, I don't know Fluent so I can't help you.
Jonas Holdeman 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
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
latest OpenFOAM-1.6.x from git failed to compile phsieh2005 OpenFOAM Bugs 25 February 9, 2010 05:37
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00


All times are GMT -4. The time now is 19:47.