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

[swak4Foam] Error installing swak4Foam

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

Like Tree26Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 1, 2013, 15:52
Default
  #41
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 fernando_fec View Post
I have the same problem, or similar at least, and I'm using bison 3.0 (the only one available in the repos of ArchLinux) The full error log is attached in the .zip
Bison 3.0 is rather new (this July) and seems to justify its jump in version number with massive changes.

I only did one exploratory compilation with it which seems to show that there will be critically changes to the grammar required. I'm not even sure whether it will be possible to support 2.x and 3.x with the same source files. Due to time constraints and as I didn't expect any Linux-distributions that are used for work to incorporate this yet (as a change of bison might break lots of things) I didn't follow up yet.

For the time being I recommend using bison 2.x. I will eventually have a look at compiling swak with bison 3.0 but as long as the majority of the enterprise Linuxes has bison 2.x it will be an absolute priority to support it.

Of course if someone finds a way to compile swak with bison 3.x I will gladly accept the patches (IF THEY DON'T BREAK COMPILATION WITH BISON 2.x)
__________________
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   October 1, 2013, 16:12
Default
  #42
New Member
 
Fernando
Join Date: Sep 2013
Posts: 4
Rep Power: 12
fernando_fec is on a distinguished road
Well, thanks for the heads up, I'll then compile bison 2.7 and use it. Also, maybe it would be a good idea to include this in the readme, I understand bison 3.0 may not be that widely used, but been there doesn't hurt anybody

Thanks for you time
fernando_fec is offline   Reply With Quote

Old   October 2, 2013, 08:57
Default
  #43
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
I use OF 2.2.0
I install flex and bison but I have problems with swak4foam itself
this is the error
what should I do?
any help would be appreciated

br
Mohsen
Attached Files
File Type: txt error.txt (1.3 KB, 16 views)
m5m5kh is offline   Reply With Quote

Old   October 2, 2013, 09:08
Default
  #44
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by m5m5kh View Post
I use OF 2.2.0
I install flex and bison but I have problems with swak4foam itself
this is the error
what should I do?
any help would be appreciated
Quick answer: you got the ZIP file from my Github repository. Therefore, the file permissions are broken. Try:
Code:
chmod -R +x All* *.py
__________________
wyldckat is offline   Reply With Quote

Old   October 2, 2013, 09:14
Default
  #45
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
ok Bruno
I will do as you said
m5m5kh is offline   Reply With Quote

Old   October 2, 2013, 09:27
Default
  #46
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: you got the ZIP file from my Github repository. Therefore, the file permissions are broken. Try:
Code:
chmod -R +x All* *.py
It said " there is no such file or directory"
m5m5kh is offline   Reply With Quote

Old   October 2, 2013, 09:35
Default
  #47
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
Try:
Code:
(find . -name "All*" | find . -name "*.py") | xargs chmod +x
__________________
wyldckat is offline   Reply With Quote

Old   October 2, 2013, 09:53
Default
  #48
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Try:
Code:
(find . -name "All*" | find . -name "*.py") | xargs chmod +x
nothing!!!
must I do some changes in swakconfig.debian file and swakconfig.example file Bruno?
I get confused
m5m5kh is offline   Reply With Quote

Old   October 2, 2013, 10:09
Default
  #49
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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
@Mohsen: Please describe in detail how exactly you have downloaded, unpacked and tried to build swak4Foam.
__________________
wyldckat is offline   Reply With Quote

Old   October 2, 2013, 11:26
Default
  #50
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
@Mohsen: Please describe in detail how exactly you have downloaded, unpacked and tried to build swak4Foam.
Ok!
I checked whether I have flex on my system,the answer is yes
then I used " sudo bash ./configure" because the "permission error" occurred.
then " sudo wmake"
and bison 2.7 is installed
then I extract your file on my system and use " sudo ./Allwmake" and an error occurred which was shown in the last reply thread of mine
m5m5kh is offline   Reply With Quote

Old   October 2, 2013, 11:52
Default
  #51
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by m5m5kh View Post
Ok!
I checked whether I have flex on my system,the answer is yes
then I used " sudo bash ./configure" because the "permission error" occurred.
then " sudo wmake"
and bison 2.7 is installed
then I extract your file on my system and use " sudo ./Allwmake" and an error occurred which was shown in the last reply thread of mine
That explains it. The files have been tampered by the root account, making it impossible to use in the normal account.
  1. Remove the folder "swak4foam-OF22X" with the sudo command:
    Code:
    sudo rm -r swak4foam-OF22X
  2. Download and unzip the original package as normal user:
    Code:
    wget https://github.com/wyldckat/swak4foam/archive/master.zip
    unzip master
  3. Build it as normal user:
    Code:
    cd swak4foam-OF22X
    ./Allwmake
Seif Kefi likes this.
__________________
wyldckat is offline   Reply With Quote

Old   October 2, 2013, 14:09
Default
  #52
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
That explains it. The files have been tampered by the root account, making it impossible to use in the normal account.
  1. Remove the folder "swak4foam-OF22X" with the sudo command:
    Code:
    sudo rm -r swak4foam-OF22X
  2. Download and unzip the original package as normal user:
    Code:
    wget https://github.com/wyldckat/swak4foam/archive/master.zip
    unzip master
  3. Build it as normal user:
    Code:
    cd swak4foam-OF22X
    ./Allwmake
Hi Bruno
OK! thanks for your hints,I will follow your steps.
m5m5kh is offline   Reply With Quote

Old   October 2, 2013, 15:41
Default
  #53
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
Hi dear Bruno
I think it is done!
you are awesome
It takes too long to compile the code( about 10 mins)
I use a second ./Allwmake and attached the result in the following file
but when I used groovy bc as a type of bcs OpenFOAM cant find it
please see the error

best regards
Mohsen
Attached Files
File Type: txt allwmake.txt (4.7 KB, 7 views)
File Type: txt error bc.txt (3.9 KB, 3 views)

Last edited by m5m5kh; October 3, 2013 at 04:51.
m5m5kh is offline   Reply With Quote

Old   October 3, 2013, 05:07
Default
  #54
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
Quote:
Originally Posted by m5m5kh View Post
Hi dear Bruno
I think it is done!
you are awesome
It takes too long to compile the code( about 10 mins)
I use a second ./Allwmake and attached the result in the following file
but when I used groovy bc as a type of bcs OpenFOAM cant find it
please see the error

best regards
Mohsen
Sorry
I forgot to add this lines to controldict
it is OK now



libs (
"libOpenFOAM.so"
"libgroovyBC.so"

"libsimpleSwakFunctionObjects.so"
"libswakFunctionObjects.so"
) ;


thanks again Bruno
m5m5kh is offline   Reply With Quote

Old   October 3, 2013, 07:18
Default
  #55
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 m5m5kh View Post
Hi dear Bruno
I think it is done!
you are awesome
I agree
Quote:
Originally Posted by m5m5kh View Post
It takes too long to compile the code( about 10 mins)
I disagree. Compiling swak can take muuuuch longer with the wrong compiler and full optimization
__________________
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   October 3, 2013, 08:46
Default
  #56
Senior Member
 
mohsen kh
Join Date: Jan 2013
Location: Iran
Posts: 125
Rep Power: 14
m5m5kh is on a distinguished road
Quote:
Originally Posted by gschaider View Post
I agree

I disagree. Compiling swak can take muuuuch longer with the wrong compiler and full optimization
Yes Bernhard.thanks for your great works.
I under-estimate the time, sure.It takes much longer
m5m5kh is offline   Reply With Quote

Old   October 5, 2013, 03:08
Default
  #57
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 to all!

I've updated the instructions on the "Building" section: http://openfoamwiki.net/index.php/Co...4Foam#Building
The "tip" indicates how you can build swak4Foam with multi-core capabilities, therefore reducing the time needed to build it.
Note: It does not affect how it will operate afterwords, it only affects the building process.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   December 2, 2013, 11:00
Default Error installing swak4Foam
  #58
New Member
 
Feng
Join Date: Oct 2011
Posts: 6
Rep Power: 14
fg118 is on a distinguished road
Hi all,
When I install swak4foam, there are some errors in it. Can somebody help me to sort it out? The log file for second ./Allwmake is below.

./Allwmake
No 'swakConfiguration'. Python etc won't work
Checking swak4Foam-version and generating file
Swak version is 0.2.4
Bison is version 2.5
Flex is version 2.5.35 (Minor version: 35)
OpenFOAM-version: Major 2 Minor 2 Patch 1 (-1 == x)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswak4FoamParsers.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libgroovyBC.so' is up to date.
SOURCE=manipulateFieldFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -I/opt/openfoam221/src/sampling/lnInclude -I/opt/openfoam221/src/fileFormats/lnInclude -I/opt/openfoam221/src/triSurface/lnInclude -I/opt/openfoam221/src//postProcessing/functionObjects/utilities/lnInclude -I/opt/openfoam221/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/manipulateFieldFunctionObject.o
In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
from manipulateFieldFunctionObject.H:50,
from manipulateFieldFunctionObject.C:37:
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::manipulateField]’:
manipulateFieldFunctionObject.C:51:1: instantiated from here
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:215:9: error: ‘class Foam::manipulateField’ has no member named ‘timeSet’
make: *** [Make/linux64GccDPOpt/manipulateFieldFunctionObject.o] Error 1
SOURCE=misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -I/opt/openfoam221/src/sampling/lnInclude -I/opt/openfoam221/src/triSurface/lnInclude -I/opt/openfoam221/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam221/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam221/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam221/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam221/src/regionModels/regionModel/lnInclude -I/opt/openfoam221/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam221/src/turbulenceModels -I/opt/openfoam221/src/transportModels -I/opt/openfoam221/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/readAndUpdateFieldsFunctionObject.o
In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.H:50,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:36:
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::readAndUpdateFields]’:
misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:50:1: instantiated from here
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:215:9: error: ‘class Foam::readAndUpdateFields’ has no member named ‘timeSet’
make: *** [Make/linux64GccDPOpt/readAndUpdateFieldsFunctionObject.o] Error 1
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakTopoSources.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakSourceFields.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libgroovyStandardBCs.so' is up to date.
SWAK_PYTHON_INCLUDE not defined .... no Python-Integration
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakMeshQualityFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakLocalCalculationsFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakRandomFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakThermoTurbFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakTransportTurbFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakSurfacesAndSetsFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakVelocityFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/lib/libswakRadiationModelFunctionPlugin.so' is up to date.
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/calcNonUniformOffsetsForMapped'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/calcNonUniformOffsetsForMapped' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/calcNonUniformOffsetsForMapped'
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkyDoCalc'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/funkyDoCalc' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkyDoCalc'
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkySetBoundaryField'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/funkySetBoundaryField' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkySetBoundaryField'
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkySetFields'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/funkySetFields' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/funkySetFields'
make[1]: Entering directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/replayTransientBC'
make[1]: `/home/fg312/OpenFOAM/fg312-2.2.1/platforms/linux64GccDPOpt/bin/replayTransientBC' is up to date.
make[1]: Leaving directory `/home/fg312/OpenFOAM/swak4foam-master/Utilities/replayTransientBC'


