|
[Sponsors] |
March 3, 2014, 12:22 |
|
#61 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
|
||
March 3, 2014, 13:37 |
|
#62 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
OK, let's diagnose one detail at a time:
|
||
March 4, 2014, 09:01 |
|
#63 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
Code:
export PATH export PATH=$HOME/.local/bin:$PATH export LD_LIBRARY_PATH=$HOME/.local/lib export MANPATH=$HOME/.local/share/man:$MANPATH export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION export FOAM_USER_APPBIN=$WM_PROJECT_USER_DIR/platforms/$WM_OPTIONS/bin export FOAM_USER_LIBBIN=$WM_PROJECT_USER_DIR/platforms/$WM_OPTIONS/lib export PATH=$PATH:$FOAM_USER_APPBIN export LD_LIBRARY_PATH=$PATH:$FOAM_USER_APPBIN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FOAM_USER_LIBBIN One consolation is that none of the commands above give an error: Code:
[cenmk@login2 swak4Foam_2.x]$ echo $WM_PROJECT_USER_DIR /home/ufaserv1_k/cenmk/OpenFOAM Code:
[cenmk@login2 swak4Foam_2.x]$ echo $FOAM_USER_APPBIN /home/ufaserv1_k/cenmk Code:
[cenmk@login2 swak4Foam_2.x]$ echo $FOAM_USER_LIBBIN /home/ufaserv1_k/cenmk/OpenFOAM/cenmk-2.1.1/platforms/linux64GccDPOpt/lib Code:
[cenmk@login2 swak4Foam_2.x]$ echo $PATH /apps/mpi/bin:/apps/infrastructure/openmpi/1.5.3/1/bit-64-gnu-4.7.1/bin:/home/ufaserv1_k/cenmk/.local/bin:/ParaView-3.98.1-Linux-64bit/bin/paraview:/apps/applications/openfoam/2.1.1-test/1/default/wmake:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64Gcc/qt-4.7.3/bin:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0/bin:/apps/applications/openfoam/2.1.1-test/1/default/platforms/linux64GccDPOpt/bin:/apps/applications/openfoam/2.1.1-test/1/default/applications/test:/apps/applications/openfoam/2.1.1-test/1/default/applications/solvers:/apps/applications/openfoam/2.1.1-test/1/default/applications/utilities:/apps/applications/openfoam/2.1.1-test/1/default/bin:/apps/compilers/gnu/4.7.1/1/bit-64/bin:/apps/compilers/gnu/4.7.1/1/bit-64/prereq/bin:/apps/applications/ansys/14.0/1/default/v140/icemcfd/linux64_amd/bin/:/apps/applications/ansys/14.0/1/default/v140/Framework/bin/Linux64/:/opt/ansys/v140/Framework/bin/Linux64:/opt/ansys/v140/tgrid/bin:/apps/cfx/bin:/apps/applications/ansys/14.0/1/default/v140/aisol:/apps/applications/ansys/14.0/1/default/v140/Framework/bin/Linux64:/apps/applications/ansys/14.0/1/default/v140/fluent/bin:/apps/applications/ansys/14.0/1/default/v140/CFX/bin:/apps/applications/ansys/14.0/1/default/v140/TurboGrid/bin:/apps/applications/ansys/14.0/1/default/v140/icemcfd/linux64_amd/bin:/services/sge/bin/lx24-amd64:/services/sge/default/common/leeds/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/apps/bin:/home/ufaserv1_k/cenmk/OpenFOAM/cenmk-2.1.1/platforms/linux64GccDPOpt/bin:/home/ufaserv1_k/cenmk/bin [cenmk@login2 swak4Foam_2.x]$ echo $LD_LIBRARY_PATH /apps/applications/openfoam/2.1.1-test/1/default/platforms/linux64GccDPOpt/lib/dummy:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64Gcc/lib/:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0/lib/:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64Gcc/qt-4.7.3/lib/:/apps/applications/openfoam/2.1.1-test/1/default/platforms/linux64GccDPOpt/lib/openmpi-1.5.3:/apps/applications/openfoam/2.1.1-test/1/default/platforms/linux64GccDPOpt/lib:/apps/applications/openfoam/2.1.1-test/1/default/lib:/apps/infrastructure/openmpi/1.5.3/1/bit-64-gnu-4.7.1/lib:/apps/compilers/gnu/4.7.1/1/bit-64/lib64:/apps/compilers/gnu/4.7.1/1/bit-64/lib:/apps/compilers/gnu/4.7.1/1/bit-64/prereq/lib:/home/ufaserv1_k/cenmk/.local/bin:/ParaView-3.98.1-Linux-64bit/bin/paraview:/apps/applications/openfoam/2.1.1-test/1/default/wmake:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64Gcc/qt-4.7.3/bin:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64Gcc/paraview-3.12.0/bin:/apps/applications/openfoam/2.1.1-test/1/default/platforms/linux64GccDPOpt/bin:/apps/applications/openfoam/2.1.1-test/1/default/applications/test:/apps/applications/openfoam/2.1.1-test/1/default/applications/solvers:/apps/applications/openfoam/2.1.1-test/1/default/applications/utilities:/apps/applications/openfoam/2.1.1-test/1/default/bin:/apps/mpi/bin:/apps/infrastructure/openmpi/1.5.3/1/bit-64-gnu-4.7.1/bin:/apps/compilers/gnu/4.7.1/1/bit-64/bin:/apps/compilers/gnu/4.7.1/1/bit-64/prereq/bin:/apps/applications/ansys/14.0/1/default/v140/icemcfd/linux64_amd/bin/:/apps/applications/ansys/14.0/1/default/v140/Framework/bin/Linux64/:/opt/ansys/v140/Framework/bin/Linux64:/opt/ansys/v140/tgrid/bin:/apps/cfx/bin:/apps/applications/ansys/14.0/1/default/v140/aisol:/apps/applications/ansys/14.0/1/default/v140/Framework/bin/Linux64:/apps/applications/ansys/14.0/1/default/v140/fluent/bin:/apps/applications/ansys/14.0/1/default/v140/CFX/bin:/apps/applications/ansys/14.0/1/default/v140/TurboGrid/bin:/apps/applications/ansys/14.0/1/default/v140/icemcfd/linux64_amd/bin:/services/sge/bin/lx24-amd64:/services/sge/default/common/leeds/bin:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/apps/bin:/home/ufaserv1_k/cenmk/OpenFOAM/cenmk-2.1.1/platforms/linux64GccDPOpt/bin:/home/ufaserv1_k/cenmk/OpenFOAM/cenmk-2.1.1/platforms/linux64GccDPOpt/bin:/home/ufaserv1_k/cenmk/OpenFOAM/cenmk-2.1.1/platforms/linux64GccDPOpt/lib Code:
[cenmk@login2 swak4Foam_2.x]$ echo $FOAM_LIBBIN /apps/applications/openfoam/2.1.1-test/1/default/platforms/linux64GccDPOpt/lib Code:
[cenmk@login2 swak4Foam_2.x]$ mkdir -p $WM_PROJECT_USER_DIR Code:
[cenmk@login2 swak4Foam_2.x]$ bison -V bison (GNU Bison) 2.7 Written by Robert Corbett and Richard Stallman. Copyright (C) 2012 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [cenmk@login2 swak4Foam_2.x]$ flex -V flex 2.5.37 Code:
[cenmk@login2 swak4Foam_2.x]$ ./Allwclean wclean simpleFunctionObjects wclean swak4FoamParsers wclean swakLagrangianParser wclean groovyBC wclean swakFunctionObjects wclean simpleSwakFunctionObjects wclean simpleLagrangianFunctionObjects wclean simpleSearchableSurfaces wclean swakTopoSources wclean swakSourceFields wclean swakFiniteArea wclean groovyStandardBCs wclean swakPythonIntegration wclean swakChemistryModelFunctionPlugin wclean swakRadiationModelFunctionPlugin wclean swakMeshQualityFunctionPlugin wclean swakLocalCalculationsFunctionPlugin wclean swakRandomFunctionPlugin wclean swakFvcSchemesFunctionPlugin wclean swakFacSchemesFunctionPlugin wclean swakThermoTurbFunctionPlugin wclean swakTransportTurbFunctionPlugin wclean swakSurfacesAndSetsFunctionPlugin wclean swakLagrangianCloudSourcesFunctionPlugin wclean swakVelocityFunctionPlugin wclean coalCloudAdaptor wclean funkySetFields wclean funkySetBoundaryField wclean replayTransientBC wclean funkySetAreaFields wclean funkyDoCalc wclean calcNonUniformOffsetsForMapped wclean fieldReport wclean funkyPythonPostproc wclean funkySetLagrangianField Code:
[cenmk@login2 swak4Foam_2.x]$ ./Allwmake e.g. Code:
.... Making dependency list for source file mqFaceNonOrthoPluginFunction.C could not open file directMappedFvPatch.H for source file mqFaceNonOrthoPluginFunction.C could not open file directMappedWallFvPatch.H for source file mqFaceNonOrthoPluginFunction.C |
||
March 4, 2014, 09:23 |
|
#64 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Please remove this line from your ".bashrc" file:
Code:
export LD_LIBRARY_PATH=$PATH:$FOAM_USER_APPBIN Code:
export LD_LIBRARY_PATH=$HOME/.local/lib Code:
export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH Quote:
|
||
March 4, 2014, 10:40 |
|
#65 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
I'm so sorry, I think this is all the relevant stuff now in my bashrc file. Code:
module load openmpi/1.5.3 module load gnu/4.7.1 module add openfoam PATH=/ParaView-3.98.1-Linux-64bit/bin/paraview:$PATH export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib/openmpi-1.5.3 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/applications/openfoam/2.1.1-test/1/default/platforms/linux64GccDPOpt/lib/dummy/ export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/apps/applications/openfoam/2.1.1-test/1/default/ThirdParty-2.1.1/platforms/linux64GccDPOpt/lib/ ######### export PATH export PATH=$HOME/.local/bin:$PATH export LD_LIBRARY_PATH=$HOME/.local/lib:$LD_LIBRARY_PATH export MANPATH=$HOME/.local/share/man:$MANPATH export WM_PROJECT_USER_DIR=$HOME/$WM_PROJECT/$USER-$WM_PROJECT_VERSION export FOAM_USER_APPBIN=$WM_PROJECT_USER_DIR/platforms/$WM_OPTIONS/bin export FOAM_USER_LIBBIN=$WM_PROJECT_USER_DIR/platforms/$WM_OPTIONS/lib export PATH=$PATH:$FOAM_USER_APPBIN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FOAM_USER_LIBBIN In any case Swak looks like it installs (gives no visible error other than what I reported in my last post) but funkySetFields returns command not found: Code:
[cenmk@login2 swak4Foam_2.x]$ funkySetFields -bash: funkySetFields: command not found |
||
March 4, 2014, 10:58 |
|
#66 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
The ".bashrc" file looks OK.
The accurate indication of whether it built everything correctly is to run Allwmake a second time (without running Allwclean), since it will check on the second pass whether everything is built or not. If it still tries to build stuff, then something is going wrong. |
|
March 4, 2014, 12:36 |
|
#67 | |
Senior Member
Join Date: Jul 2009
Posts: 260
Rep Power: 18 |
Quote:
The upshot is that an environment variable (LIBBIN) was not correctly set up. |
||
March 4, 2014, 13:08 |
swak4foam installation
|
#68 | |
New Member
navid
Join Date: May 2012
Posts: 6
Rep Power: 14 |
Quote:
|
||
May 8, 2014, 02:17 |
|
#69 |
New Member
Weitao Wu
Join Date: Feb 2013
Location: Pittsburgh
Posts: 1
Rep Power: 0 |
Hi:
When I was installing the swakFoam, I got following errors. I have spent a lot of time on searching information, but didn't find a solution. Following are the errors I got. Thanks so much! Update: I have already solved the problem using the solution provided by the #6 post in this thread. Thanks everyone! Code:
Previously compiled for OpenFOAM 2.1.1 No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file abort: no repository found in '/home/weitaow/OpenFOAM/weitaow-2.1.1/swak4Foam_2.x' (.hg not found)! Swak version is 0.3.0 Bison is version 2.5 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 1 Patch 1 (-1 == x) No change to swak4FoamParsers/foamVersion4swak.H /usr/bin/ld: cannot open output file /home/weitaow/OpenFOAM/weitaow-2.1.1/platforms/linuxGccDPOpt/lib/libswak4FoamParsers.so: Permission denied collect2: ld returned 1 exit status make: *** [/home/weitaow/OpenFOAM/weitaow-2.1.1/platforms/linuxGccDPOpt/lib/libswak4FoamParsers.so] Error 1 Parser library did not compile OK. No sense continuing as everything else depends on it 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 |
|
May 8, 2014, 09:33 |
|
#70 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Seriously: thanks for reporting the fix to your problem. This makes live easier for people who encounter this problem also and during their research find your post
__________________
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 |
||
June 25, 2014, 05:41 |
Compiling swak4Foam for openFoam2.3 finally working well
|
#71 |
Senior Member
Paritosh Vasava
Join Date: Oct 2012
Location: Lappeenranta, Finland
Posts: 732
Rep Power: 23 |
Yesterday I tried for almost 6 hours to make swak4Foam work with openFoam2.3. Here is what I did:
On the last step I kept on getting the error similar to that reported in post-58 (last-error)http://www.cfd-online.com/Forums/ope...tml#post477757. Then I thought that I ignore the errors and run a test case. But running a case with groovyBC kept on giving me Unknown function type error. I spent a whole lot of time in trying different links and versions of swak4Foam. Finally I realized that I had to modify the controlDict file to make swak4Foam work. I added the following lines and everything started worked well. Code:
libs ( "libOpenFOAM.so" "libgroovyBC.so" "libsimpleSwakFunctionObjects.so" "libswakFunctionObjects.so" ) ; Yesterday, cfd-online website for down for some time and it saved me from possible sarcastic comments . So far everything is working well but I will come back if I get stuck somewhere..... |
|
July 2, 2014, 18:57 |
|
#72 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Ah. We have an optimist here
__________________
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 |
||
September 16, 2014, 12:45 |
|
#73 | |
Member
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14 |
Hello,
To install swak4foam on ubuntu 12.04 (precise) 64 bit, using openfoam201 I followed the instructions given here and on wikipage: Quote:
funkySetFields I got the following message: funkySetFields: error while loading shared libraries: libswak4FoamParsers.so: cannot open shared object file: No such file or directory and the make.log file gives the following after running allmake twice: Previously compiled for OpenFOAM 2.0.1 No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file Swak version is 0.3.2 Bison is version 2.5 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 0 Patch 1 (-1 == x / 1) No change to swak4FoamParsers/foamVersion4swak.H '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakLagrangianParser.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libsimpleFunctionObjects.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.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/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date. '/home/nadine/OpenFOAM/nadine-2.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/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/calcNonUniformOffsetsForMapped' make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date. make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/calcNonUniformOffsetsForMapped' make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/fieldReport' make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/fieldReport' is up to date. make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/fieldReport' make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkyDoCalc' make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date. make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkyDoCalc' SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Utility funkyPythonPostproc not compiled make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkySetBoundaryField' make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date. make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkySetBoundaryField' make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkySetFields' make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date. make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkySetFields' make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkySetLagrangianField' make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/funkySetLagrangianField' is up to date. make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkySetLagrangianField' make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkyWarpMesh' make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/funkyWarpMesh' is up to date. make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/funkyWarpMesh' make[1]: Entering directory `/home/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Utilities/replayTransientBC' make[1]: `/home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date. make[1]: Leaving directory `/home/nadine/OpenFOAM/nadine-2.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/nadine/OpenFOAM/nadine-2.0.1/swak4Foam/Libraries (most people will be fine without setting that variable) when using groovyBC after adding the librairies in the controlDict as said in wikipage, I got the following message: --> FOAM FATAL IO ERROR: Unknown patchField type groovyBC for patch type patch So please help help help |
||
September 16, 2014, 13:07 |
|
#74 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
First try in a new terminal (don't know the OF-scripts by heart but it is possible that FOAM_USER_LIBBIN is not inserted into LD_LIBRARY_PATH if it doesn't exist and if swak is the first library you compiled then this might not have existed at first) If it doesn't work in a new terminal try adding $FOAM_USER_LIBBIN to LD_LIBRARY_PATH Bernhard
__________________
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 |
||
September 17, 2014, 05:57 |
|
#75 |
Member
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14 |
Hello Bernhard,
thank you for your fast reply! I search online to find how to add the path and did the following: export LD_LIBRARY_PATH=$FOAM_USER_LIBBIN then tested by typing: echo $LD_LIBRARY_PATH and got the following message: /home/nadine/OpenFOAM/nadine-2.0.1/platforms/linux64GccDPOpt/lib but funkySetFields still gives the following error message: error while loading shared libraries: libswak4FoamParsers.so: cannot open shared object file: No such file or directory and I tried everything from new terminals! thank you for your help |
|
September 17, 2014, 06:21 |
|
#76 |
Member
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14 |
Hello Bernhard,
Never mind my last post! I added export LD_LIBRARY_PATH=$FOAM_USER_LIBBIN to my ./bashrc and it works now thank you again for your help |
|
September 17, 2014, 09:37 |
|
#77 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Code:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FOAM_USER_LIBBIN
__________________
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 |
||
January 11, 2015, 06:26 |
swak installation error in mac for foam-extend-3.1
|
#78 |
New Member
Dr H Kiani
Join Date: Jan 2015
Posts: 3
Rep Power: 11 |
Hi All,
I have just changed from Ubuntu to Mac OS, so downloaded the image file for foam-extend-3.1. The software is working fine and my solvers are compiled correctly, however when I try to install swak4foam the following error occurs after a 2nd time ./Allwmake: last lines of the log: Code:
-I/Users/mousavi/foam/foam-extend-3.1/src/foam/lnInclude -I/Users/mousavi/foam/foam-extend-3.1/src/OSspecific/POSIX/lnInclude -fPIC -Ddarwin -c Make/darwinIntel64GccDPOpt/PatchValueExpressionParser.C -o Make/darwinIntel64GccDPOpt/PatchValueExpressionParser.o bison: m4 subprocess failed: No such file or directory mv: rename *.tab.cc to ../Make/darwinIntel64GccDPOpt/PatchValueExpressionParser.C: No such file or directory sed: location.hh: No such file or directory mv: rename location.hh to ../lnInclude/PatchValueExpressionParser_location.hh: No such file or directory mv: rename stack.hh to ../lnInclude/PatchValueExpressionParser_stack.hh: No such file or directory mv: rename position.hh to ../lnInclude/PatchValueExpressionParser_position.hh: No such file or directory sed: PatchValueExpressionParser.tab.hh: No such file or directory mv: rename *.hh to ../lnInclude/*.hh: No such file or directory -e If compilation of the grammers takes prohibitivly long set SWAK_COMPILE_GRAMMAR_OPTION to something like -O1 clang: error: no such file or directory: 'Make/darwinIntel64GccDPOpt/PatchValueExpressionParser.C' clang: error: no input files make: *** [Make/darwinIntel64GccDPOpt/PatchValueExpressionParser.o] Error 1 make: *** Waiting for unfinished jobs.... bison: m4 subprocess failed: No such file or directory mv: rename *.tab.cc to ../Make/darwinIntel64GccDPOpt/FieldValueExpressionParser.C: No such file or directory sed: location.hh: No such file or directory mv: rename location.hh to ../lnInclude/FieldValueExpressionParser_location.hh: No such file or directory mv: rename stack.hh to ../lnInclude/FieldValueExpressionParser_stack.hh: No such file or directory mv: rename position.hh to ../lnInclude/FieldValueExpressionParser_position.hh: No such file or directory sed: FieldValueExpressionParser.tab.hh: No such file or directory mv: rename *.hh to ../lnInclude/*.hh: No such file or directory -e If compilation of the grammers takes prohibitivly long set SWAK_COMPILE_GRAMMAR_OPTION to something like -O1 clang: error: no such file or directory: 'Make/darwinIntel64GccDPOpt/FieldValueExpressionParser.C' clang: error: no input files make: *** [Make/darwinIntel64GccDPOpt/FieldValueExpressionParser.o] Error 1 Parser library did not compile OK. No sense continuing as everything else depends on it Requirements for Library not satisfied. I see no sense in going on Last edited by wyldckat; January 11, 2015 at 13:34. Reason: Added [CODE][/CODE] |
|
January 11, 2015, 13:46 |
|
#79 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings hkiani and welcome to the forum!
I don't have a Mac, therefore I can't test it. Nonetheless, there are a few details I'd like to point out:
Best regards, Bruno
__________________
|
||
January 14, 2015, 12:23 |
|
#80 |
New Member
Dr H Kiani
Join Date: Jan 2015
Posts: 3
Rep Power: 11 |
Hi Bruno!
Thanks a million for your kind reply. Ye, I have read the links you suggested and tried several options but the error still exists. It seems to be a write protection issue or a problem in links to the files. I could not figure out the problem. I even changed to bash but got the same error. I dont know is any body has tried to compile swak on mac for extend 3.1? The initial lines of the log goes like this: Code:
bash-3.2# ./Allwmake This is a clean install No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file Swak version is 0.3.1 Bison is version 2.7 Flex is version Apple(flex-31) (Minor version: Apple(flex-31)) OpenFOAM-version: Major 3 Minor 1 Patch -1 (-1 == x / 98) No swak4FoamParsers/foamVersion4swak.H. Generated wmakeLnInclude: linking include files to simpleFunctionObjects/lnInclude wmakeLnInclude: linking include files to ./lnInclude Making dependency list for source file helpers/exprString.C Making dependency list for source file helpers/printSwakVersion.C Making dependency list for source file helpers/switchableNotImplemented.C Making dependency list for source file helpers/DebugOStream.C Making dependency list for source file entryToExpression/entryToExpression.C Making dependency list for source file entryToExpression/directEntryToExpression.C Making dependency list for source file entryToExpression/stringEntryToExpression.C Making dependency list for source file entryToExpression/boolEntryToExpression.C Making dependency list for source file entryToExpression/vectorEntryToExpression.C Making dependency list for source file entryToExpression/tensorEntryToExpression.C Making dependency list for source file entryToExpression/symmTensorEntryToExpression.C Making dependency list for source file entryToExpression/sphericalTensorEntryToExpression.C Making dependency list for source file entryToExpression/dimensionedScalarEntryToExpression.C Making dependency list for source file entryToExpression/dimensionedVectorEntryToExpression.C Making dependency list for source file entryToExpression/dimensionedTensorEntryToExpression.C Making dependency list for source file entryToExpression/dimensionedSymmTensorEntryToExpression.C Making dependency list for source file entryToExpression/dimensionedSphericalTensorEntryToExpression.C Making dependency list for source file repositories/RepositoryBase.C Making dependency list for source file repositories/SurfacesRepository.C could not open file cellModelI.H for source file repositories/SurfacesRepository.C could not open file cellShapeI.H for source file repositories/SurfacesRepository.C could not open file boolList.H for source file repositories/SurfacesRepository.C could not open file HashSet.H for source file repositories/SurfacesRepository.C could not open file Map.H for source file repositories/SurfacesRepository.C could not open file EdgeMap.H for source file repositories/SurfacesRepository.C could not open file primitiveMeshI.H for source file repositories/SurfacesRepository.C could not open file pointIOField.H for source file repositories/SurfacesRepository.C could not open file faceIOList.H for source file repositories/SurfacesRepository.C could not open file labelIOList.H for source file repositories/SurfacesRepository.C could not open file polyBoundaryMesh.H for source file repositories/SurfacesRepository.C could not open file boundBox.H for source file repositories/SurfacesRepository.C could not open file pointZoneMesh.H for source file repositories/SurfacesRepository.C could not open file faceZoneMesh.H for source file repositories/SurfacesRepository.C could not open file cellZoneMesh.H for source file repositories/SurfacesRepository.C could not open file coordinateSystems.H for source file repositories/SurfacesRepository.C could not open file interpolation.H for source file repositories/SurfacesRepository.C could not open file sampledSurfaceTemplates.C for source file repositories/SurfacesRepository.C could not open file RepositoryBase.H for source file repositories/SurfacesRepository.C could not open file surfaceWriter.H for source file repositories/SurfacesRepository.C .................... Last edited by wyldckat; January 14, 2015 at 15:30. Reason: Added [CODE][/CODE] |
|
Tags |
swak4faom, swak4foam error |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] Installing swak4Foam 0.4.0 on ubuntu 14.04 | JFM | OpenFOAM Community Contributions | 1 | October 30, 2016 10:43 |
[swak4Foam] Installing swak4Foam on ubuntu 12.04 | fluidflowsteel | OpenFOAM Community Contributions | 1 | June 28, 2016 15:02 |
[swak4Foam] Installing swak4Foam with openFoam v3.0+ | RebelLion | OpenFOAM Community Contributions | 0 | March 11, 2016 20:10 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
[swak4Foam] Installing swak4Foam to OpenFOAM in mac | Kaquesang | OpenFOAM Community Contributions | 22 | January 21, 2013 12:51 |