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

Problem using postProcess streamFunction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2022, 16:38
Question Problem using postProcess streamFunction
  #1
New Member
 
Bendik
Join Date: Nov 2022
Posts: 1
Rep Power: 0
bendkok is on a distinguished road
Hello everyone,

I'm quite new to CFD. I have run a simulation for a 2D domain (backward facing step). I am trying to calculate the stream function using the post processing functionality of openFoam. I write:
Code:
 postProcess -func "streamFunction(U)"
As I've understood it, this is the correct syntax, though I'm not quite sure.

This runs, but at each timestep I get the following (with only the time being different):
Code:
Time = 0.01s

Reading fields:
    volVectorFields: U

Executing functionObjects
--> FOAM Warning :     functionObjects::streamFunction streamFunction(U) cannot find required object U of type surfaceScalarField
--> FOAM Warning :     functionObjects::streamFunction streamFunction(U) failed to execute.
This runs without returning an error, however I don't get any output. At least not that I can see in the different time folders.



I also tried writing this:
Code:
postProcess -func "streamFunction"
but this returns with an error:
Code:
Create time

Create mesh for time = 0

Time = 0s

Reading fields:

Executing functionObjects
--> FOAM Warning :     functionObjects::streamFunction streamFunction cannot find required object phi of type surfaceScalarField
--> FOAM Warning :     functionObjects::streamFunction streamFunction failed to execute.

Time = 0.0002s

Reading fields:
    surfaceScalarFields: phi

Executing functionObjects
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::Field<Foam::Vector<double> >::operator/=(Foam::tmp<Foam::Field<double> > const&) at ??:?
#4  Foam::functionObjects::streamFunction::calc(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&) const at ??:?
#5  Foam::functionObjects::streamFunction::calc() at ??:?
#6  Foam::functionObjects::fieldExpression::execute() at ??:?
#7  Foam::functionObjects::timeControl::execute() at ??:?
#8  Foam::functionObjectList::execute() at ??:?
#9  ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/postProcess"
#10  ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/postProcess"
#11  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12  ? in "/opt/openfoam10/platforms/linux64GccDPInt32Opt/bin/postProcess"
 Floating point exception
Which seems less correct.

Does anyone know what the problem is and how to fix it? Or alternatively, is there another way to calculate the stream function which is easier to use?
I have tried googling around, but couldn't find anyone with the same/similar problem. I also couldn't find any specific guides for streamFunction.

Any help would be appreciated!

Best regards,
Bendik
bendkok is offline   Reply With Quote

Reply

Tags
postprocess, streamfunction, surfacescalarfield


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
SU2-7.0.1 on ubuntu 18.04 hyunko SU2 Installation 7 March 16, 2020 04:37
BuoyantBoussinesqSimpleFoam_Facing problem Mondal131211 OpenFOAM Running, Solving & CFD 1 April 10, 2019 19:41
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13


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