If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/fg312/OpenFOAM/swak4foam-master/Libraries (most people will be fine without setting that variable)


If I ignore those, when I use funkySetField with expression
"pos().y <= 0.005*cos(pi*(pos().x+0.05)/0.1) ? 1 : 0";
to define my water free surface, it is fine; but with expression
"average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))";
there are fatal error.

--> FOAM FATAL ERROR:
Parser Error for driver FieldValueExpressionDriver at "1.28" :"field � not existing or of wrong type"
"average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))"
^
-----------------------------|

Context of the error:


- Driver constructed from scratch
Evaluating expression "average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))"


From function parsingValue
in file lnInclude/CommonValueExpressionDriverI.H at line 1081.

FOAM exiting
fg118 is offline   Reply With Quote

Old   December 2, 2013, 18:19
Default
  #59
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 fg118 View Post
Hi all,
When I install swak4foam, there are some errors in it. Can somebody help me to sort it out? The log file for second ./Allwmake is below.

$SOURCE -o Make/linux64GccDPOpt/manipulateFieldFunctionObject.o
In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
from manipulateFieldFunctionObject.H:50,
from manipulateFieldFunctionObject.C:37:
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::manipulateField]’:
manipulateFieldFunctionObject.C:51:1: instantiated from here
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:215:9: error: ‘class Foam::manipulateField’ has no member named ‘timeSet’
make: *** [Make/linux64GccDPOpt/manipulateFieldFunctionObject.o] Error 1
SOURCE=misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I../swak4FoamParsers/lnInclude -I/opt/openfoam221/src/finiteVolume/lnInclude -I/opt/openfoam221/src/meshTools/lnInclude -I/opt/openfoam221/src/sampling/lnInclude -I/opt/openfoam221/src/triSurface/lnInclude -I/opt/openfoam221/src/thermophysicalModels/basic/lnInclude -I/opt/openfoam221/src/thermophysicalModels/reactionThermo/lnInclude -I/opt/openfoam221/src/thermophysicalModels/specie/lnInclude -I/opt/openfoam221/src/thermophysicalModels/SLGThermo/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/solidMixtureProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/liquidMixtureProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/solidProperties/lnInclude -I/opt/openfoam221/src/thermophysicalModels/properties/liquidProperties/lnInclude -I/opt/openfoam221/src/regionModels/regionModel/lnInclude -I/opt/openfoam221/src/regionModels/surfaceFilmModels/lnInclude -I/opt/openfoam221/src/turbulenceModels -I/opt/openfoam221/src/transportModels -I/opt/openfoam221/src/lagrangian/basic/lnInclude -IlnInclude -I. -I/opt/openfoam221/src/OpenFOAM/lnInclude -I/opt/openfoam221/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/readAndUpdateFieldsFunctionObject.o
In file included from /opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.H:225:0,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.H:50,
from misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:36:
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C: In member function ‘bool Foam::OutputFilterFunctionObject<OutputFilter>::ti meSet() [with OutputFilter = Foam::readAndUpdateFields]’:
misc/readAndUpdateFields/readAndUpdateFieldsFunctionObject.C:50:1: instantiated from here
/opt/openfoam221/src/OpenFOAM/lnInclude/OutputFilterFunctionObject.C:215:9: error: ‘class Foam::readAndUpdateFields’ has no member named ‘timeSet’
This was caused by a change in the interface of functionObjects (in OpenFOAM).
This was fixed some time ago in the development-version (of swak) but not yet in the released version (will come with the next release). Until then you'll have to pull the development version and compile that

