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

[swak4Foam] post-processing using swakExpressionAverageDistribution do not work as expected

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2020, 07:56
Default post-processing using swakExpressionAverageDistribution do not work as expected
  #1
New Member
 
Join Date: May 2016
Posts: 8
Rep Power: 6
samwong is on a distinguished road
hi everyone,

I would like to calculate the x,y plane average profile of a scalarField T(x,y,z)
i.e. T(x,y,z) -> T_avg(z)
I did my calculation in parallel with 5 regions from time 0 to 1200. Data is written every 300steps, such that my data are contained in case/processor{0..23}/{0..1200..300}/region{1..5}/T

The problem is, I execute the command
Quote:
funkyDoCalc -time 1200 system/region2/postDict -region region2
but only the time = 0 (initial condition) is being calculated.

Any help would be appreciated!! Thank you

Details:
I follow the post,
Averaging along an axis.. swak4foam?

PostProcessing for finished calculation

and made a file called postDict containing:

Quote:
avgTDistributionZ {
type swakExpressionAverageDistribution;
libs (
"libOpenFOAM.so"
"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
"libgroovyBC.so"
);
writeStartTime no;
verbose true;
outputControlMode outputTime;
valueType internalField;
expression "T";
weight "vol()";
mask "true";
abscissa "pos().z";
binNumber 54;
valueIfZero 0;
dynamicExtremesAbscissa false;
minAbscissa 0;
maxAbscissa 150;
accumulations ( average );
}
and I tried to execute the commands,
Quote:
funkyDoCalc -latestTime system/region2/postDict -region region2
and
Quote:
funkyDoCalc -time 1200 system/region2/postDict -region region2
both of them give the same bash output and seems calculated the time = 0 only (but the average should not be 0, internal field is set to be 300).

Quote:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : _f3950763fe-20191219 OPENFOAM=1912
Arch : "LSB;label=32;scalar=64"
Exec : funkyDoCalc -time 1200 system/region2/postDict -region region2
Date : Jun 26 2020
Time : 19:23:08
Host :
PID : 145527
I/O : uncollated
Case :
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
swakVersion: 2020.06 (Release date: 2020-06-04)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Overriding DebugSwitches according to controlDict
SolverPerformance 0;

Create mesh region2 for time = 0

No information about foreign meshes in "system/region2/postDict.avgTDistributionZ"


Time = 0
avgTDistributionZ : swak4Foam: Setting default mesh
swak4Foam: Allocating new repository for sampledMeshes
swak4Foam: Allocating new repository for sampledGlobalVariables
with mask with weight average=0

End
samwong is offline   Reply With Quote

Old   November 3, 2020, 11:43
Default
  #2
Senior Member
 
Join Date: Jul 2019
Posts: 139
Rep Power: 3
Bodo1993 is on a distinguished road
Hi, I am wondering if you were able to resolve the problem. Thanks.
Bodo1993 is offline   Reply With Quote

Reply

Tags
openfoam 1912, post procesing, swak4foam error

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
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." sega OpenFOAM Community Contributions 12 February 17, 2010 10:30
POSDAT problem piotka STAR-CD 4 June 12, 2009 09:43
post processing in CFD MANISH BHARGAVA Main CFD Forum 0 October 17, 1998 21:51


All times are GMT -4. The time now is 02:41.