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

[swak4Foam] swak4Foam on OpenFoam-v2006?

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

Like Tree4Likes
  • 3 Post By petros
  • 1 Post By gschaider

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 8, 2020, 13:48
Default swak4Foam on OpenFoam-v2006?
  #1
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 49
Rep Power: 4
petros is on a distinguished road
Hi all,

Is there any chance to compile swak4Foam for the new OpenFOAM-v2006 release?

I gave it a try but with no success:

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam
cd swak4Foam
./AllwmakeAll > log.make 2>&1
The log.make file reads:

Code:
Current OpenFOAM version is v2006.
Previously compiled for OpenFOAM (v2006)

/home/petros/OpenFOAM/petros-v2006/swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Looking for Python 2
Found Python 2.7
Configuring Python 2.7
Using python2.7 at /usr/bin/python2.7-config for python2
Looking for Python 3
Using our own Lua at /home/petros/OpenFOAM/petros-v2006/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 2020.06.0
hg info: 76087ce82a32 tip
No 'bear' installed
Bison: /home/petros/OpenFOAM/petros-v2006/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/petros/OpenFOAM/petros-v2006/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 2006 Minor 0 Patch 0 (-1 == x / 0) Fork: com
No change to swak4FoamParsers/foamVersion4swak.H
Best,
Petros
petros is offline   Reply With Quote

Old   July 20, 2020, 14:27
Default Still trying to compile swak4Foam in v2006
  #2
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 49
Rep Power: 4
petros is on a distinguished road
Still trying to compile swak4Foam in v2006 after Bernhard announced that it is now fully functional.

I get the following fatal error:

Code:
In file included from facInterpolationFunctionPlugin.C:33:0:
../../swakFiniteArea/lnInclude/FaFieldValueExpressionDriver.H:49:47: fatal error: FaFieldValueExpressionParser.tab.hh: No such file or directory
 #include "FaFieldValueExpressionParser.tab.hh"
You may have a look at the log.make file here
petros is offline   Reply With Quote

Old   November 12, 2020, 10:54
Default
  #3
New Member
 
Eoin
Join Date: Nov 2020
Posts: 1
Rep Power: 0
fuzzydunlop is on a distinguished road
Hi Petros,

Did you ever manage to find the cause of this error? Getting the same message here trying to install swak4Foam on OpenFoam-v2006.

Thanks
fuzzydunlop is offline   Reply With Quote

Old   November 12, 2020, 11:33
Default
  #4
Member
 
Petros Ampatzidis
Join Date: Oct 2018
Location: Bath, UK
Posts: 49
Rep Power: 4
petros is on a distinguished road
Hi,

I can confirm that swak4Foam compiles smoothly with v2006 after Bernhard Gschaider's newer updates. Try:

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam
cd swak4Foam
./AllwmakeAll
petros is offline   Reply With Quote

Old   November 13, 2020, 13:57
Default
  #5
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,199
Rep Power: 47
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by petros View Post
Hi,

I can confirm that swak4Foam compiles smoothly with v2006 after Bernhard Gschaider's newer updates. Try:

Code:
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam swak4Foam
cd swak4Foam
./AllwmakeAll

I'm not 100% sure if the latest release (that would be the one pulled by your command) compiles completely with your command as it was released before v2006 (I did some adaptions according to the git that would become 2006 which compile most of it)


To be sure do
Code:
hg update develop
if the released version does not compile
fuzzydunlop 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   January 15, 2021, 06:10
Default
  #6
New Member
 
Giovanni Giustini
Join Date: Dec 2017
Location: London, UK
Posts: 1
Rep Power: 0
G_G_ is on a distinguished road
Hi Bernhard,

I am trying to compile as well, but so far unsuccessfully:

Reading variables from 'swakConfiguration'
Looking for Python 2
Found Python 2.7
Configuring Python 2.7
Using python2.7 at /usr/bin/python2.7-config for python2
Looking for Python 3
Using our own Lua at /opt/OpenFOAM-v2006/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 20xx.yy.0
hg info: b8e73355892c (develop) tip
No 'bear' installed
Bison: /opt/OpenFOAM-v2006/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /opt/OpenFOAM-v2006/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 2006 Minor 0 Patch 0 (-1 == x / 0) Fork: com
No swak4FoamParsers/foamVersion4swak.H. Generated

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem


