CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] swak4Foam for openfoam 5 (https://www.cfd-online.com/Forums/openfoam-community-contributions/201423-swak4foam-openfoam-5-a.html)

linox May 2, 2018 04:41

swak4Foam for openfoam 5
 
Hi,

I am searching for Swak4Foam for OpenFOAM 5 but could not find anything online.
Perhaps someone here could help me to this regard. Is there a swake4Foam version for openfoam 5?

Thanks,
Linox

Fahime May 15, 2018 01:51

Quote:

Originally Posted by linox (Post 690935)
Hi,

I am searching for Swak4Foam for OpenFOAM 5 but could not find anything online.
Perhaps someone here could help me to this regard. Is there a swake4Foam version for openfoam 5?

Thanks,
Linox

Hi Patrick
have you found swak4Foam for openfoam 5 ? or should I Install openfoam4 to work with its swak4Foam?

jherb May 18, 2018 09:11

The development branch works for OpenFOAM-5.x (but currently not with OpenFOAM-dev):
https://openfoamwiki.net/index.php/C...xisting_clones



Code:


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

hg update development

or
Code:


git clone hg::http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
git checkout branches/develop

Then build it.

Fahime May 20, 2018 00:30

thanks a lot for your reply


I use this command:
git clone hg::http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam

but got this error:
Cloning into 'openfoam-extend-swak4Foam'...
fatal: Unable to find remote helper for 'hg'

do you know what should I do at this step?

Fahime May 23, 2018 07:08

I use this command :
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam

hg update development


but get this error for (hg update development):
abort: no repository found in '/home/nidec' (.hg not found)!


do you know what should I do?
thanks

THU_Gj May 28, 2018 20:56

Quote:

Originally Posted by Fahime (Post 693290)
I use this command :
hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam

hg update development


but get this error for (hg update development):
abort: no repository found in '/home/nidec' (.hg not found)!


do you know what should I do?
thanks

Maybe you should execute the update command in 'openfoam-extend-swak4Foam' directory.:)

HappyS5 October 9, 2018 19:57

Error message. Trying to install Swak4Foam on OpenFOAM 5.0
 
1 Attachment(s)
Hello,

Please help. I supply the log below.

Code:

This script is rather crude. If it doesn't work try the steps by hand. And be sure to run it from the root of the swak-installation (as ./maintainanceScripts/compileRequirements.sh). Otherwise it probably won't work

Bison already installed/compiled
Bison successfully compiled
Lua already installed/compiled
Lua successfully compiled

Add /home/happys5/swak4Foam/privateRequirements/bin to PATH-variable. The ./Allwmake-script will use this directory automatically

Current OpenFOAM version is 5.0.
This is a clean install

/home/happys5/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/happys5/swak4Foam/privateRequirements
Checking swak4Foam-version and generating file
Swak version is 0.4.2
Could not get version of the sources
Bison: /home/happys5/swak4Foam/privateRequirements/bin/bison
Flex: /usr/bin/flex
Bison is version 3.0.4
Flex is version 2.6.4 (Minor version: 4)
No swak4FoamParsers/foamVersion4swak.H. Generated
Please include the output above when reporting a problem in the compilation. It helps diagnosing the problem


I/opt/openfoam5/src/finiteVolume/lnInclude -I/opt/openfoam5/src/surfMesh/lnInclude -I/opt/openfoam5/src/sampling/lnInclude -I/opt/openfoam5/src/fileFormats/lnInclude -I/opt/openfoam5/src/triSurface/lnInclude -I/opt/openfoam5/src/dynamicMesh/lnInclude -I/opt/openfoam5/src/lagrangian/basic/lnInclude -I/opt/openfoam5/src/surfMesh/lnInclude -I/opt/openfoam5/src/meshTools/lnInclude -I../filesThatAreOnlyInSomeDistributions/OutputFilerDropin/ -IlnInclude -I. -I/opt/openfoam5/src/OpenFOAM/lnInclude -I/opt/openfoam5/src/OSspecific/POSIX/lnInclude  -fPIC -c CommonValueExpressionDriver.C -o Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o
/opt/openfoam5/wmake/rules/General/transform:25: recipe for target 'Make/linux64GccDPInt32Opt/CommonValueExpressionDriver.o' failed
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

What do I need to do to get up and running?

If I need to patch, can you teach me how to patch? I am new to Linux.

HappyS5 October 11, 2018 19:10

Quote:

Originally Posted by Fahime (Post 693290)

but get this error for (hg update development):
abort: no repository found in '/home/nidec' (.hg not found)!

do you know what should I do?
thanks

Go to the "openfoam-extend-swak4Foam" folder and try: hg update develop instead of hg update development.

ashish.vinayak December 7, 2018 05:30

hg update develop

I struggled with this for a bit. Haha.


Quote:

Originally Posted by jherb (Post 692797)
The development branch works for OpenFOAM-5.x (but currently not with OpenFOAM-dev):
https://openfoamwiki.net/index.php/C...xisting_clones



Code:


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

hg update development

or
Code:


git clone hg::http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
git checkout branches/develop

Then build it.


A H Gazi December 26, 2018 07:48

Quote:

