CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Error installing swak4Foam 0.2.3 on OF 2.2.2 (http://www.cfd-online.com/Forums/openfoam-installation/127241-error-installing-swak4foam-0-2-3-2-2-2-a.html)

Mojtaba.a December 6, 2013 12:50

Error installing swak4Foam 0.2.3 on OF 2.2.2
 
Hi,
Sorry for the new thread, But I couldn't solve my problem by previous threads.
I am trying to install swak4foam 0.2.3 on openFOAM 2.2.2
I get the tar ball, extract it and then using wmake all.
Here is what I get when running "wmake all" for the second time:

Quote:

No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
SOURCE=manipulateFieldFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/meshTools/lnInclude -I/opt/openfoam222/src/sampling/lnInclude -I/opt/openfoam222/src/fileFormats/lnInclude -I/opt/openfoam222/src/triSurface/lnInclude -I/opt/openfoam222/src//postProcessing/functionObjects/utilities/lnInclude -I/opt/openfoam222/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam222/src/OpenFOAM/lnInclude -I/opt/openfoam222/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/manipulateFieldFunctionObject.o
In file included from /opt/openfoam222/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:232:0,
from manipulateFieldFunctionObject.H:50,
from manipulateFieldFunctionObject.C:37:
/opt/openfoam222/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In instantiation of ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::manipulateField]’:
manipulateFieldFunctionObject.C:51:1: required from here
/opt/openfoam222/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:219:9: error: ‘class Foam::manipulateField’ has no member named ‘timeSet’
make: *** [Make/linux64GccDPOpt/manipulateFieldFunctionObject.o] Error 1
SOURCE=misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/openfoam222/src/finiteVolume/lnInclude -I/opt/openfoam222/src/meshTools/lnInclude -I/opt/openfoam222/src/sampling/lnInclude -I/opt/openfoam222/src/triSurface/lnInclude -I/opt/openfoam222/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam222/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam222/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam222/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam222/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam222/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam222/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam222/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam222/src/regionModels/regionModel/lnInclude -I/opt/openfoam222/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam222/src/turbulenceModels -I/opt/openfoam222/src/transportModels -I/opt/openfoam222/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam222/src/OpenFOAM/lnInclude -I/opt/openfoam222/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/readAndUpdateFieldsFunctionObject.o
In file included from /opt/openfoam222/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:232:0,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.H:50,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:36:
/opt/openfoam222/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In instantiation of ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::readAndUpdateFields]’:
misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:50:1: required from here
/opt/openfoam222/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:219:9: error: ‘class Foam::readAndUpdateFields’ has no member named ‘timeSet’
make: *** [Make/linux64GccDPOpt/readAndUpdateFieldsFunctionObject.o] Error 1
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
/usr/bin/ld: cannot find -lsimpleFunctionObjects
collect2: error: ld returned 1 exit status
make: *** [/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so] Error 1
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
make[1]: Entering directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/calcNonUniformOffsetsForMapped'
make[1]: `/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: Leaving directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/calcNonUniformOffsetsForMapped'
make[1]: Entering directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/funkyDoCalc'
make[1]: `/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: Leaving directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/funkyDoCalc'
make[1]: Entering directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetBoundaryField'
make[1]: `/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: Leaving directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetFields'
make[1]: `/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
make[1]: Leaving directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/funkySetFields'
make[1]: Entering directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/replayTransientBC'
make[1]: `/home/onixa/OpenFOAM/onixa-2.2.2/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory `/home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/onixa/OpenFOAM/Swak4Foam_2.x_release_0.2.3/Libraries (most people will be fine without setting that variable)
It seems that it can't compile libsimpleswakfunctionobject and libswakfunctionobject libraries.

If there is any further information needed, please inform me.

Will all the best,
Mojtaba

gschaider December 6, 2013 14:32

Quote:

Originally Posted by Mojtaba.a (Post 465158)
Hi,
Sorry for the new thread, But I couldn't solve my problem by previous threads.
I am trying to install swak4foam 0.2.3 on openFOAM 2.2.2
I get the tar ball, extract it and then using wmake all.
Here is what I get when running "wmake all" for the second time:



It seems that it can't compile libsimpleswakfunctionobject and libswakfunctionobject libraries.

If there is any further information needed, please inform me.

Will all the best,
Mojtaba

This question has been asked multiple times since the release of 2.2.2. There was a change in the interface of functionObjects between 2.2.1 and 2.2.2. The problem is fixed in the current development but not even in the last release (0.2.4).

So you'll have to get the development version. Preferred way is with mercurial (http://sourceforge.net/p/openfoam-ex..._2.0.x/tarball might work)

See: http://openfoamwiki.net/index.php/Co...am#Downloading

Mojtaba.a December 7, 2013 04:32

Quote:

Originally Posted by gschaider (Post 465169)
This question has been asked multiple times since the release of 2.2.2. There was a change in the interface of functionObjects between 2.2.1 and 2.2.2. The problem is fixed in the current development but not even in the last release (0.2.4).

So you'll have to get the development version. Preferred way is with mercurial (http://sourceforge.net/p/openfoam-ex..._2.0.x/tarball might work)

See: http://openfoamwiki.net/index.php/Co...am#Downloading

Thank you Bernhard, and sorry for the new thread.
Well actually I could solve it by using the patched version of swak4foam for building openfoam 2.2.x .

For those who have the same problem, either use bernhard's method or use the following version of swak4foam.

The Zip archive can get downloaded from this page:

http://www.cfd-online.com/Forums/ope...tml#post434217

With all the best,
Mojtaba


All times are GMT -4. The time now is 20:51.