CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   problem of streamFunction in buoyantBoussinesqSimpleFoam (

jignesh_thaker2007 September 28, 2011 12:39

problem of streamFunction in buoyantBoussinesqSimpleFoam
hi Every one!

i m using openfoam 201
i have problem to plot streamFunction i solved problem for laminar nonisothermal cavity flow with buoyantBoussinesqSimpleFoam.

when i run streamfunction then it gave me error but when i run another solver like icoFoam,SimpleFoam then streamfunction works but in buoyantBoussinesqSimpleFoam it cant work so what can i do?

plz tel me how can i plot streamFunction?

tel me how to plot streamFunction using buoyantBoussinesqSimpleFoam.
i found error like,

Create mesh, no clear-out for time = 0

Time: 0
--> FOAM Warning :
From function streamFunction
in file streamFunction.C at line 456
Flux field does not exist. Stream function not calculated

Time: 100

Reading field phi
Zero face: patch: 0 face: 0
#0 Foam::error: printStack(Foam::Ostream&) in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/"
#1 Foam::sigFpe::sigHandler(int) in "/opt/openfoam201/platforms/linuxGccDPOpt/lib/"
#2 Uninterpreted:
in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/streamFunction"
#4 __libc_start_main in "/lib/tls/i686/cmov/"
in "/opt/openfoam201/platforms/linuxGccDPOpt/bin/streamFunction"
Floating point exception

so anybody can solve my problem?

nimasam September 28, 2011 16:16

is there phi in your time folder?
you can use paraview or other post processing program to plot streams too

jignesh_thaker2007 September 29, 2011 02:41

hi nima
yes in time folder phi is available.
so how can i write my data of stream function? because in other solver streamFunction command works but in this solver it cant work

i need the value of stream function so how can i run this command?

nimasam September 29, 2011 04:49

is ur geometry 2D or 3D? streamFunction only works for 2D geometry

jignesh_thaker2007 September 29, 2011 12:25

ya in 2d. i short-out that problem but
when i give the command of streamFunction then it took the value of phi but it give me msg like

Reading field phi
Zero face: patch: 0 face: 0
Exhausted a seed. Looking for new seed (this is correct for multiply connected domains).

& when i plot this value in tecplot it gave me roungh answer
actually my value of vorticity is right but streamfunction value is incorrect so now tel me what can i do?

All times are GMT -4. The time now is 05:55.