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

[swak4Foam] swak4foam >>>> INSTALLATION PROBLEM

Register Blogs Community New Posts Updated Threads Search

Like Tree10Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2014, 12:33
Default swak4foam >>>> INSTALLATION PROBLEM
  #1
Member
 
stevem garcia
Join Date: Jun 2014
Posts: 34
Rep Power: 11
steven123 is on a distinguished road
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
2º STEP
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)
3º STEP
Code:
cd swak4Foam
4º STEP
Code:
./Allwmake
AND GIVES THE FOLLOWING ERROR...:

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$
Anyone know how to fix it?

THANKS FRIENDS FOR ALL ATTENTION!
Luttappy likes this.
steven123 is offline   Reply With Quote

Old   July 15, 2014, 15:21
Default
  #2
Member
 
stevem garcia
Join Date: Jun 2014
Posts: 34
Rep Power: 11
steven123 is on a distinguished road
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
steven123 is offline   Reply With Quote

Old   July 16, 2014, 18:29
Default
  #3
Member
 
stevem garcia
Join Date: Jun 2014
Posts: 34
Rep Power: 11
steven123 is on a distinguished road
Please, Anyone?
steven123 is offline   Reply With Quote

Old   July 16, 2014, 19:36
Default
  #4
Member
 
stevem garcia
Join Date: Jun 2014
Posts: 34
Rep Power: 11
steven123 is on a distinguished road
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
Elham and Luttappy like this.
steven123 is offline   Reply With Quote

Old   July 22, 2014, 16:50
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by steven123 View Post
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
Just became aware of this because I was on vacation.

Thanks for posting the solution to your own problem. This makes things easier for people that have the same problem.
vs1 likes this.
__________________
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   August 1, 2015, 15:28
Default
  #6
Member
 
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12
rafa13 is on a distinguished road
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)
and i don't know to fix this....when i write funkySetFields in the terminal i get OK
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
but i am not uble to use Swak4 Foam maybe some body have a Ideia??


thanks ang greets

Rafa Marques

Last edited by wyldckat; August 2, 2015 at 11:43. Reason: Added [CODE][/CODE] markers
rafa13 is offline   Reply With Quote

Old   August 2, 2015, 15:21
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
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:
  1. Download the attached file "writeFieldsGeneralFunctionObject.C.patch".
  2. In the terminal, go to the folder where you have the swak4Foam source code and run the following command:
    Code:
    patch -p1 < ~/Downloads/writeFieldsGeneralFunctionObject.C.patch
    Where I'm assuming you downloaded the file into the folder "~/Downloads/", so change it to your need
  3. Now you can run "Allwmake" once again, as you did before.
Best regards,
Bruno
Attached Files
File Type: patch writeFieldsGeneralFunctionObject.C.patch (964 Bytes, 254 views)
rafa13, dkjiao and Aabadani like this.
__________________
wyldckat is offline   Reply With Quote

Old   August 2, 2015, 17:04
Default
  #8
Member
 
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12
rafa13 is on a distinguished road
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
rafa13 is offline   Reply With Quote

Old   August 3, 2015, 08:27
Default
  #9
Member
 
Rafael Marques
Join Date: Mar 2014
Location: Almada/Mülheim a.d. Ruhr, Portugal/Germany
Posts: 67
Rep Power: 12
rafa13 is on a distinguished road
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
wyldckat likes this.
rafa13 is offline   Reply With Quote

Old   October 13, 2015, 13:06
Default swak4foam compilation or compatibility error/bug?
  #10
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 12
ma-tri-x is on a distinguished road
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."
     }
does not work. The maximum value of p is the value in the internal field (101315 which is < 10001315) and the density field gets killed to 0 in the first "solve" routine and therefore I get a floating point exception in the next solve routine. But
Code:
transducer
     {
         type     fixedValue;
         value uniform 10001315;
     }
works well.

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
which was executed using
Code:
$HOME/foam/foam-extend-3.1/ThirdParty/packages/bison-2.7/platforms/linux64GccDPOpt/bin/bison
in the respective ThirdParty dir, but it's too large. The first error in this file is:
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
There are a lot of "could not open" messages...

