|
[Sponsors] |
[swak4Foam] swak4foam >>>> INSTALLATION PROBLEM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 15, 2014, 13:33 |
swak4foam >>>> INSTALLATION PROBLEM
|
#1 |
Member
stevem garcia
Join Date: Jun 2014
Posts: 34
Rep Power: 12 |
During swak4foam installation, I receive a terminal erros:
(I use ubuntu 14.04 with openfoam 2.3.0 installed from this video tutorial: "Building and installing OpenFOAM 2.3.0 on Ubuntu 14.04 from source"https://www.youtube.com/watch?v=LkLgwm64jGI ) My step-by-step: 1º STEP Install the necessary packages: Code:
sudo apt-get install build-essential bison flex subversion git mercurial wget Download from the repository HTML Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam (cd swak4Foam && hg update port_2.0.x) Code:
cd swak4Foam Code:
./Allwmake Code:
a@a-Aspire-V3-571:~/OpenFOAM/swak4f/attempt2/swak4Foam$ ./Allwmake Previously compiled for OpenFOAM No file 'swakConfiguration'. Python etc won't work. See README for details Checking swak4Foam-version and generating file abort: no repository found in '/home/a/OpenFOAM/swak4f/attempt2/swak4Foam' (.hg not found)! Swak version is 0.3.1 ./Allwmake: line 60: wmake: command not found 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 a@a-Aspire-V3-571:~/OpenFOAM/swak4f/attempt2/swak4Foam$ THANKS FRIENDS FOR ALL ATTENTION! |
|
July 15, 2014, 16:21 |
|
#2 |
Member
stevem garcia
Join Date: Jun 2014
Posts: 34
Rep Power: 12 |
I dowloaded swak4foam from:
http://openfoamwiki.net/index.php/In...2.3.0_to_2.3.x >>>ISWAK4FOAM INSTALLATION FOR OpenFOAM 2.3.0 to 2.3.x |
|
July 16, 2014, 19:29 |
|
#3 |
Member
stevem garcia
Join Date: Jun 2014
Posts: 34
Rep Power: 12 |
Please, Anyone?
|
|
July 16, 2014, 20:36 |
|
#4 |
Member
stevem garcia
Join Date: Jun 2014
Posts: 34
Rep Power: 12 |
I got sucess... To install swak4foam, It is necessary one thing: remove "alias" from variables into bashrc
alias fe31='source $HOME/foam/foam-extend-3.1/etc/bashrc' gives the error above removing alias: source $HOME/foam/foam-extend-3.1/etc/bashrc after remove it, ./Allwmake works!!! after allwmake finished and checking the version of swak4foam: Code:
a@a-Aspire-V3-571:~$ funkySetFields /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | foam-extend: Open Source CFD | | \\ / O peration | Version: 3.1 | | \\ / A nd | Web: http://www.extend-project.de | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 3.1-f77b4801a214 Exec : funkySetFields Date : Jul 16 2014 Time : 20:28:03 Host : a-Aspire-V3-571 PID : 29818 CtrlDict : /home/a/foam/foam-extend-3.1/etc/controlDict Case : /home/a nProcs : 1 SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // swakVersion: 0.3.1 (Release date: 2014-07-11) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // --> FOAM FATAL ERROR: funkySetFields: time/latestTime option is required From function main() in file funkySetFields.C at line 643. FOAM exiting |
|
July 22, 2014, 17:50 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Thanks for posting the solution to your own problem. This makes things easier for people that have the same problem.
__________________
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 |
||
August 1, 2015, 16:28 |
|
#6 |
Member
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12 |
Hi everybody,
I am quite new at Openfoam and on linux. I tried to install swak4foam but i get this error message, ah first of all i use ubuntu 14.01 LTS and OF2.2.2. I tried mant this almost everything. but here is the message, Code:
Previously compiled for OpenFOAM 2.2.2 /home/rafa/OpenFOAM/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison) Reading variables from 'swakConfiguration' Checking swak4Foam-version and generating file abort: no repository found in '/home/rafa/OpenFOAM/swak4Foam' (.hg not found)! Swak version is 0.3.2 Bison is version 2.7.12-4996 Flex is version 2.5.35 (Minor version: 35) OpenFOAM-version: Major 2 Minor 2 Patch 2 (-1 == x / 2) No change to swak4FoamParsers/foamVersion4swak.H '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakLagrangianParser.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakFunctionObjects.so' is up to date. SOURCE=writeFields/writeFieldsGeneral/writeFieldsGeneralFunctionObject.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/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/sampling/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/triSurface/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/basic/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/reactionThermo/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/specie/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/SLGThermo/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/liquids/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/liquidMixture/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/solids/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/solidMixture/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/radiation/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/regionModel/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/surfaceFilmModels/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/transportModels -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/intermediate/lnInclude -IlnInclude -I. -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/writeFieldsGeneralFunctionObject.o SOURCE=timeManipulation/timeManipulationFunctionObject/timeManipulationFunctionObject.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/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/sampling/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/triSurface/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/basic/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/reactionThermo/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/specie/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/SLGThermo/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/liquids/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/liquidMixture/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/solids/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/solidMixture/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/radiation/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/regionModel/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/surfaceFilmModels/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/transportModels -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/intermediate/lnInclude -IlnInclude -I. -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/timeManipulationFunctionObject.o SOURCE=timeManipulation/setDeltaTByTimelineFunctionObject/setDeltaTByTimelineFunctionObject.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/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/sampling/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/triSurface/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/basic/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/reactionThermo/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/specie/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/SLGThermo/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/liquids/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/liquidMixture/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/solids/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/solidMixture/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/radiation/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/regionModel/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/surfaceFilmModels/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/transportModels -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/intermediate/lnInclude -IlnInclude -I. -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/setDeltaTByTimelineFunctionObject.o SOURCE=manipulateFvSolutionFvSchemes/manipulateFvSolutionFvSchemesFunctionObject/manipulateFvSolutionFvSchemesFunctionObject.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/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/sampling/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/triSurface/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/basic/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/reactionThermo/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/specie/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/SLGThermo/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/solidProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/liquids/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/liquidMixture/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/solids/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/solidMixture/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/thermophysicalModels/radiation/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/regionModel/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/regionModels/surfaceFilmModels/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/turbulenceModels -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/transportModels -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/basic/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/lagrangian/intermediate/lnInclude -IlnInclude -I. -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/manipulateFvSolutionFvSchemesFunctionObject.o writeFields/writeFieldsGeneral/writeFieldsGeneralFunctionObject.C:60:30: fatal error: basicThermoCloud.H: No such file or directory #include "basicThermoCloud.H" ^ compilation terminated. make: *** [Make/linux64GccDPOpt/writeFieldsGeneralFunctionObject.o] Error 1 make: *** Waiting for unfinished jobs.... '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date. /usr/bin/ld: cannot find -lsimpleFunctionObjects collect2: error: ld returned 1 exit status make: *** [/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so] Error 1 '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date. Compiling swakFvOptions '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakFvOptions.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date. /usr/bin/ld: cannot find -lsimpleFunctionObjects collect2: error: ld returned 1 exit status make: *** [/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakPythonIntegration.so] Error 1 '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakMeshWaveFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date. '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakCoalCloudAdaptor.so' is up to date. Compiling user function-plugin ../Examples/UserPlugins/swakTestFunctionPlugins '/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib/libswakTestFunctionPlugin.so' is up to date. make[1]: `/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date. make[1]: `/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/fieldReport' is up to date. 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/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/finiteVolume/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/sampling/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/meshTools/lnInclude -I../../Libraries/swakPythonIntegration/lnInclude/ -I../../Libraries/simpleFunctionObjects/lnInclude/ -I../../Libraries/swak4FoamParsers/lnInclude/ -IlnInclude -I. -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OpenFOAM/lnInclude -I/home/rafa/OpenFOAM/OpenFOAM-2.2.2/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/funkyPythonPostproc.o -L/home/rafa/OpenFOAM/OpenFOAM-2.2.2/platforms/linux64GccDPOpt/lib \ -lfiniteVolume -lmeshTools -L/usr/bin -lpython2.7 -L/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/lib -lswakPythonIntegration -lsimpleFunctionObjects -lswak4FoamParsers -lOpenFOAM -ldl -lm -o /home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/funkyPythonPostproc make[1]: `/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date. make[1]: `/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date. /usr/bin/ld: cannot find -lswakPythonIntegration /usr/bin/ld: cannot find -lsimpleFunctionObjects collect2: error: ld returned 1 exit status make[1]: *** [/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/funkyPythonPostproc] Error 1 make: *** [funkyPythonPostproc] Error 2 make[1]: `/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date. make[1]: `/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/funkySetLagrangianField' is up to date. make[1]: `/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date. make[1]: `/home/rafa/OpenFOAM/rafa-2.2.2/platforms/linux64GccDPOpt/bin/funkyWarpMesh' is up to date. make: Target `application' not remade because of errors. If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/rafa/OpenFOAM/swak4Foam/Libraries (most people will be fine without setting that variable) Code:
/*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.2.2 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.2.2-9739c53ec43f Exec : funkySetFields Date : Aug 01 2015 Time : 20:26:44 Host : "rafa" PID : 31915 Case : /home/rafa nProcs : 1 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Disallowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // swakVersion: 0.3.2 (Release date: 2015-05-31) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // --> FOAM FATAL ERROR: funkySetFields: time/latestTime option is required From function main() in file funkySetFields.C at line 723. FOAM exiting thanks ang greets Rafa Marques Last edited by wyldckat; August 2, 2015 at 12:43. Reason: Added [CODE][/CODE] markers |
|
August 2, 2015, 16:21 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Rafael,
Wow, I wasn't aware about this issue in OpenFOAM 2.2... I've reported this and provided a fix for swak4Foam 0.3.2 just now: https://sourceforge.net/p/openfoam-e...swak4foam/228/ The file in attachment should help, as it's the patch provided in the bug report. To apply it, do the following steps:
Bruno
__________________
|
|
August 2, 2015, 18:04 |
|
#8 |
Member
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12 |
Hi Bruno
I Just followed your advise in another thread,I now I have swak4foam 0.2.4 compiled but I will update it with your instructions, thanks again! Greets an thanks a lot!!! Rafa Marques |
|
August 3, 2015, 09:27 |
|
#9 |
Member
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12 |
Hi Bruno,
thanks a lot I compiled Swak4Foam 0.3.2 on OpenFoam 2.2.2 with success! This patch is magical! ah and thanks for the detailed installation instruction! I get so stucked without cfd-online! Kind regards Rafa Marques |
|
October 13, 2015, 14:06 |
swak4foam compilation or compatibility error/bug?
|
#10 |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 13 |
Dear Bruno, Bernhard and Rafa,
I am stuck with a groovyBC problem, which I think is related to compilation issues, hope you can help me. I am using ubuntu 14.04 LTS and openfoam extend 3.1 from source (in $HOME), tried also extend 3.0 from source (in $HOME), as well as extend 3.1 from binary (/opt/...), as well as recompiling groovyBC or swak4foam from the extend thirdparty dirs, as well as from downloaded swak4foam sources. I tried bison version 3.x and bison version 2.7 from thirdparty packages dir and I tried http://www.cfd-online.com/Forums/ope...end-3-0-a.html with the extend 3.1 version from source in the home directory without sudo rights (it linked successfully, but swak4foam did not compile errorlessly) ... but I have everywhere the same problem with groovyBC: in file 0/p when using rhoSonicFoam Code:
transducer { type groovyBC; valueExpression "10001315." } Code:
transducer { type fixedValue; value uniform 10001315; } I attached a minimum example (with rhoSonicFoam containing a few more "Info <<" lines). I would like to also attach the output of Code:
./AllMake.stage5 &>log.stage5.txt Code:
$HOME/foam/foam-extend-3.1/ThirdParty/packages/bison-2.7/platforms/linux64GccDPOpt/bin/bison Code:
Making dependency list for source file SubsetValueExpressionParser.yy could not open file DataEntry.H for source file makeSwakDataEntry.C could not open file FieldValueExpressionParser.tab.hh for source file FieldValueExpressionParser.yy could not open file mappedFvPatch.H for source file FieldValueExpressionParser.yy could not open file mappedWallFvPatch.H for source file FieldValueExpressionParser.yy Another idea is that the line Code:
p.boundaryField().types() Does anyone have an idea? Am I doing something wrong? Best regards, Max |
|
October 17, 2015, 16:06 |
|
#11 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings Max,
You were really close to the solution and thanks to your deductions I managed to be a bit faster in finding the solution:
As for the messages you got while building swak4Foam, those in particular are normal, because swak4Foam is able to be built with various OpenFOAM versions, which depend on different files, which are only found when it's gathering the dependency lists, hence the warnings about not finding some files. Best regards, Bruno
__________________
|
|
October 17, 2015, 17:11 |
|
#12 |
Member
Join Date: Sep 2013
Posts: 46
Rep Power: 13 |
Hi Bruno!
Thanks a lot!!! While you wrote the answer I also found someone explaining the line Code:
p.boundaryField().types() http://www.idurun.com/2008/05/21/son...dent-pressure/ So it is supposed to mean that the rho-Field which has the constructor with the above line uses the same boundary types that were set for the p-Field in the file 0/p, right? So it all made sense. But I didn't think of creating a 0/rho file, so thanks a lot for that suggestion! Actually it's quite good to know this about constructors! |
|
November 18, 2015, 18:12 |
|
#13 | |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
Anyone have any other ideas?
The only alias in my bashrc is Code:
alias of230='source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=8 WM_MPLIB=SYSTEMOPENMPI' Any help for this stupid error will be greatly appreciated! Code:
Previously compiled for OpenFOAM /home/sandra/OpenFOAM/sandra-2.3.0/swak4Foam/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 abort: no repository found in '/home/sandra/OpenFOAM/sandra-2.3.0/swak4Foam' (.hg not found)! Swak version is 0.3.2 ./Allwmake: line 61: wmake: command not found 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 sandra@sandra-ThinkCentre-M91p:~/OpenFOAM/sandra-2.3.0/swak4Foam$ export PATH=$PWD/bison/bin:$PATH Sandra Quote:
|
||
November 19, 2015, 19:38 |
|
#14 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answer:
Quote:
If it doesn't tell you the path to where wmake is located, then I need more details. In such a case, please run the following command: Code:
cat ~/.bashrc |
||
November 20, 2015, 13:16 |
|
#15 |
Member
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 12 |
Wow, that worked! Thanks a lot (I wonder what I would do without you).
So the issue was that I was trying to install swak4Foam in the folder advised in the instructions when my "wmake" was elsewhere /home/sandra/OpenFOAM/OpenFOAM-2.3.0/wmake/wmake but I think that that instruction should be edited to the "folder where wmake is" as per Bruno's suggestion above. Best, Sandra |
|
November 21, 2015, 16:07 |
|
#16 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Sandra,
Quote:
The missing detail was that you needed to run the following command whenever you start a new terminal: Code:
of230 Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=8 WM_MPLIB=SYSTEMOPENMPI If you prefer to only use a single version of OpenFOAM and don't want to worry about any other versions, then you can edit the file "~/.bashrc" and change this line: Code:
alias of230='source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=8 WM_MPLIB=SYSTEMOPENMPI' Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=8 WM_MPLIB=SYSTEMOPENMPI Best regards, Bruno |
||
July 3, 2017, 03:38 |
swak4foam patch problem
|
#17 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Dear Rafael:-
I got the following error after running ( patch -p1 < ~/Downloads/writeFieldsGeneralFunctionObject.C.patch): patching file Libraries/simpleFunctionObjects/writeFields/writeFieldsGeneral/writeFieldsGeneralFunctionObject.C Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] yes Hunk #1 FAILED at 57. Hunk #2 FAILED at 161. 2 out of 2 hunks FAILED -- saving rejects to file Libraries/simpleFunctionObjects/writeFields/writeFieldsGeneral/writeFieldsGeneralFunctionObject.C.rej so what to do ? Quote:
|
||
July 3, 2017, 06:49 |
|
#18 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
__________________
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 |
||
July 3, 2017, 07:00 |
|
#19 | |
Member
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 11 |
Quote:
I have installed swak4foam for OpenFoam 2.4 successfully. However, when checked it by typing funkySetFields in terminal, I got the following :- /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.4.0-dcea1e13ff76 Exec : funkySetFields Date : Jul 02 2017 Time : 20:38:23 Host : "ali-HP-ENVY-TS-15-Notebook-PC" PID : 21168 Case : /home/ali/OpenFOAM/ali-2.4.0 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 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // swakVersion: 0.4.1 (Release date: 2017-05-31) // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // --> FOAM FATAL ERROR: funkySetFields: time/latestTime option is required From function main() in file funkySetFields.C at line 759. FOAM exiting I struggled for long time to get it work but it still showing FOAM exiting. So, do you ( or any other foamer) have any suggestions ? Thanks |
||
July 3, 2017, 08:31 |
|
#20 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The reason why funkySetFields refuses to guess which time you want to use is that it is possibly destructive (it may overwrite your old data) and I don't want people running around crying "I didn't know it writes to the last time. Now my results are gone"
__________________
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 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Problem in installation of OpenFOAM-2.3.x | Parisa_Khiabani | OpenFOAM Installation | 5 | December 4, 2014 10:04 |
[Other] Problem in Open foam installation in ubuntu 14.04 | zannatul | OpenFOAM Installation | 2 | November 3, 2014 21:56 |
RHEL 6.3 Installation problem | Turbulent | STAR-CCM+ | 0 | September 3, 2014 08:01 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |
[swak4Foam] installation problem: "./Allwmake: ... [[: not found" | Rajarshi | OpenFOAM Community Contributions | 8 | May 13, 2013 09:05 |