Quote:
Originally Posted by fg118 View Post
If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/fg312/OpenFOAM/swak4foam-master/Libraries (most people will be fine without setting that variable)


If I ignore those, when I use funkySetField with expression
"pos().y <= 0.005*cos(pi*(pos().x+0.05)/0.1) ? 1 : 0";
to define my water free surface, it is fine; but with expression
"average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))";
there are fatal error.

--> FOAM FATAL ERROR:
Parser Error for driver FieldValueExpressionDriver at "1.28" :"field � not existing or of wrong type"
"average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))"
^
-----------------------------|

Context of the error:


- Driver constructed from scratch
Evaluating expression "average(fpos().y < surf(0.) ? surf(1.0) : surf(0.))"


From function parsingValue
in file lnInclude/CommonValueExpressionDriverI.H at line 1081.

FOAM exiting
It's hard to say where the ^ is pointing too. Please use the CODE-tag for output. That (amongst other things) uses a fixed-width font and that makes the terminal-output useful.

The � in your output: does it really look like this?

My suspicion is that there is a character in the expression-string that the Lexer can not interpret. I see that you use whitespaces in your expression-string. That should be OK, but could you remove the spaces and try it again?
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   December 3, 2013, 07:47
Default
  #60
New Member
 
Feng
Join Date: Oct 2011
Posts: 6
Rep Power: 14
fg118 is on a distinguished road
Quote:
Originally Posted by gschaider View Post
This was caused by a change in the interface of functionObjects (in OpenFOAM).
This was fixed some time ago in the development-version (of swak) but not yet in the released version (will come with the next release). Until then you'll have to pull the development version and compile that


