View Issue Details

IDProjectCategoryView StatusLast Update
0002385OpenFOAMBugpublic2018-07-10 11:16
Reportersatbhaiojas@gmail.com Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionfixed 
Platformi686 GNU/LinuxOSUbuntu 14.04 LTSOS Version3.13.0-101-gener
Summary0002385: buoyantPimpleFoam fails with -withFunctionObjects
DescriptionI am trying to create a new field "mag(U)" using coded function and compute_ptot using swak4foam. here is extract from controlDict addded to the "hotRoom" turorial for buoyantPimpleFoam,

Quote:
functions
{
compute_ptot
{
functionObjectLibs ( "libutilityFunctionObjects.so" );
type coded;
// enabled true;
redirectType ptot;
outputControl outputTime;
// outputInterval 1;
code
#{

const volVectorField& U = mesh().lookupObject<volVectorField>("U");
volScalarField mymagu
(
IOobject
(
"mymagu",
mesh().time().timeName(),
U.mesh(),
IOobject::NO_READ,
IOobject::AUTO_WRITE
),
mag(U)
);
mymagu.write();

#};
}

compute_ptot
{
type expressionField;
outputControl outputTime;
outputInterval 1;
fieldName ptot;
expression "(mag(U))";
autowrite true;
}
};
with following libraries

Quote:
libs (


"libsimpleSwakFunctionObjects.so"


"libswakFunctionObjects.so"


);
In both the method I can see the output files of the variables "mymagu" and "compute_ptot", but they are not readable in paraview.
Quote:


Quote:
buoyantPimpleFoam -withFunctionObjects
produces following error,

Quote:


Usage: buoyantPimpleFoam [OPTIONS]
options:
-case <dir> specify alternate case directory, default is the cwd
-noFunctionObjects
do not execute functionObjects
-parallel run in parallel
-roots <(dir1 .. dirN)>
slave root directories for distributed running
-srcDoc display source code in browser
-doc display application documentation in browser
-help print the usage

Using: OpenFOAM-3.0.1 (see www.OpenFOAM.org)
Build: 3.0.1-18e358711b4e



--> FOAM FATAL ERROR:
Invalid option: -withFunctionObjects


FOAM exiting
TagsNo tags attached.

Activities

henry

2016-12-12 07:34

manager   ~0007458

We do not use or support swak4foam. I recommend that you upgrade to OpenFOAM-4.1 and use the new post-processing framework which is much more convenient and flexible.

henry

2016-12-12 07:34

manager   ~0007459

Recommendation to upgrade.

Issue History

Date Modified Username Field Change
2016-12-12 05:51 satbhaiojas@gmail.com New Issue
2016-12-12 05:51 satbhaiojas@gmail.com Tag Attached: buoyantPimpleFoam -withFunctionObjects
2016-12-12 07:34 henry Note Added: 0007458
2016-12-12 07:34 henry Assigned To => henry
2016-12-12 07:34 henry Status new => closed
2016-12-12 07:34 henry Resolution open => fixed
2016-12-12 07:34 henry Fixed in Version => 4.1
2016-12-12 07:34 henry Note Added: 0007459
2018-07-10 11:16 administrator Tag Detached: buoyantPimpleFoam -withFunctionObjects