Another idea is that the line
Code:
p.boundaryField().types()
in the constructor of rho in createFields.H of rhoSonicFoam might cause the problem. Is "Type" of p there compatible with groovyBC ?

Does anyone have an idea? Am I doing something wrong?

Best regards,
Max
Attached Files
File Type: zip 0005_minimumExample.zip (146.5 KB, 2 views)
ma-tri-x is offline   Reply With Quote

Old   October 17, 2015, 15:06
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
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:
  1. You must modify in "createFields.H" how the "rho" field is started:
    Code:
        volScalarField rho
        (
            IOobject
            (
                "rho",
                runTime.timeName(),
                mesh,
                IOobject::MUST_READ,
                IOobject::AUTO_WRITE
            ),
            mesh
        );
    Don't forget to run wmake.
  2. Then you must create the field file "0/rho" with the following content:
    Code:
    /*--------------------------------*- C++ -*----------------------------------*\
    | =========                 |                                                 |
    | \\      /  F ield         | foam-extend: Open Source CFD                    |
    |  \\    /   O peration     | Version:     3.1                                |
    |   \\  /    A nd           | Web:         http://www.extend-project.de       |
    |    \\/     M anipulation  |                                                 |
    \*---------------------------------------------------------------------------*/
    FoamFile
    {
        version     2.0;
        format      ascii;
        class       volScalarField;
        location    "0";
        object      rho;
    }
    // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
    
    dimensions      [1 -3 0 0 0 0 0];
    
    internalField   uniform 1.2042092;
    
    boundaryField
    {
        front
        {
            type            wedge;
        }
        back
        {
            type            wedge;
        }
        side
        {
            type            zeroGradient;
        }
        transducer
        {
            type            groovyBC;
            value           uniform 1.2042092;
            valueExpression "1.2042092";
        }
        bottom
        {
            type            fixedValue;
            value           uniform 1.2042092;
        }
        top
        {
            type            zeroGradient;
        }
        axis
        {
            type            empty;
        }
    }
    
    
    // ************************************************************************* //
  3. The field file was originally generated because I ran a previous build with this:
    Code:
        volScalarField rho
        (
            IOobject
            (
                "rho",
                runTime.timeName(),
                mesh
            ),
            psi*p,
            p.boundaryField().types()
        );
    
    rho.write();
    Which created the file "0/rho.gz", which I uncompressed like this:
    Code:
    gunzip 0/rho.gz

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
__________________
wyldckat is offline   Reply With Quote

Old   October 17, 2015, 16:11
Default
  #12
Member
 
Join Date: Sep 2013
Posts: 46
Rep Power: 12
ma-tri-x is on a distinguished road
Hi Bruno!

Thanks a lot!!!
While you wrote the answer I also found someone explaining the line
Code:
 p.boundaryField().types()
which I didn't know before. Found the answer here:
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!
ma-tri-x is offline   Reply With Quote

Old   November 18, 2015, 17:12
Default
  #13
