CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

[swak4Foam] Unknown Function Type "swakExpression"

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 3 Post By CellZone

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 3, 2016, 08:28
Default [swak4Foam] Unknown Function Type "swakExpression"
  #1
Member
 
Join Date: Apr 2016
Posts: 91
Rep Power: 10
CellZone is on a distinguished road
Hi all!

I just tried to install swak4Foam, which actually did not show any error. When I try to implement a function in ControlDict called swakExpression, I get the following error:

Code:
Build : 2.4.0.1
Exec : rhoPorousSimpleFoam
Date : May 03 2016
Time : 13:06:01
Host : "iwlbt064"
PID : 116010
Case : /localdata/fs01/tmp/tobias_neu/angledDuctImplicit_Test
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
Create mesh for time = 0
 
SIMPLE: convergence criteria
field p tolerance 0.001
field U tolerance 0.0001
field e tolerance 0.001
field "(k|epsilon|omega)" tolerance 0.001
Reading thermophysical properties
Selecting thermodynamics package 
{
type heRhoThermo;
mixture pureMixture;
transport sutherland;
thermo hConst;
equationOfState perfectGas;
specie specie;
energy sensibleInternalEnergy;
}
Reading field U
Reading/calculating face flux field phi
Creating turbulence model
Selecting RAS turbulence model kEpsilon
kEpsilonCoeffs
{
Cmu 0.09;
C1 1.44;
C2 1.92;
C3 -0.33;
sigmak 1;
sigmaEps 1.3;
Prt 1;
}
Creating finite volume options from "system/fvOptions"
Selecting finite volume options model type fixedTemperatureConstraint
Source: source1
- applying source for all time
- selecting cells using cellZone porosity
- selected 400 cell(s) with volume 0.000288
Creating porosity model list from porosityProperties
Porosity region porosity1:
selecting model: DarcyForchheimer
creating porous zone: porosity
Using pressure implicit porosity
Starting time loop
faceSource outlet_Druck:
total faces = 20
total area = 0.0096
 
faceSource inlet_Druck:
total faces = 20
total area = 0.0096
 
 
 
--> FOAM FATAL ERROR: 
Unknown function type swakExpression
Valid functions are : 
17
(
cellSource
faceSource
fieldAverage
fieldCoordinateSystemTransform
fieldMinMax
fieldValueDelta
nearWallFields
patchProbes
probes
processorField
readFields
regionSizeDistribution
sets
streamLine
surfaceInterpolateFields
surfaces
wallBoundedStreamLine
)
 
 
From function functionObject::New(const word& name, const Time&, const dictionary&)
in file db/functionObjects/functionObject/functionObject.C at line 92.
FOAM exiting
ControlDict:

Code:
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
//"libtabulatedHeatTransferMassFlow.so"
libs (
//"libtabulatedHeatTransferMassFlow.so"
"libfieldFunctionObjects.so"
//"libsimpleSwakFunctionObjects.so"
//"libswakFunctionObjects.so"
//"libgroovyBC.so"
);
application rhoPorousSimpleFoam;
startFrom startTime;
startTime 0;
stopAt endTime;
endTime 500;
deltaT 1;
writeControl timeStep;
writeInterval 100;
purgeWrite 0;
writeFormat binary;
writePrecision 6;
writeCompression off;
timeFormat general;
timePrecision 6;
graphFormat raw;
runTimeModifiable true;
 
// ************************************************************************* //
functions
(
massFlowBeforeZone
{
type swakExpression;
valueType cellSource;
setName pressure;
expression "p";
accumulations (average);
verbose true;
} 
);
And the log of swak4Foam

Code:
Previously compiled for OpenFOAM 2.4.0.1
/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/maintainanceScripts/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)
No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
Swak version is 0.3.2
Bison is version 2.7.12-4996
Flex is version 2.5.39 (Minor version: 39)
OpenFOAM-version: Major 2 Minor 4 Patch 0 (-1 == x / 0)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakLagrangianParser.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
Compiling swakFvOptions
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakFvOptions.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakMeshWaveFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/lib/libswakCoalCloudAdaptor.so' is up to date.
If you have your own function-plugins you can specify them using the SWAK_USER_PLUGINS environment variable and they would be compiled now. If you don't know what this means: don't bother. You propably don't need it
make[1]: Entering directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/calcNonUniformOffsetsForMapped'
make[1]: `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: Leaving directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/calcNonUniformOffsetsForMapped'
make[1]: Entering directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/fieldReport'
make[1]: `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/bin/fieldReport' is up to date.
make[1]: Leaving directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/fieldReport'
make[1]: Entering directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkyDoCalc'
make[1]: `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: Leaving directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkyDoCalc'
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled
make[1]: Entering directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkySetBoundaryField'
make[1]: `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: Leaving directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkySetFields'
make[1]: `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
make[1]: Leaving directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkySetFields'
make[1]: Entering directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkySetLagrangianField'
make[1]: `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/bin/funkySetLagrangianField' is up to date.
make[1]: Leaving directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkySetLagrangianField'
make[1]: Entering directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkyWarpMesh'
make[1]: `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/bin/funkyWarpMesh' is up to date.
make[1]: Leaving directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/funkyWarpMesh'
make[1]: Entering directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/replayTransientBC'
make[1]: `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory `/home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Utilities/replayTransientBC'
 
If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/tq12ylj/OpenFOAM/tq12ylj-2.4.0.1/swak4FOAM/Libraries (most people will be fine without setting that variable)
I think maybe the settings of the paths of swak4Foam are not correct? Actually I followed the instructions of installing swak4Foam (wikipage).
Swak4Foam was compiled in my home directory, wheareas OpenFoam is Sourced from a network directory?

Maybe someone of you see's the failure?

Thank you in advance!
CellZone is offline   Reply With Quote

Old   May 3, 2016, 08:38
Default
  #2
Member
 
Join Date: Apr 2016
Posts: 91
Rep Power: 10
CellZone is on a distinguished road
Found it on my own: Solution:

you have to add in controlDict in libs:

libs ("libsimpleSwakFunctionObjects.so" );

That's it :-)
CellZone is offline   Reply With Quote

Reply


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
Inlet patch problems martyn88 OpenFOAM Running, Solving & CFD 6 April 21, 2017 19:34
[Commercial meshers] converting Fluent mesh to openfoam standard mesh deepesh OpenFOAM Meshing & Mesh Conversion 31 March 29, 2017 06:59
ParaView for OF-1.6-ext Chrisi1984 OpenFOAM Installation 0 December 31, 2010 07:42
Error with Wmake skabilan OpenFOAM Installation 3 July 28, 2009 01:35
compressible two phase flow in CFX4.4 youngan CFX 0 July 2, 2003 00:32


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