|
[Sponsors] |
July 2, 2013, 11:00 |
StreamFunction
|
#1 |
New Member
Luis Batista
Join Date: Mar 2013
Location: Lisboa / Setúbal
Posts: 17
Rep Power: 13 |
Hello Forum,
I am doing an analysis to a cavity flow using SimpleFoam.... Is there any known issue/error with the OF(2.1.2) function StreamFunction ? Apparently, I am having proper results within my vorticity vector field but when I plot the point field resulting from the streamFunction in Paraview, it seems that the results are 10 times smaller....I also see that the units of the streamfunction scalar field are L3 T-1. How are these units being derived? Regards, Luis |
|
July 7, 2013, 06:57 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Luis,
Can you provide a simple test case? Best regards, Bruno
__________________
|
|
August 19, 2013, 14:37 |
|
#3 |
New Member
Christiane Lechner
Join Date: Jul 2011
Location: Vienna
Posts: 4
Rep Power: 15 |
Dear Bruno and Luis,
I find the same with version 1.6-ext: the stream function seems to be too small by a factor of 10 and has dimensions length^3/time. I attach a case of a linear shear flow, U = (y/H)*V, with H the height of the domain, and V the velocity at the upper boundary. The stream function should be: \Psi = 0.5*((y/H)^2 -1)*V*H best regards, Christiane |
|
August 20, 2013, 06:34 |
|
#4 |
New Member
Christiane Lechner
Join Date: Jul 2011
Location: Vienna
Posts: 4
Rep Power: 15 |
Hi,
the factor 0.1 seems to stem from the cell width in the empty direction, which is \Delta z = 0.1 in the above example. Reducing \Delta z to 0.01 also reduces the streamFunction by another factor of 10. So it seems, that the streamFunction utility computes \Psi*\Delta z, not \Psi. This would also explain the dimensions length^3/time. Do you agree? best regards, Christiane |
|
August 21, 2013, 10:32 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Christiane,
Many thanks for the test case, but I haven't yet managed to look into it. But I've taken a quick look into the source code of "streamFunction" on both 2.2.x and 1.6-ext:
Another indication is that it doesn't seem to work for 3D simulations, because it assumes that Z is the empty orientation. I'll try to look at the test case later today. Best regards, Bruno
__________________
|
|
August 22, 2013, 13:28 |
|
#6 |
New Member
Christiane Lechner
Join Date: Jul 2011
Location: Vienna
Posts: 4
Rep Power: 15 |
Hi Bruno,
yes, the face flux field phi is phi = U_f & S_f, with S_f the area of the face. For the computation of the stream function U_f & S_f/\Delta z would be needed instead. best regards, Christiane |
|
August 22, 2013, 13:59 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Christiane,
Of course! Why didn't I visualize that... the face area still depends on Z, even though the flow is only over X-Y. OK, then there are 2 immediate solutions:
Bruno
__________________
|
|
August 26, 2013, 05:29 |
|
#8 |
New Member
Christiane Lechner
Join Date: Jul 2011
Location: Vienna
Posts: 4
Rep Power: 15 |
Hi Bruno,
thanks! I requested bug fixes at both sites: http://www.openfoam.org/mantisbt/view.php?id=976 http://sourceforge.net/apps/mantisbt...iew.php?id=185 best regards, Christiane |
|
January 21, 2020, 09:54 |
|
#9 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
bug still is available in OpenFOAM_4ext but solved in foundation version.
__________________
My Personal Website (http://nimasamkhaniani.ir/) Telegram channel (https://t.me/cfd_foam) |
|
August 27, 2021, 14:07 |
|
#10 |
Senior Member
A. Min
Join Date: Mar 2015
Posts: 308
Rep Power: 12 |
Hi all
Does streamFunction work on openFoam-v7? |
|
Tags |
streamfunction |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
problem of streamFunction in buoyantBoussinesqSimpleFoam | jignesh_thaker2007 | OpenFOAM | 5 | July 9, 2019 06:58 |
Computing StreamFunction | Tempest | OpenFOAM Post-Processing | 0 | January 7, 2017 07:17 |
sampleDict for streamFunction | srivatta | OpenFOAM Post-Processing | 3 | November 30, 2014 10:53 |
UDF for streamfunction | nisha | Fluent UDF and Scheme Programming | 0 | September 15, 2009 07:55 |
streamfunction from u and v on a coarse mesh | ryoga | Main CFD Forum | 0 | February 1, 2002 19:20 |