Originally Posted by ashish.vinayak (Post 718280)
hg update develop

I struggled with this for a bit. Haha.




I am stucked to this from three or four months, will you please help me to install it in openfoam5.0, Ubuntu 18.04?
i have tried with above command and got this...




personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$ hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
requesting all changes
adding changesets
adding manifests
adding file changes
added 3645 changesets with 20717 changes to 4135 files (+11 heads)
new changesets d14c0319d52c:b3760695cc31
updating to branch default
3102 files updated, 0 files merged, 0 files removed, 0 files unresolved
personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$ hg update development
abort: no repository found in '/home/personal/OpenFOAM/personal-5.0' (.hg not found)!
personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$ git clone hg::http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
fatal: destination path 'openfoam-extend-swak4Foam' already exists and is not an empty directory.
personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$ git checkout branches/develop
error: pathspec 'branches/develop' did not match any file(s) known to git.
personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$

HappyS5 January 3, 2019 22:20

Owner fixed swak4Foam for OpenFOAM 5
 
Hello,

The owner, Bernhard Gschaider, fixed swak4Foam so that it now works for OpenFoam 5. I used the Mercurial method of downloading, see above "hg" method, and I successfully downloaded swak4Foam today.

ashish.vinayak January 4, 2019 05:18

Quote:

Originally Posted by A H Gazi (Post 720146)
I am stucked to this from three or four months, will you please help me to install it in openfoam5.0, Ubuntu 18.04?
i have tried with above command and got this...




personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$ hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
requesting all changes
adding changesets
adding manifests
adding file changes
added 3645 changesets with 20717 changes to 4135 files (+11 heads)
new changesets d14c0319d52c:b3760695cc31
updating to branch default
3102 files updated, 0 files merged, 0 files removed, 0 files unresolved
personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$ hg update development
abort: no repository found in '/home/personal/OpenFOAM/personal-5.0' (.hg not found)!
personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$ git clone hg::http://hg.code.sf.net/p/openfoam-extend/swak4Foam openfoam-extend-swak4Foam
fatal: destination path 'openfoam-extend-swak4Foam' already exists and is not an empty directory.
personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$ git checkout branches/develop
error: pathspec 'branches/develop' did not match any file(s) known to git.
personal@personal-System-Product-Name:~/OpenFOAM/personal-5.0$


I ended up using foam-extend since it was easier for me to install that. It provides swak4foam in the package.

zeinelserfy August 25, 2019 07:16

Quote:

Originally Posted by HappyS5 (Post 720753)
Hello,

The owner, Bernhard Gschaider, fixed swak4Foam so that it now works for OpenFoam 5. I used the Mercurial method of downloading, see above "hg" method, and I successfully downloaded swak4Foam today.

can you explain in details how you install it for openfoam5?
as i am struggling to install it

masih.mojarrad February 13, 2020 06:32

Hi all

Could anyone finally install it in openfoam 5? If so, can someone explain it in detail please?
Best regards
Masih

gschaider February 13, 2020 18:46

Quote:

Originally Posted by masih.mojarrad (Post 757991)
Hi all

Could anyone finally install it in openfoam 5? If so, can someone explain it in detail please?
Best regards
Masih


If there is Mercurial installed then you just download it with
Code:

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

and then compile it with
Code:

./AllwmakeAll

masih.mojarrad February 14, 2020 06:28

Quote:

Originally Posted by gschaider (Post 758085)
If there is Mercurial installed then you just download it with
Code:

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

and then compile it with
Code:

./AllwmakeAll


Thanks for your response
There is not Mercurial installed on my system so when I wanted to install with the " sudo apt install mercurial" command I faced to this message:


Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libglvnd-dev : Depends: libglvnd0 (= 1.0.0-2ubuntu2) but 1.0.0-2ubuntu2.3 is to be installed
Depends: libglvnd-core-dev (= 1.0.0-2ubuntu2) but 1.0.0-2ubuntu2.3 is to be installed
Depends: libegl1 (= 1.0.0-2ubuntu2) but 1.0.0-2ubuntu2.3 is to be installed
Depends: libgles2 (= 1.0.0-2ubuntu2) but 1.0.0-2ubuntu2.3 is to be installed
Depends: libgl1 (= 1.0.0-2ubuntu2) but 1.0.0-2ubuntu2.3 is to be installed
Depends: libglx0 (= 1.0.0-2ubuntu2) but 1.0.0-2ubuntu2.3 is to be installed
Depends: libopengl0 (= 1.0.0-2ubuntu2) but 1.0.0-2ubuntu2.3 is to be installed
mercurial : Depends: mercurial-common (= 4.5.3-1ubuntu2.1) but it is not going to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


Then, I wrote the code "apt --fix-broken install" but this message showed up:


E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?



I have checked many websites and tried different methods to deal with it but i could not so far. Did anyone have the same problem and could solve it?
Best regards
Masih

masih.mojarrad February 16, 2020 05:13

Hi guys,
my problem was solved. Some dependencies was deleted on my system (probably by mistake) and that is why I could not install any package. I hope this comment can be helpful for others.
Best regards
Masih


All times are GMT -4. The time now is 17:00.