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

[swak4Foam] swak4Foam for openfoam 5

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

Like Tree2Likes
  • 1 Post By linox
  • 1 Post By THU_Gj

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2018, 05:41
Default swak4Foam for openfoam 5
  #1
New Member
 
Patrick
Join Date: Apr 2016
Posts: 10
Rep Power: 5
linox is on a distinguished road
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 likes this.
linox is offline   Reply With Quote

Old   May 15, 2018, 02:51
Default
  #2
New Member
 
Fahime Firoozpour
Join Date: Jan 2018
Posts: 10
Rep Power: 4
Fahime is on a distinguished road
Quote:
Originally Posted by linox View Post
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?
Fahime is offline   Reply With Quote

Old   May 18, 2018, 10:11
Default
  #3
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 552
Rep Power: 16
jherb is on a distinguished road
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.
jherb is offline   Reply With Quote

Old   May 20, 2018, 01:30
Default
  #4
New Member
 
Fahime Firoozpour
Join Date: Jan 2018
Posts: 10
Rep Power: 4
Fahime is on a distinguished road
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 is offline   Reply With Quote

Old   May 23, 2018, 08:08
Default
  #5
New Member
 
Fahime Firoozpour
Join Date: Jan 2018
Posts: 10
Rep Power: 4
Fahime is on a distinguished road
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
Fahime is offline   Reply With Quote

Old   May 28, 2018, 21:56
Default
  #6
New Member
 
Zhiyong GU
Join Date: Apr 2018
Posts: 3
Rep Power: 3
THU_Gj is on a distinguished road
Quote:
Originally Posted by Fahime View Post
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.
Fahime likes this.
THU_Gj is offline   Reply With Quote

Old   October 9, 2018, 20:57
Default Error message. Trying to install Swak4Foam on OpenFOAM 5.0
  #7
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 30
Rep Power: 5
HappyS5 is on a distinguished road
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.
Attached Files
File Type: gz log.tar.gz (3.0 KB, 6 views)
HappyS5 is offline   Reply With Quote

Old   October 11, 2018, 20:10
Default
  #8
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 30
Rep Power: 5
HappyS5 is on a distinguished road
Quote:
Originally Posted by Fahime View Post

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.
HappyS5 is offline   Reply With Quote

Old   December 7, 2018, 06:30
Default
  #9
Member
 
Ashish Vinayak
Join Date: Mar 2015
Posts: 49
Rep Power: 6
ashish.vinayak is on a distinguished road
hg update develop

I struggled with this for a bit. Haha.


Quote:
Originally Posted by jherb View Post
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.
ashish.vinayak is offline   Reply With Quote

Old   December 26, 2018, 08:48
Angry
  #10
New Member
 
Ainal Hoque Gazi
Join Date: May 2018
Location: India
Posts: 27
Rep Power: 3
A H Gazi is on a distinguished road
Quote:
Originally Posted by ashish.vinayak View Post
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$
A H Gazi is offline   Reply With Quote

Old   January 3, 2019, 23:20
Default Owner fixed swak4Foam for OpenFOAM 5
  #11
Member
 
Chris Harding
Join Date: Dec 2016
Posts: 30
Rep Power: 5
HappyS5 is on a distinguished road
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.
HappyS5 is offline   Reply With Quote

Old   January 4, 2019, 06:18
Default
  #12
Member
 
Ashish Vinayak
Join Date: Mar 2015
Posts: 49
Rep Power: 6
ashish.vinayak is on a distinguished road
Quote:
Originally Posted by A H Gazi View Post
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.
ashish.vinayak is offline   Reply With Quote

Old   August 25, 2019, 08:16
Default
  #13
New Member
 
zein elserfy
Join Date: May 2018
Posts: 20
Rep Power: 3
zeinelserfy is on a distinguished road
Quote:
Originally Posted by HappyS5 View Post
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
zeinelserfy is offline   Reply With Quote

Old   February 13, 2020, 07:32
Default
  #14
New Member
 
Masih
Join Date: Feb 2020
Posts: 16
Rep Power: 2
masih.mojarrad is on a distinguished road
Hi all

Could anyone finally install it in openfoam 5? If so, can someone explain it in detail please?
Best regards
Masih
masih.mojarrad is offline   Reply With Quote

Old   February 13, 2020, 19:46
Default
  #15
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,127
Rep Power: 45
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by masih.mojarrad View Post
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
__________________
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   February 14, 2020, 07:28
Default
  #16
New Member
 
Masih
Join Date: Feb 2020
Posts: 16
Rep Power: 2
masih.mojarrad is on a distinguished road
Quote:
Originally Posted by gschaider View Post
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 is offline   Reply With Quote

Old   February 16, 2020, 06:13
Smile
  #17
New Member
 
Masih
Join Date: Feb 2020
Posts: 16
Rep Power: 2
masih.mojarrad is on a distinguished road
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
masih.mojarrad is offline   Reply With Quote

Reply

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] difficulties installing swak4foam newbie29 OpenFOAM Community Contributions 94 September 18, 2019 04:34
InterDyMFoam+simpleFunctionObject Elham OpenFOAM Running, Solving & CFD 5 July 10, 2017 12:59
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 10:03.