ln: simpleFunctionObjects/lnInclude
wmake libso swak4FoamParsers
/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:61: /opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../../../rules/versionOptions: No such file or directory
/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:71: /opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../mybison: No such file or directory
/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:72: /opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory
make: *** No rule to make target '/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop.
/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:61: /opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../../../rules/versionOptions: No such file or directory
/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:71: /opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../mybison: No such file or directory
/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:72: /opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory
make: *** No rule to make target '/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop.
wmake error: file '/opt/OpenFOAM-v2006/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/sourceFiles' could not be created in /opt/OpenFOAM-v2006/swak4Foam/Libraries/swak4FoamParsers
Parser library did not compile OK. No sense continuing as everything else depends on it

Any suggestion about what may have caused the issue?

Best wishes,

Giovanni
G_G_ is offline   Reply With Quote

Old   April 7, 2021, 23:28
Default
  #7
New Member
 
Join Date: Dec 2020
Posts: 4
Rep Power: 2
Ron.CC is on a distinguished road
Hi Bernhard,

I am trying to compile swak4foam on OFv2012 and have done the hg update, but meet an error:

Reading variables from 'swakConfiguration'
Looking for Python 2
Found Python 2.7
Configuring Python 2.7
Using python2.7 at /usr/bin/python2.7-config for python2
Looking for Python 3
Found Python 3.6
Configuring Python 3.6
Using python3.6 at /usr/bin/python3.6-config for python3
Using our own Lua at /home/user2/OF2012/OpenFOAM/user2-v2012/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 20xx.yy.0
hg info: b8e73355892c+ (develop) tip
which: no bear in (/home/user2/OF2012/OpenFOAM/user2-v2012/swak4Foam/privateRequirements/bin:/OF2012/OpenFOAM/user2-v2012/platforms/linux64GccDPInt32Opt/bin:/home/user2/OF2012/OpenFOAM/OpenFOAM-v2012/site/2012/platforms/linux64GccDPInt32Opt/bin:/home/user2/OF2012/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/bin:/home/user2/OF2012/OpenFOAM/OpenFOAM-v2012/bin:/home/user2/OF2012/OpenFOAM/OpenFOAM-v2012/wmake:/home/user2/dakota-6.9.0-release-public-rhel7.x86_64-UI/bin:/home/user2/dakota-6.9.0-release-public-rhel7.x86_64-UI/share/dakota/test:/home/user2/dakota-6.9.0-release-public-rhel7.x86_64-UI/gui:/usr/local/MATLAB/R2015b/bin:/usr/ansys_inc/v171/fluent/bin:/usr/ansys_inc/v171/icemcfd/linux64_amd/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/user2/.local/bin:/home/user2/bin)
No 'bear' installed
Bison: /home/user2/OF2012/OpenFOAM/user2-v2012/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/user2/OF2012/OpenFOAM/user2-v2012/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2012 Minor 0 Patch 0 (-1 == x / 0) Fork: com
No change to swak4FoamParsers/foamVersion4swak.H

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem


wmake libso swak4FoamParsers
mkdir: cannot create directory '/OF2012/OpenFOAM/user2-v2012/platforms': Permission denied
make: *** [/OF2012/OpenFOAM/user2-v2012/platforms/linux64GccDPInt32Opt/lib/libswak4FoamParsers.so] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it.

I have tried:
1.Manually create the directory '/OF2012/OpenFOAM/user2-v2012/platforms'.
2.Apply "chmod -R 777 user2-v2012/".
Both can't solve the problem and the error message is the same.

Could you please give me a hint? Thank you in advance.

Ron
Ron.CC is offline   Reply With Quote

Old   April 8, 2021, 08:07
Thumbs up Problem solved!
  #8
New Member
 
Join Date: Dec 2020
Posts: 4
Rep Power: 2
Ron.CC is on a distinguished road
Quote:
Originally Posted by Ron.CC View Post
Hi Bernhard,

