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

[swak4Foam] how does install swak4foam with OpenFOAM 3.0?

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 5, 2015, 08:55
Default how does install swak4foam with OpenFOAM 3.0?
  #1
Member
 
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14
milad653279 is on a distinguished road
Hi

I wanna install swak4foam on openfoam 3 but It doesn't. when I try to install, I saw an error massage " the swak4foam doesn't install with bison 3 and upper'. can anyone help me for solving that problem?

thanks,
milad653279 is offline   Reply With Quote

Old   December 5, 2015, 11:12
Default
  #2
New Member
 
Dawid Gacek
Join Date: Nov 2015
Location: Poland
Posts: 4
Rep Power: 11
DawidG is on a distinguished road
Hi,

I had the same problems- solution is found in openfoamwiki:
"Note bison>=3.x is not compatible. Therefore, after you download the file from the link above and unpacked it, then go into the command line and run

./maintainanceScripts/compileRequirements.sh
./Allwmake
"
source:
https://openfoamwiki.net/index.php/Contrib/swak4Foam

Hope that will help you
DawidG is offline   Reply With Quote

Old   December 6, 2015, 02:30
Default
  #3
Member
 
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14
milad653279 is on a distinguished road
Quote:
Originally Posted by DawidG View Post
Hi,

I had the same problems- solution is found in openfoamwiki:
"Note bison>=3.x is not compatible. Therefore, after you download the file from the link above and unpacked it, then go into the command line and run

./maintainanceScripts/compileRequirements.sh
./Allwmake
"
source:
https://openfoamwiki.net/index.php/Contrib/swak4Foam

Hope that will help you

Thanks
I do that but have problem again. I don't know what to do. do you install swak4foam on openfoam 3???
milad653279 is offline   Reply With Quote

Old   December 6, 2015, 05:36
Default
  #4
New Member
 
Dawid Gacek
Join Date: Nov 2015
Location: Poland
Posts: 4
Rep Power: 11
DawidG is on a distinguished road
No, i did it on OpenFoam 2.4- thought it would work on OF3.0 too :/
DawidG is offline   Reply With Quote

Old   December 6, 2015, 08:55
Default
  #5
Member
 
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14
milad653279 is on a distinguished road
Quote:
Originally Posted by DawidG View Post
No, i did it on OpenFoam 2.4- thought it would work on OF3.0 too :/
hi

excuse, do you install openfoam 2.4 and swak4foam on ubuntu 14.04 LTS?
milad653279 is offline   Reply With Quote

Old   December 6, 2015, 09:09
Default
  #6
New Member
 
Dawid Gacek
Join Date: Nov 2015
Location: Poland
Posts: 4
Rep Power: 11
DawidG is on a distinguished road
Yes, OF 240 and ubuntu 14.04
DawidG is offline   Reply With Quote

Old   December 6, 2015, 15:22
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick note on how to install swak4Foam with OpenFOAM 3.0: you will have to use the latest development version of swak4Foam.

Available installation instructions for swak4Foam:
  1. Detailed instructions: https://openfoamwiki.net/index.php/I...tion/swak4Foam
  2. How to download the development version of swak4Foam: https://openfoamwiki.net/index.php/I...oam-extend_3.x
  3. If you're using Ubuntu: https://openfoamwiki.net/index.php/I...ling_On/Ubuntu
EleCr and mnikku like this.
wyldckat is offline   Reply With Quote

Old   December 7, 2015, 09:33
Default
  #8
Member
 
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14
milad653279 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick note on how to install swak4Foam with OpenFOAM 3.0: you will have to use the latest development version of swak4Foam.

Available installation instructions for swak4Foam:
  1. Detailed instructions: https://openfoamwiki.net/index.php/I...tion/swak4Foam
  2. How to download the development version of swak4Foam: https://openfoamwiki.net/index.php/I...oam-extend_3.x
  3. If you're using Ubuntu: https://openfoamwiki.net/index.php/I...ling_On/Ubuntu

Thanks, I have one question. I have a sample openfoam with swakexpression in contoldict.
when I use openfoam 2.1, it runs completely but when i use openfoam 2.2, see an error that:
--> FOAM FATAL ERROR:
Unknown function type swakExpression

Valid functions are :

4
(
patchProbes
probes
sets
surfaces
)


also I install swak4Foam in of2.1 and of2.2.

can you tell me what to do?
milad653279 is offline   Reply With Quote

Old   December 7, 2015, 13:41
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Milad,

