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

[swak4Foam] swak4Foam in OpenFoam 2.4.0

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

Like Tree1Likes
  • 1 Post By jherb

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2015, 07:49
Default swak4Foam in OpenFoam 2.4.0
  #1
New Member
 
Antonio
Join Date: Jan 2013
Posts: 11
Rep Power: 13
avigrod is on a distinguished road
I am installing swak4foam for OpenFoam 2.4.0, and I have had some errors in the installation of some swak libraries as well as in the use of successfully installed swak libraries.

I describe my installation procedure:
Code:
$flex -V
flex 2.5.39

$ /usr/bin/bison -V
bison (GNU bison) 3.0.4
As bison 3 is not supported I used ./maintainanceScripts/compileRequirements.sh updated the PATH afterwards and now

Code:
$ bison -V
bison (GNU bison) 2.7.12-4996
Then I have proceed as follows:
./Allwclean
export SWAK_PYTHON_INCLUDE="-I/usr/include/python2.7"
export SWAK_PYTHON_LINK="-lpython2.7"
export SWAK_COMPILE_GRAMMAR_OPTION="-O1"
wmake all
wmake all

And I paste here the result of the last wmake:

Code:
Previously compiled for OpenFOAM 2.4.0

/home/avigrod/tmp/swak4Foam_2.x/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/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakLagrangianParser.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
Compiling swakFvOptions
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakFvOptions.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakPythonIntegration.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakMeshWaveFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/avigrod/OpenFOAM/avigrod-2.4.0/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/avigrod/tmp/swak4Foam_2.x/Utilities/calcNonUniformOffsetsForMapped'
make[1]: '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/calcNonUniformOffsetsForMapped'
make[1]: Entering directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/fieldReport'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt  -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/  -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/fieldReport.o -L/opt/openfoam240/platforms/linux64GccDPOpt/lib \
     -lfiniteVolume     -lmeshTools     -L/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib    -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/fieldReport
/opt/openfoam240/wmake/Makefile:149: recipe for target '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/fieldReport' failed
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/fieldReport'
/opt/openfoam240/wmake/MakefileApps:39: recipe for target 'fieldReport' failed
make[1]: Entering directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkyDoCalc'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt       -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/  -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkyDoCalc.o -L/opt/openfoam240/platforms/linux64GccDPOpt/lib \
     -lfiniteVolume     -lmeshTools     -L/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib    -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkyDoCalc
/opt/openfoam240/wmake/Makefile:149: recipe for target '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkyDoCalc' failed
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkyDoCalc'
/opt/openfoam240/wmake/MakefileApps:39: recipe for target 'funkyDoCalc' failed
make[1]: Entering directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkyPythonPostproc'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt       -I/usr/include/python2.7 -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I../../Libraries/swakPythonIntegration/lnInclude/ -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkyPythonPostproc.o -L/opt/openfoam240/platforms/linux64GccDPOpt/lib \
     -lfiniteVolume     -lmeshTools -lpython2.7         -L/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib -lswakPythonIntegration -lsimpleFunctionObjects    -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkyPythonPostproc
/opt/openfoam240/wmake/Makefile:149: recipe for target '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkyPythonPostproc' failed
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkyPythonPostproc'
/opt/openfoam240/wmake/MakefileApps:39: recipe for target 'funkyPythonPostproc' failed
make[1]: Entering directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkySetBoundaryField'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt       -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetBoundaryField.o -L/opt/openfoam240/platforms/linux64GccDPOpt/lib \
     -lfiniteVolume     -lmeshTools     -L/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib    -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField
/opt/openfoam240/wmake/Makefile:149: recipe for target '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' failed
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkySetBoundaryField'
/opt/openfoam240/wmake/MakefileApps:39: recipe for target 'funkySetBoundaryField' failed
make[1]: Entering directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkySetFields'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt       -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetFields.o -L/opt/openfoam240/platforms/linux64GccDPOpt/lib \
     -lfiniteVolume     -lmeshTools     -lsampling      -L/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib    -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkySetFields
