|
[Sponsors] |
December 12, 2022, 17:38 |
Problem using postProcess streamFunction
|
#1 |
New Member
Bendik
Join Date: Nov 2022
Posts: 1
Rep Power: 0 |
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)" 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. I also tried writing this: Code:
postProcess -func "streamFunction" 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 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 |
|
Tags |
postprocess, streamfunction, surfacescalarfield |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2-7.0.1 on ubuntu 18.04 | hyunko | SU2 Installation | 7 | March 16, 2020 05:37 |
BuoyantBoussinesqSimpleFoam_Facing problem | Mondal131211 | OpenFOAM Running, Solving & CFD | 1 | April 10, 2019 20:41 |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |