|
[Sponsors] |
[swak4Foam] swak4foam installation on OpenFOAM 7 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 13, 2019, 12:07 |
swak4foam installation on OpenFOAM 7
|
#1 |
New Member
Join Date: Dec 2019
Posts: 1
Rep Power: 0 |
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 |
|
December 16, 2019, 17:01 |
|
#2 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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 |
|
December 17, 2019, 17:46 |
|
#3 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
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.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
December 18, 2019, 13:39 |
|
#4 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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.
|
|
December 18, 2019, 14:28 |
|
#5 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 931
Rep Power: 13 |
yes, i know all. i was sarcastic only.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
January 14, 2020, 07:21 |
|
#6 |
New Member
Pavan Inguva
Join Date: Dec 2019
Location: Singapore
Posts: 7
Rep Power: 6 |
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! |
|
May 11, 2020, 16:57 |
|
#7 |
New Member
Saikumar Reddy Y
Join Date: May 2020
Posts: 8
Rep Power: 6 |
Were you able to solve this problem? I couldn't install swak4Foam in OF v7.
|
|
May 14, 2020, 12:14 |
|
#8 |
Member
Hasan Celik
Join Date: Sep 2016
Posts: 64
Rep Power: 10 |
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 |
|
May 15, 2020, 10:30 |
Finally it worked for me (OF v7)
|
#9 | |
New Member
Saikumar Reddy Y
Join Date: May 2020
Posts: 8
Rep Power: 6 |
Quote:
Oh thanks that works now for OF v7 |
||
October 28, 2020, 14:31 |
|
#10 | |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
Quote:
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? |
||
October 29, 2020, 16:52 |
|
#11 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
November 2, 2020, 16:41 |
|
#12 | |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
Quote:
Code:
funkySetAreaFields.C:39:10: fatal error: faCFD.H: No such file or directory 39 | #include "faCFD.H" | ^~~~~~~~~ compilation terminated. |
||
November 2, 2020, 16:50 |
|
#13 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
November 2, 2020, 17:08 |
|
#14 | |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
Quote:
|
||
November 2, 2020, 19:01 |
|
#15 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
November 3, 2020, 16:14 |
|
#16 | |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
Quote:
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 |
||
November 4, 2020, 10:03 |
|
#17 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Libraries (and with them groovyBC) were already compiled by the global compilation script. If you do Code:
ls $FOAM_USER_LIBBIN
__________________
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 |
||
November 5, 2020, 05:46 |
|
#18 |
New Member
Dmitry
Join Date: Sep 2020
Location: Moscow, RU
Posts: 16
Rep Power: 6 |
||
November 9, 2020, 16:39 |
|
#19 | |
New Member
Brenda
Join Date: Nov 2019
Posts: 1
Rep Power: 0 |
Quote:
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? |
||
November 9, 2020, 18:50 |
|
#20 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
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 |
||
Tags |
swak4foam error |
|
|
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 |