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

[swak4Foam] swak4foam installation on OpenFOAM 7

Register Blogs Community New Posts Updated Threads Search

Like Tree18Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2019, 12:07
Default swak4foam installation on OpenFOAM 7
  #1
New Member
 
Join Date: Dec 2019
Posts: 1
Rep Power: 0
egeta is on a distinguished road
I need to use swak4foam in Open-foam for a project. But the compilation always gives error in the same spot. I couldn't find a solution for this problem. If anyone can help it would be extremely appreciated.




Current OpenFOAM version is 7.
Previously compiled for OpenFOAM (7)

/home/egeta/OpenFOAM/OpenFOAM-7/openfoam-extend-swak4Foam/privateRequirements/bin existing. Prepending to PATH-variable (private version of Bison)

Reading variables from 'swakConfiguration'
Using python2.7 at /usr/bin/python2.7-config for python2
Using our own Lua at /home/egeta/OpenFOAM/OpenFOAM-7/openfoam-extend-swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 0.4.3
hg info: e7c2de483937 (develop) tip
Bison: /home/egeta/OpenFOAM/OpenFOAM-7/openfoam-extend-swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison at /home/egeta/OpenFOAM/OpenFOAM-7/openfoam-extend-swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4)
Flex is version 2.6.4 (Minor version: 4)
OpenFOAM-version: Major 7 Minor 0 Patch -1 (-1 == x / 98) Fork: org
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
/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/options:56: /home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/../../../rules/versionOptions: No such file or directory
/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/options:66: /home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/../mybison: No such file or directory
/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/options:67: /home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory
make: *** No rule to make target '/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop.
/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/options:56: /home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/../../../rules/versionOptions: No such file or directory
/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/options:66: /home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/../mybison: No such file or directory
/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/options:67: /home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory
make: *** No rule to make target '/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop.
wmake error: file '/home/egeta/OpenFOAM/OpenFOAM-7/platforms/linux64GccDPInt64Opt/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers/sourceFiles' could not be created in /home/egeta/OpenFOAM/OpenFOAM-7/openfoam-extend-swak4Foam/Libraries/swak4FoamParsers
Parser library did not compile OK. No sense continuing as everything else depends on it

Requirements for Library not satisfied. I see no sense in going on
Check the README before you go on to ask. And search: Most likely your problem occurred to 5 other people before and has been solved on the MessageBoard

Thank you
sourav90 likes this.
egeta is offline   Reply With Quote