It's hard to say where the ^ is pointing too. Please use the CODE-tag for output. That (amongst other things) uses a fixed-width font and that makes the terminal-output useful.

The � in your output: does it really look like this?

My suspicion is that there is a character in the expression-string that the Lexer can not interpret. I see that you use whitespaces in your expression-string. That should be OK, but could you remove the spaces and try it again?
Dear Bernhard,

Thank you very much for you reply.
I will try to download the development version and compile it later.

For the second question, once I remove the whitespaces in the expression-string, the different error appeared (see below).

Create mesh for time = 0

Time = 0
Using funkySetFieldsDict

Part: setLower
Modifying field alpha1 of type volScalarField

Putting "average(fpos().y<surf(0.)?surf(1.0):surf(0.)) " into field alpha1 at t = "0" if condition "true" is true
Keeping patches unaltered

--> FOAM FATAL ERROR:
inconsistent types: alpha1 is volScalarField while the expression evaluates to a surfaceScalarField

From function doAnExpression()
in file funkySetFields.C at line 359.

FOAM exiting
fg118 is offline   Reply With Quote

Reply

Tags
compile error, swak4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 12:59
[swak4Foam] and twoPhaseEulerFoam mnikku OpenFOAM Community Contributions 1 February 19, 2016 06:21
source term in near wall cell rajcfd OpenFOAM Pre-Processing 5 February 1, 2016 11:31
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 kobayashi OpenFOAM Community Contributions 2 January 5, 2014 18:33
[swak4Foam] fails in parallel with -otherTime? Phicau OpenFOAM Community Contributions 3 June 26, 2013 14:00


All times are GMT -4. The time now is 02:25.