CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

Error installing swak4Foam 0.2.3 on OF 2.2.2

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 6, 2013, 12:50
Default Error installing swak4Foam 0.2.3 on OF 2.2.2
  #1
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Zanjan, Iran
Posts: 233
Rep Power: 7
Mojtaba.a is on a distinguished road
Send a message via Yahoo to Mojtaba.a
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
__________________
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Old   December 6, 2013, 14:32
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by Mojtaba.a View Post
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
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 7, 2013, 04:32
Default
  #3
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Zanjan, Iran
Posts: 233
Rep Power: 7
Mojtaba.a is on a distinguished road
Send a message via Yahoo to Mojtaba.a
Quote:
Originally Posted by gschaider View Post
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:

Swak4FOAM 0.2.3 / OF2.2.x installation error

With all the best,
Mojtaba
__________________
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam newbie29 OpenFOAM Installation 81 Today 00:07
Swak4FOAM 0.2.3 / OF2.2.x installation error FerdiFuchs OpenFOAM Installation 27 April 16, 2014 15:14
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 zordiack OpenFOAM Installation 1 October 26, 2013 13:08
source term in near wall cell rajcfd OpenFOAM Pre-Processing 4 October 8, 2013 19:37
swak4foam fails in parallel with -otherTime? Phicau OpenFOAM Post-Processing 3 June 26, 2013 13:00


All times are GMT -4. The time now is 15:50.