Quote:
Originally Posted by milad653279 View Post
I have a sample openfoam with swakexpression in contoldict.
when I use openfoam 2.1, it runs completely but when i use openfoam 2.2, see an error that:
I need complete details of the steps you've done for running the case with version 2.2.
In addition, what does the following command give you when you have OpenFOAM 2.2 actived?
Code:
ls -l $FOAM_USER_LIBBIN
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   December 7, 2015, 23:39
Default
  #10
New Member
 
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11
lllshahablll is on a distinguished road
Hi Bruno

I followed the instructions on OpenFoamWiki but it seems that something went wrong
when I tried funkySetFeilds the terminal replied that there is no such command.

versions:

Ubuntu 15.10
OpenFoam 3.0.0

and I used 4th swak4Foam link
lllshahablll is offline   Reply With Quote

Old   December 8, 2015, 05:36
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by lllshahablll View Post
I followed the instructions on OpenFoamWiki but it seems that something went wrong
when I tried funkySetFeilds the terminal replied that there is no such command.
Quick answer: Please run the following command within the folder "swak4Foam":
Code:
gzip < make.log > make.log.gz
and attach the file "make.log.gz" in your next post. That way I can diagnose what went wrong with the build.
wyldckat is offline   Reply With Quote

Old   December 8, 2015, 06:33
Question unable to install swak4foam on OF3.0.0
  #12
New Member
 
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11
lllshahablll is on a distinguished road
Dear All,

I am using OF3.0.0 on ubuntu 15.10
firstly is there any compatible SWAK4FOAM with this system?

then, I downloaded following addressed file and followed the instruction on openfoamwiki to install it:

"4 swak4Foam development version for OpenFOAM 2.x/3.x/dev and foam-extend 3.x"

is it right choice for my OF version?

using funkySetFeilds command has no result and terminal replies:

Code:
funkySetFeilds
funkySetFeilds: command not found

make.log first lines is like bellow:
Code:
Previously compiled for OpenFOAM 3.0.0

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

No file 'swakConfiguration'. Python etc won't work. See README for details
Try 'ln -s swakConfiguration.automatic swakConfiguration' for automatic configuration. BEWARE: this does not work on some systems
Checking swak4Foam-version and generating file
abort: no repository found in '/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/swak4Foam' (.hg not found)!
Swak version is 0.4.0
Bison is version 2.7.12-4996
Flex is version 2.5.39 (Minor version: 39)
OpenFOAM-version: Major 3 Minor 0 Patch 0 (-1 == x / 0)
No change to swak4FoamParsers/foamVersion4swak.H
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswak4FoamParsers.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswakLagrangianParser.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libgroovyBC.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswakFunctionObjects.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libsimpleFunctionObjects.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libsimpleLagrangianFunctionObjects.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libsimpleSearchableSurfaces.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libsimpleSwakFunctionObjects.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswakTopoSources.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswakSourceFields.so' is up to date.
Compiling swakFvOptions
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswakFvOptions.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libgroovyStandardBCs.so' is up to date.

SWAK_PYTHON_INCLUDE not defined .... no Python-Integration. Most people are fine without it

'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswakChemistryModelFunctionPlugin.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswakFvcSchemesFunctionPlugin.so' is up to date.
'/home/shahabeddin/OpenFOAM/shahabeddin-3.0.0/platforms/linuxGccDPInt32Opt/lib/libswakLagrangianCloudSourcesFunctionPlugin.so' is up
lllshahablll is offline   Reply With Quote

Old   December 8, 2015, 06:47
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by lllshahablll View Post
using funkySetFeilds command has no result and terminal replies:

Code:
funkySetFeilds
funkySetFeilds: command not found
Quick answer: I only noticed it now. You typed the name incorrectly. The correct name is funkySetFields.
wyldckat is offline   Reply With Quote

Old   December 8, 2015, 08:08
Default
  #14
New Member
 
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11
lllshahablll is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: I only noticed it now. You typed the name incorrectly. The correct name is funkySetFields.
Sorry I just typed it wrongly here
But the command was typed correct in terminal window
Still not being recognized!!!

Code:
funkySetFields
funkySetFields: command not found
lllshahablll is offline   Reply With Quote

Old   December 8, 2015, 08:17
Default
  #15
New Member
 
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11
lllshahablll is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: Please run the following command within the folder "swak4Foam":
Code:
gzip < make.log > make.log.gz
and attach the file "make.log.gz" in your next post. That way I can diagnose what went wrong with the build.
Dear Bruno

plz find the attached file
Attached Files
File Type: gz make.log.gz (1.7 KB, 14 views)
lllshahablll is offline   Reply With Quote