Old   December 16, 2019, 17:01
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
From where have you taken the source code? You propably must use the develop branch from here (see https://openfoamwiki.net/index.php/C...am#Development)
http://hg.code.sf.net/p/openfoam-extend/swak4Foam

or you can use the un-offical git mirror:
https://github.com/Unofficial-Extend...anches/develop
pavaninguva likes this.
jherb is offline   Reply With Quote

Old   December 17, 2019, 17:46
Default
  #3
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
From my observation through GitLab repo, swak is embedded into the new OpenFOAM version1912, though not sure. So till the end of the month, you may not need to install a separate swak anymore, but I might be wrong as well. Let's see.
HPE is offline   Reply With Quote

Old   December 18, 2019, 13:39
Default
  #4
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
OpenFOAM-7 is the "Foundation" version of OpenFOAM and does not include swak4foam. OpenFOAM v1912 is the "ESI" version of OpenFOAM and different from OpenFOAM-7. So depending on which version/development line of OpenFOAM you use, you might or might not need to download swak4foam separately.
jherb is offline   Reply With Quote

Old   December 18, 2019, 14:28
Default
  #5
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13
HPE is on a distinguished road
yes, i know all. i was sarcastic only.
HPE is offline   Reply With Quote

Old   January 14, 2020, 07:21
Default
  #6
New Member
 
Pavan Inguva
Join Date: Dec 2019
Location: Singapore
Posts: 7
Rep Power: 7
pavaninguva is on a distinguished road
I managed to compile swak4Foam with openFoam 7, but I havent tested it fully. This is what I did:

```
git clone https://github.com/Unofficial-Extend...k4Foam-dev.git swak4Foam
```

Check out to the development branch:
```
cd swak4Foam
git checkout branches/develop
cd ..
```

I tried compiling it at this stage normally, but I had similar issues with all the requirements not being complete, so it seems this option can be used, but it took forever on a single processor:
```
./AllwmakeAll
```

And at the end to generate a summary log.make for posterity sake, I ran:
```
./Allwmake > log.make 2>&1
```

This seems to work fine as I can access the various tools such as `funkySetFields` from the commandline by simply pressing tab.

Hope this helps!
pavaninguva is offline   Reply With Quote

Old   May 11, 2020, 16:57
Default
  #7
New Member
 
Saikumar Reddy Y
Join Date: May 2020
Posts: 8
Rep Power: 6
Saikumar Bunni is on a distinguished road
Were you able to solve this problem? I couldn't install swak4Foam in OF v7.
Saikumar Bunni is offline   Reply With Quote

Old   May 14, 2020, 12:14
Default
  #8
Member
 
Hasan Celik
Join Date: Sep 2016
Posts: 64
Rep Power: 10
PositronCascade is on a distinguished road
Hello everyone. I was able to install swak4foam a month ago, by following #6 . I had to re-install my system today and I couldn't install it by following the same steps. I had many IOObject errors. develop branch had a new commit 8 days ago, if I am not mistaken. So, maybe, the problem is related with that commit. Anyway, I was able to install it using of7 branch as follows:

Code:
git clone https://github.com/Unofficial-Extend...k4Foam-dev.git swak4Foam

cd swak4Foam

git checkout branches/feature/port/of7 

./AllwmakeAll
paya007, Komeil, sourav90 and 3 others like this.
PositronCascade is offline   Reply With Quote

Old   May 15, 2020, 10:30
Thumbs up Finally it worked for me (OF v7)
  #9
New Member
 
Saikumar Reddy Y
Join Date: May 2020
Posts: 8
Rep Power: 6
Saikumar Bunni is on a distinguished road
Quote:
Originally Posted by PositronCascade View Post
Hello everyone. I was able to install swak4foam a month ago, by following #6 . I had to re-install my system today and I couldn't install it by following the same steps. I had many IOObject errors. develop branch had a new commit 8 days ago, if I am not mistaken. So, maybe, the problem is related with that commit. Anyway, I was able to install it using of7 branch as follows:

Code:
git clone https://github.com/Unofficial-Extend...k4Foam-dev.git swak4Foam

cd swak4Foam

git checkout branches/feature/port/of7 

./AllwmakeAll

Oh thanks that works now for OF v7
Saikumar Bunni is offline   Reply With Quote

Old   October 28, 2020, 14:31
Default
  #10
New Member
 
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6
complete.basis is on a distinguished road
Quote:
Originally Posted by PositronCascade View Post
Hello everyone. I was able to install swak4foam a month ago, by following #6 . I had to re-install my system today and I couldn't install it by following the same steps. I had many IOObject errors. develop branch had a new commit 8 days ago, if I am not mistaken. So, maybe, the problem is related with that commit. Anyway, I was able to install it using of7 branch as follows:

Code:
git clone https://github.com/Unofficial-Extend...k4Foam-dev.git swak4Foam

cd swak4Foam

git checkout branches/feature/port/of7 

./AllwmakeAll

Hi!
As a result of doing:
git checkout branches/feature/port/of7

I receive this:
fatal: not a git repository (or any of the parent directories): .git

What should I do?
complete.basis is offline   Reply With Quote

Old   October 29, 2020, 16:52
Default
  #11
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 complete.basis View Post
Hi!
As a result of doing:
git checkout branches/feature/port/of7

I receive this:
fatal: not a git repository (or any of the parent directories): .git

What should I do?

Why do people insist on downloading that unsupported git repository


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

The default branch of that repo compiles with OF7 (not yet OF8. For that you have to change to the development branch)
__________________
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   November 2, 2020, 16:41
Default
  #12
New Member
 
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6
complete.basis is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Why do people insist on downloading that unsupported git repository


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

The default branch of that repo compiles with OF7 (not yet OF8. For that you have to change to the development branch)
Bernhard, thank you for your answer. I did what you said and now I've got this error (see the whole log file in the attach):

Code:
funkySetAreaFields.C:39:10: fatal error: faCFD.H: No such file or directory
   39 | #include "faCFD.H"
      |          ^~~~~~~~~
compilation terminated.
Any ideas what to do next?
Attached Files
File Type: txt log.txt (24.6 KB, 20 views)
complete.basis is offline   Reply With Quote

Old   November 2, 2020, 16:50
Default
  #13
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 complete.basis View Post
Bernhard, thank you for your answer. I did what you said and now I've got this error (see the whole log file in the attach):

Code:
funkySetAreaFields.C:39:10: fatal error: faCFD.H: No such file or directory
   39 | #include "faCFD.H"
      |          ^~~~~~~~~
compilation terminated.
Any ideas what to do next?

Everything else is OK as far as I see in your log. That means the compilation is complete for you


The utility for which compilation fails will not compile on OF7. It uses the finiteArea-stuff that is only present in foam-extend and the ESI-release


That the script tries to even compile it on OF7 is a bug that has recently been fixed in the development release.


So you can start swaking
__________________
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   November 2, 2020, 17:08
Default
  #14
New Member
 
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6
complete.basis is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Everything else is OK as far as I see in your log. That means the compilation is complete for you


The utility for which compilation fails will not compile on OF7. It uses the finiteArea-stuff that is only present in foam-extend and the ESI-release


That the script tries to even compile it on OF7 is a bug that has recently been fixed in the development release.


So you can start swaking
Seems that something is not working yet(( when I call funkySetFields or any other utility from swak4foam - the result is 'funkySetFields: command not found'
complete.basis is offline   Reply With Quote

Old   November 2, 2020, 19:01
Default
  #15
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 complete.basis View Post
Seems that something is not working yet(( when I call funkySetFields or any other utility from swak4foam - the result is 'funkySetFields: command not found'

Ah. Seems that the compilation stopped after funkySetAreaFields failed (that kind of behaviour differs for different versions of wmake). You should be able to compile the other utilities in the "Utiities" directory by calling wmake by hand:
Code:
wmake Utilities/funkySetFields
__________________
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   November 3, 2020, 16:14
Default
  #16
New Member
 
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6
complete.basis is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Ah. Seems that the compilation stopped after funkySetAreaFields failed (that kind of behaviour differs for different versions of wmake). You should be able to compile the other utilities in the "Utiities" directory by calling wmake by hand:
Code:
wmake Utilities/funkySetFields
Thank you, Bernhard! This worked for me, I could install funkySetFields and it works fine with my case.

The next thing I want to do is installing groovyBC (for me to set a velocity field in every finite volume element of my geometry).

I tried to install all libraries from swak4Foam Libraries folder:
Code:
cd ~/swak4Foam/Libraries
./Allwclean
./Allwmake
But I've got some errors (see log_lib.txt). Any ideas what to do next?
Attached Files
File Type: txt log_lib.txt (37.5 KB, 7 views)
complete.basis is offline   Reply With Quote

Old   November 4, 2020, 10:03
Default
  #17
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 complete.basis View Post
Thank you, Bernhard! This worked for me, I could install funkySetFields and it works fine with my case.

The next thing I want to do is installing groovyBC (for me to set a velocity field in every finite volume element of my geometry).

I tried to install all libraries from swak4Foam Libraries folder:
Code:
cd ~/swak4Foam/Libraries
./Allwclean
./Allwmake
But I've got some errors (see log_lib.txt). Any ideas what to do next?

Libraries (and with them groovyBC) were already compiled by the global compilation script. If you do
Code:
ls $FOAM_USER_LIBBIN
you should see libgroovyBC.so. Which means that it can be used
__________________
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   November 5, 2020, 05:46
Default
  #18
New Member
 
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6
complete.basis is on a distinguished road
Quote:
Originally Posted by gschaider View Post
Libraries (and with them groovyBC) were already compiled by the global compilation script. If you do
Code:
ls $FOAM_USER_LIBBIN
you should see libgroovyBC.so. Which means that it can be used
Thank you soo much! Everything works fine!
complete.basis is offline   Reply With Quote

Old   November 9, 2020, 16:39
Default
  #19
New Member
 
Brenda
Join Date: Nov 2019
Posts: 1
Rep Power: 0
brendaalbm is on a distinguished road
Quote:
Originally Posted by PositronCascade View Post
Hello everyone. I was able to install swak4foam a month ago, by following #6 . I had to re-install my system today and I couldn't install it by following the same steps. I had many IOObject errors. develop branch had a new commit 8 days ago, if I am not mistaken. So, maybe, the problem is related with that commit. Anyway, I was able to install it using of7 branch as follows:

Code:
git clone https://github.com/Unofficial-Extend...k4Foam-dev.git swak4Foam

cd swak4Foam

git checkout branches/feature/port/of7 

./AllwmakeAll

Hello, I tried this code but appeared an error: "Couldn't find any package by glob 'https://github.com/Unofficial-Extend-Project-Mirror''.
Can you help me?
brendaalbm is offline   Reply With Quote

Old   November 9, 2020, 18:50
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 brendaalbm View Post
Hello, I tried this code but appeared an error: "Couldn't find any package by glob 'https://github.com/Unofficial-Extend-Project-Mirror''.
Can you help me?

Don't know for that git repository but the main branch (the last release) of the development repository compiles on OF7. See top of https://openfoamwiki.net/index.php/Contrib/swak4Foam for the installation instructions
__________________
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

Tags
swak4foam error


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 installation for OpenFOAM v1806 exx110 OpenFOAM Community Contributions 1 July 5, 2021 21:07
[swak4Foam] swak4foam >>>> INSTALLATION PROBLEM steven123 OpenFOAM Community Contributions 35 January 11, 2021 17:53
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 07:15
[Discussion] Restructuring the Installation page at openfoamwiki.net wyldckat OpenFOAM Installation 16 November 2, 2013 12:43
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 07:55


All times are GMT -4. The time now is 12:13.