CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Computing StreamFunction

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2017, 06:17
Unhappy Computing StreamFunction
  #1
Member
 
Anirudh Kulkarni
Join Date: May 2016
Posts: 62
Rep Power: 10
Tempest is on a distinguished road
Dear Foamers,

I am trying to compute streamFunction for a time averaged field -- i.e. phiMean instead of phi.

For any given instant, the streamFunction is working fine, but when I use fieldAverage and calculate time average of phi field for one cycle and generate phiMean, the streamFunction command gives the following error:

Quote:
Reading field phi
zero flux boundary face not found. Using cell as a reference.
..
I have tried to modify streamFunction source code by replacing phi by phiMean everywhere. I have even tried to add the following code before the loop in streamFunction.C

Quote:

volVectorField UMean
(
IOobject
(
"UMean",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
),
mesh
);

surfaceScalarField phi
(
IOobject
(
"phi",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
linearInterpolate(UMean)&mesh.Sf()
);

phi.write();
The above code reads UMean and write phiMean for it. But this was also fruitless.

I badly need the streamFunction field. Please someone help me out.

Peace!
Tempest is offline   Reply With Quote

Reply

Tags
openfoam 4.1, stream function

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem of streamFunction in buoyantBoussinesqSimpleFoam jignesh_thaker2007 OpenFOAM 5 July 9, 2019 05:58
CFD algorithm design with reconfigurable computing Beatríz Navarro CFX 4 June 27, 2006 04:39
CFD algorithm design with reconfigurable computing Beatríz Navarro Main CFD Forum 1 June 25, 2006 14:25
CFD algorithm design with reconfigurable computing Beatríz Navarro Fidelity CFD 0 June 24, 2006 18:23
CFD algorithm design with reconfigurable computing Beatríz Navarro FLUENT 0 June 24, 2006 18:22


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