/opt/openfoam240/wmake/Makefile:149: recipe for target '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkySetFields' failed
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkySetFields'
/opt/openfoam240/wmake/MakefileApps:39: recipe for target 'funkySetFields' failed
make[1]: Entering directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkySetLagrangianField'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt       -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I/opt/openfoam240/src/lagrangian/basic/lnInclude -I/opt/openfoam240/src/lagrangian/intermediate/lnInclude -I/opt/openfoam240/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam240/src/thermophysicalModels/radiation/lnInclude -I/opt/openfoam240/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam240/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam240/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam240/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam240/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam240/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam240/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam240/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam240/src/regionModels/regionModel/lnInclude -I../../Libraries/swakLagrangianParser/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkySetLagrangianField.o -L/opt/openfoam240/platforms/linux64GccDPOpt/lib \
     -lfiniteVolume     -lmeshTools     -llagrangian    -L/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib    -lswakLagrangianParser  -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkySetLagrangianField
/opt/openfoam240/wmake/Makefile:149: recipe for target '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkySetLagrangianField' failed
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkySetLagrangianField'
/opt/openfoam240/wmake/MakefileApps:39: recipe for target 'funkySetLagrangianField' failed
make[1]: Entering directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkyWarpMesh'
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -IMake/linux64GccDPOpt       -I/opt/openfoam240/src/finiteVolume/lnInclude -I/opt/openfoam240/src/sampling/lnInclude -I/opt/openfoam240/src/meshTools/lnInclude -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/opt/openfoam240/src/OpenFOAM/lnInclude -I/opt/openfoam240/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkyWarpMesh.o -L/opt/openfoam240/platforms/linux64GccDPOpt/lib \
     -lfiniteVolume     -lmeshTools     -L/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib    -lswak4FoamParsers -lOpenFOAM -ldl   -lm -o /home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkyWarpMesh
/opt/openfoam240/wmake/Makefile:149: recipe for target '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/funkyWarpMesh' failed
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/funkyWarpMesh'
/opt/openfoam240/wmake/MakefileApps:39: recipe for target 'funkyWarpMesh' failed
make[1]: Entering directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/replayTransientBC'
make[1]: '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/replayTransientBC'

As shown previously, some of the libraries have failed with this message:
Code:
/opt/openfoam240/wmake/Makefile:149: recipe for target '/home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/bin/fieldReport' failed
make[1]: Leaving directory '/home/avigrod/tmp/swak4Foam_2.x/Utilities/fieldReport'
/opt/openfoam240/wmake/MakefileApps:39: recipe for target 'fieldReport' failed

But even the libraries that seemed to be installed have some problems:
For instance decomposing a case that uses groovyBC I get these kind of errors (FOAM warnings):
Code:
  dlopen error : /home/avigrod/OpenFOAM/avigrod-2.4.0/platforms/linux64GccDPOpt/lib/libgroovyBC.so: undefined symbol: _ZN4Foam14prefixOSstream11writeQuotedERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEb
Do you know whether there is some problem between current stable swak4FOAM and OpenFoam 2.4.0 or if I have committed any error?

Version of swakfoam is the currently available in svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam
avigrod is offline   Reply With Quote

Old   October 4, 2015, 15:31
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick questions:
  1. Which Linux distribution, version and architecture (32 or 64-bit) are you using?
  2. Which installation instructions for OpenFOAM did you follow?
wyldckat is offline   Reply With Quote

Old   October 5, 2015, 03:42
Default
  #3
New Member
 
Antonio
Join Date: Jan 2013
Posts: 11
Rep Power: 13
avigrod is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick questions:
  1. Which Linux distribution, version and architecture (32 or 64-bit) are you using?
  2. Which installation instructions for OpenFOAM did you follow?
1) 64 bit (4.1.0-2-amd64) Debian testing (stretch)
2) I installed the binary corresponding to the OF repository for vivid
avigrod is offline   Reply With Quote

Old   October 8, 2015, 17:44
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,978
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by avigrod View Post
1) 64 bit (4.1.0-2-amd64) Debian testing (stretch)
2) I installed the binary corresponding to the OF repository for vivid
Quick answer: That's a bit of a risk. The packages were designed for Ubuntu, you might be able to run the binary applications, but the probability of success in building additional source code that links to it is a bit low.
The reason is that since it's probably not the same compiler version (g++) nor the same binary linker (ld), the calculations for the object sizes might not match exactly and lead to the error message you're getting when trying to use groovyBC.

My advice is that if you need to build source code, such as swak4Foam, then build OpenFOAM from source code as well. Detailed instructions are available here:
  1. For uninstalling the current version: http://openfoamwiki.net/index.php/FA...ve_OpenFOAM.3F
  2. For installing from source code: http://openfoamwiki.net/index.php/In...M-2.4.0/Ubuntu
wyldckat is offline   Reply With Quote