Member
 
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 11
sabago is on a distinguished road
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'
I'm using OpenFOAM 2.3 and Ubuntu 14.04 and I've tried 5 different times, (including OP's outlined method above) to reinstall it to no avail (I had it before but had to reinstall my OF and lost it).

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
Best,
Sandra
Quote:
Originally Posted by steven123 View Post
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
sabago is offline   Reply With Quote

Old   November 19, 2015, 18:38
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 answer:
Quote:
Originally Posted by sabago View Post
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'
I'm using OpenFOAM 2.3 and Ubuntu 14.04 and I've tried 5 different times, (including OP's outlined method above) to reinstall it to no avail (I had it before but had to reinstall my OF and lost it).
  1. Start a new terminal window.
  2. Run:
    Code:
    of230
    which will use the alias command that you defined in your "~/.bashrc" file.
  3. Try checking if wmake is found, by running:
    Code:
    which wmake
  4. If it tells you the path to where it is, then try building swak4Foam. For example, it should tell you something like this:
    Code:
    /home/ofuser/OpenFOAM/OpenFOAM-2.3.0/wmake/wmake

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
wyldckat is offline   Reply With Quote

Old   November 20, 2015, 12:16
Default
  #15
Member
 
Sandra
Join Date: Oct 2014
Posts: 58
Rep Power: 11
sabago is on a distinguished road
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
sabago is offline   Reply With Quote

Old   November 21, 2015, 15:07
Default
  #16
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Hi Sandra,

Quote:
Originally Posted by sabago View Post
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.
Sorry, I should have been clearer, but the other day I was in a hurry.

The missing detail was that you needed to run the following command whenever you start a new terminal:
Code:
of230
This is an alias command that will executed the associated command, namely:
Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=8 WM_MPLIB=SYSTEMOPENMPI
The instructions on the wiki, such as the ones here: http://openfoamwiki.net/index.php/In...M-2.3.0/Ubuntu - instruct the person reading the instructions to use this alias because this makes it possible to easily have more than one OpenFOAM version installed.

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'
To this:
Code:
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=8 WM_MPLIB=SYSTEMOPENMPI
Save and close the file. Now whenever you start a new terminal, OpenFOAM 2.3.0 will always be ready to be used.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   July 3, 2017, 02:38
Default swak4foam patch problem
  #17
Member
 
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 10
alinuman15 is on a distinguished road
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:
Originally Posted by wyldckat View Post
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:
  1. Download the attached file "writeFieldsGeneralFunctionObject.C.patch".
  2. In the terminal, go to the folder where you have the swak4Foam source code and run the following command:
    Code:
    patch -p1 < ~/Downloads/writeFieldsGeneralFunctionObject.C.patch
    Where I'm assuming you downloaded the file into the folder "~/Downloads/", so change it to your need
  3. Now you can run "Allwmake" once again, as you did before.
Best regards,
Bruno
alinuman15 is offline   Reply With Quote

Old   July 3, 2017, 05:49
Default
  #18
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alinuman15 View Post
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 ?
Are you sure that the patch is still necessary? As mentioned in the bug-tracker entry in the message you quoted it is incorporated into swak for almost 2 years. So it should be in the current release and in the relase before that (at least)
__________________
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   July 3, 2017, 06:00
Default
  #19
Member
 
Ali Noaman Ibrahim
Join Date: Sep 2015
Location: US_Chicago
Posts: 97
Rep Power: 10
alinuman15 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Are you sure that the patch is still necessary? As mentioned in the bug-tracker entry in the message you quoted it is incorporated into swak for almost 2 years. So it should be in the current release and in the relase before that (at least)
Thank you so much for replying!
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
alinuman15 is offline   Reply With Quote

Old   July 3, 2017, 07:31
Default
  #20
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by alinuman15 View Post
Thank you so much for replying!
I have installed swak4foam for OpenFoam 2.4 successfully. However, when checked it by typing funkySetFields in terminal, I got the following :-
<snip>
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
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
That is not an installation/compilation problem but a problem with how you're using it. funkySetFields refuses to guess which time you want to use it on. So it asks you to specify it. Either with something like "-time 0" if you want to set initial conditions or with "-latestTime" if you want the latest time (these are the regular OpenFOAM-options so things like time-ranges will work too)

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
gschaider is offline   Reply With Quote

Reply


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
[OpenFOAM.org] Problem in installation of OpenFOAM-2.3.x Parisa_Khiabani OpenFOAM Installation 5 December 4, 2014 09:04
[Other] Problem in Open foam installation in ubuntu 14.04 zannatul OpenFOAM Installation 2 November 3, 2014 20:56
RHEL 6.3 Installation problem Turbulent STAR-CCM+ 0 September 3, 2014 07:01
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 13:00
[swak4Foam] installation problem: "./Allwmake: ... [[: not found" Rajarshi OpenFOAM Community Contributions 8 May 13, 2013 08:05


All times are GMT -4. The time now is 06:41.