I am trying to compile swak4foam on OFv2012 and have done the hg update, but meet an error:

Reading variables from 'swakConfiguration'
Looking for Python 2
Found Python 2.7
Configuring Python 2.7
Using python2.7 at /usr/bin/python2.7-config for python2
Looking for Python 3
Found Python 3.6
Configuring Python 3.6
Using python3.6 at /usr/bin/python3.6-config for python3
Using our own Lua at /home/user2/OF2012/OpenFOAM/user2-v2012/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 20xx.yy.0
hg info: b8e73355892c+ (develop) tip
which: no bear in (/home/user2/OF2012/OpenFOAM/user2-v2012/swak4Foam/privateRequirements/bin:/OF2012/OpenFOAM/user2-v2012/platforms/linux64GccDPInt32Opt/bin:/home/user2/OF2012/OpenFOAM/OpenFOAM-v2012/site/2012/platforms/linux64GccDPInt32Opt/bin:/home/user2/OF2012/OpenFOAM/OpenFOAM-v2012/platforms/linux64GccDPInt32Opt/bin:/home/user2/OF2012/OpenFOAM/OpenFOAM-v2012/bin:/home/user2/OF2012/OpenFOAM/OpenFOAM-v2012/wmake:/home/user2/dakota-6.9.0-release-public-rhel7.x86_64-UI/bin:/home/user2/dakota-6.9.0-release-public-rhel7.x86_64-UI/share/dakota/test:/home/user2/dakota-6.9.0-release-public-rhel7.x86_64-UI/gui:/usr/local/MATLAB/R2015b/bin:/usr/ansys_inc/v171/fluent/bin:/usr/ansys_inc/v171/icemcfd/linux64_amd/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/user2/.local/bin:/home/user2/bin)
No 'bear' installed
Bison: /home/user2/OF2012/OpenFOAM/user2-v2012/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/user2/OF2012/OpenFOAM/user2-v2012/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.5.37 (Minor version: 37)
OpenFOAM-version: Major 2012 Minor 0 Patch 0 (-1 == x / 0) Fork: com
No change to swak4FoamParsers/foamVersion4swak.H

Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem


wmake libso swak4FoamParsers
mkdir: cannot create directory '/OF2012/OpenFOAM/user2-v2012/platforms': Permission denied
make: *** [/OF2012/OpenFOAM/user2-v2012/platforms/linux64GccDPInt32Opt/lib/libswak4FoamParsers.so] Error 1
Parser library did not compile OK. No sense continuing as everything else depends on it.

I have tried:
1.Manually create the directory '/OF2012/OpenFOAM/user2-v2012/platforms'.
2.Apply "chmod -R 777 user2-v2012/".
Both can't solve the problem and the error message is the same.

Could you please give me a hint? Thank you in advance.

Ron
If you meet the same problem you should apply echo $FOAM_USER_LIBBIN and check the returned directory. For my case it led to a wrong root directory. That's why wmake complains about the mkdir permission.
The solution for my case is to change the WM_PROJECT_USER_DIR in bashrc to right user directory.Then $FOAM_USER_LIBBIN will be corrected automatically.
I hope it will help someone.

Ron
Ron.CC is offline   Reply With Quote

Reply

Tags
openfoam-v2006, swak4foam

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[swak4Foam] swak4foam openfoam 7 installation problem Andrea23 OpenFOAM Community Contributions 1 February 17, 2020 18:11
OpenFOAM course for beginners Jibran OpenFOAM Announcements from Other Sources 2 November 4, 2019 08:51
Getting Started with OpenFOAM wyldckat OpenFOAM 24 October 2, 2019 21:35
[swak4Foam] Error: Installing swak4Foam into OpenFOAM 2.3.0 on CentOS 7 mushtime OpenFOAM Community Contributions 9 July 23, 2017 15:27
OpenFOAM Training, London, Chicago, Munich, Houston 2016-2017 cfd.direct OpenFOAM Announcements from Other Sources 0 September 14, 2016 03:19


All times are GMT -4. The time now is 14:31.