Old   October 11, 2015, 04:53
Default
  #5
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
Quote:
Originally Posted by avigrod View Post

Do you know whether there is some problem between current stable swak4FOAM and OpenFoam 2.4.0 or if I have committed any error?
I installed both and did not have a problem. Unfortunately I can not help otherwise.
Bazinga is offline   Reply With Quote

Old   November 16, 2015, 01:12
Default swak4foam installation prob
  #6
New Member
 
ravi
Join Date: Nov 2013
Posts: 10
Rep Power: 12
ark704 is on a distinguished road
Hi

Somebody please guide me for the installation of swak4foam. Followed the steps listed here : http://openfoamwiki.net/index.php/In...2.2.0_to_2.4.x

I am using OpenFOAM 2.4.0 and OS: Ubuntu 14.04

But encountered with the following error :
---------------------------------------------------------------------
This is a clean install
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
abort: no repository found in '/home/cfd11/OpenFOAM/cfd11-2.4.0/swak4Foam' (.hg not found)!
Swak version is 0.3.2
Bison is version 3.0.2
swak4Foam only confirmed to work with Bison 2.x
Consider running ./maintainanceScripts/compileRequirements.sh for a local bison-installation
Set the environment variable DEVELOPE_FOR_NEW_BISON if you want to continue anyway.

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
-----------------------------------------------------------------------
ark704 is offline   Reply With Quote

Old   November 16, 2015, 02:16
Default
  #7
Senior Member
 
Join Date: Jun 2012
Location: Germany, Bochum
Posts: 230
Rep Power: 16
Bazinga is on a distinguished road
I am really not an expert but I think I had the problem and you need to install an older version of Bison.

I tried this and it worked:

Code:
wget http://launchpadlibrarian.net/140087283/libbison-dev_2.7.1.dfsg-1_amd64.deb
wget http://launchpadlibrarian.net/140087282/bison_2.7.1.dfsg-1_amd64.deb
dpkg -i libbison-dev_2.7.1.dfsg-1_amd64.deb
dpkg -i bison_2.7.1.dfsg-1_amd64.deb
source: http://askubuntu.com/questions/44498...n-ubuntu-14-04
Bazinga is offline   Reply With Quote

Old   November 16, 2015, 04:22
Default
  #8
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
As the error message says, build your own bison version:
Code:
./maintainanceScripts/compileRequirements.sh
At the end the script will show you a command, how to add this new version to your PATH environment variable.
Then you can start the ./Allwmake script of swak4foam again.

Quote:
Originally Posted by ark704 View Post
Hi

Somebody please guide me for the installation of swak4foam. Followed the steps listed here : http://openfoamwiki.net/index.php/In...2.2.0_to_2.4.x

I am using OpenFOAM 2.4.0 and OS: Ubuntu 14.04

But encountered with the following error :
---------------------------------------------------------------------
This is a clean install
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
abort: no repository found in '/home/cfd11/OpenFOAM/cfd11-2.4.0/swak4Foam' (.hg not found)!
Swak version is 0.3.2
Bison is version 3.0.2
swak4Foam only confirmed to work with Bison 2.x
Consider running ./maintainanceScripts/compileRequirements.sh for a local bison-installation
Set the environment variable DEVELOPE_FOR_NEW_BISON if you want to continue anyway.

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occured to 5 other people before and has been solved on the MessageBoard
-----------------------------------------------------------------------
wyldckat likes this.
jherb is offline   Reply With Quote

Old   May 30, 2016, 13:56
Default
  #9
New Member
 
shrawasti
Join Date: Jul 2015
Posts: 5
Rep Power: 11
shrawasti sahare is on a distinguished road
hi,

i have been trying to install swak4Foam for OF 2.4.0.
after installation i tried creating parabolic velocity using groovyBC.
but the solver does not seem to recognise the patch and also does not load the created libgroovyBC.so library.
I have added libgroovy.so and libOpenFOAM.so in controlDict.

please help.

shrawasti sahare is offline   Reply With Quote

Reply

Tags
swak4foam

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
[swak4Foam] swak4foam for OpenFOAM 4.0 mnikku OpenFOAM Community Contributions 80 May 17, 2022 08:06
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
[swak4Foam] Difference in calculating div(U*U) swak4FOAM vs. OpenFOAM codedFunctionObject polo OpenFOAM Community Contributions 7 October 1, 2013 10:22
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 13:00


All times are GMT -4. The time now is 05:32.