Old   December 8, 2015, 08:17
Default
  #16
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
edit 2:
Hi Shahabeddin,

What does this command give you?
Code:
ld --version
Best regards,
Bruno


Below is what I had posted originally.
________
Then I ask again: Please run the following command within the folder "swak4Foam":
Code:
gzip < make.log > make.log.gz
and attach the file "make.log.gz" in your next post. That way I can diagnose what went wrong with the build.

edit: Wow, we posted a few seconds apart. Give me a few minutes to test this with Ubuntu 15.10.

Last edited by wyldckat; December 8, 2015 at 11:41. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   December 9, 2015, 00:27
Default
  #17
New Member
 
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11
lllshahablll is on a distinguished road
Hi Bruno

the result is:

Code:
ld --version
GNU ld (GNU Binutils for Ubuntu) 2.25.1
Copyright (C) 2014 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later version.
This program has absolutely no warranty.
lllshahablll is offline   Reply With Quote

Old   December 9, 2015, 17:10
Default
  #18
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Shahabeddin,

I tested yesterday in a clean installation of Ubuntu 15.10 i386, with OpenFOAM 3.0 installed from the Deb package and I was able to build swak4Foam without any problems. My guess is that something happened while swak4Foam was being built and resulted in some files disappearing or becoming incompatible due to some strange reason.

I asked about the version for ld, because "gold" variant of ld is notable for triggering the kind of error you got, but from the output you provided it seems that you are using the "bfd" variant of ld.

Please try the following steps:
  1. Run the following commands:
    Code:
    cd $FOAM_RUN/../swak4Foam
    wclean all Utilities
    ./Allwmake > make.log 2>&1
    gzip < make.log > make.log.gz
    With any luck, this solves the problem. Either way, please attach the file "make.log.gz" to your next post.
  2. If it does not solve the problem, then run:
    Code:
    export > export.log
    gzip < export.log > export.log.gz
    Attach the file "export.log.gz" to your next post.
  3. And then run:
    Code:
    ls -l $(which mpicc)
    ls -l /etc/alternatives/mpicc
    And write on your post what these two commands above gave you.
Best regards,
Bruno


PS: I will only be able to answer again in ~21h from now.
wyldckat is offline   Reply With Quote

Old   December 10, 2015, 09:11
Question
  #19
New Member
 
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11
lllshahablll is on a distinguished road
Hi dear Bruno,

Code:
funkySetFields
funkySetFields: command not found
I still have problem with installing it.

make.log and export.log is attached.

and result of those two command is shown below:

Code:
ls -l $(which mpicc)
lrwxrwxrwx 1 root root 23 نوامب 25 05:54 /usr/bin/mpicc -> /etc/alternatives/mpicc
and the same in:

Code:
ls -l /etc/alternatives/mpicc
lrwxrwxrwx 1 root root 22 نوامب 25 05:54 /etc/alternatives/mpicc -> /usr/bin/mpicc.openmpi
Attached Files
File Type: gz make.log.gz (2.3 KB, 3 views)
File Type: gz export.log.gz (2.0 KB, 2 views)
lllshahablll is offline   Reply With Quote

Old   December 10, 2015, 18:09
Default
  #20
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Shahabeddin,

This is really strange . There is no clear indication of another OpenFOAM version interfering with your installation. And I'm not able to reproduce the same error message that you are getting.

A few more questions:
  1. Which installation instructions did you follow for installing OpenFOAM 3.0?
  2. Did you do any modifications to your installation of OpenFOAM 3.0?
  3. What does the following command give you?
    Code:
    ldd $(which blockMesh)
  4. And what does this command give you?
    Code:
    ls -l $FOAM_LIBBIN/$FOAM_MPI
  5. And this command?
    Code:
    md5sum $FOAM_LIBBIN/$FOAM_MPI/*
Because whatever is the problem, seems to be related to a possibly missing or corrupted "libPstream.so" file.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply


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
[OpenFOAM.org] Install OpenFOAM 2.4.x using system Scotch cbcoutinho OpenFOAM Installation 7 October 16, 2019 20:12
[swak4Foam] swak4Foam and OpenFoam 3.0.x fs82 OpenFOAM Community Contributions 38 September 10, 2018 18:44
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
[swak4Foam] Basic Error when installing swak4foam with foam extend 3.0 mnobrega OpenFOAM Community Contributions 6 April 1, 2014 02:47
OpenFOAM Install problem masb OpenFOAM 3 May 25, 2009 12:32


All times are GMT -4. The time now is 16:11.