|
[Sponsors] |
[swak4Foam] how does install swak4foam with OpenFOAM 3.0? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 5, 2015, 08:55 |
how does install swak4foam with OpenFOAM 3.0?
|
#1 |
Member
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14 |
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, |
|
December 5, 2015, 11:12 |
|
#2 |
New Member
Dawid Gacek
Join Date: Nov 2015
Location: Poland
Posts: 4
Rep Power: 11 |
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 |
|
December 6, 2015, 02:30 |
|
#3 | |
Member
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14 |
Quote:
Thanks I do that but have problem again. I don't know what to do. do you install swak4foam on openfoam 3??? |
||
December 6, 2015, 05:36 |
|
#4 |
New Member
Dawid Gacek
Join Date: Nov 2015
Location: Poland
Posts: 4
Rep Power: 11 |
No, i did it on OpenFoam 2.4- thought it would work on OF3.0 too :/
|
|
December 6, 2015, 08:55 |
|
#5 |
Member
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14 |
||
December 6, 2015, 09:09 |
|
#6 |
New Member
Dawid Gacek
Join Date: Nov 2015
Location: Poland
Posts: 4
Rep Power: 11 |
Yes, OF 240 and ubuntu 14.04
|
|
December 6, 2015, 15:22 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
|
|
December 7, 2015, 09:33 |
|
#8 | |
Member
Milad Setareh
Join Date: Oct 2012
Location: Tehran, Iran
Posts: 35
Rep Power: 14 |
Quote:
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? |
||
December 7, 2015, 13:41 |
|
#9 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi Milad,
Quote:
In addition, what does the following command give you when you have OpenFOAM 2.2 actived? Code:
ls -l $FOAM_USER_LIBBIN Bruno |
||
December 7, 2015, 23:39 |
|
#10 |
New Member
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11 |
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 |
|
December 8, 2015, 05:36 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
gzip < make.log > make.log.gz |
||
December 8, 2015, 06:33 |
unable to install swak4foam on OF3.0.0
|
#12 |
New Member
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11 |
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 |
|
December 8, 2015, 08:08 |
|
#14 | |
New Member
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11 |
Quote:
But the command was typed correct in terminal window Still not being recognized!!! Code:
funkySetFields funkySetFields: command not found |
||
December 8, 2015, 08:17 |
|
#15 | |
New Member
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11 |
Quote:
plz find the attached file |
||
December 8, 2015, 08:17 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
edit 2:
Hi Shahabeddin, What does this command give you? Code:
ld --version 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 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:" |
|
December 9, 2015, 00:27 |
|
#17 |
New Member
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11 |
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. |
|
December 9, 2015, 17:10 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
Bruno PS: I will only be able to answer again in ~21h from now. |
|
December 10, 2015, 09:11 |
|
#19 |
New Member
Shahabeddin
Join Date: Oct 2015
Location: Iran
Posts: 16
Rep Power: 11 |
Hi dear Bruno,
Code:
funkySetFields funkySetFields: command not found 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 Code:
ls -l /etc/alternatives/mpicc lrwxrwxrwx 1 root root 22 نوامب 25 05:54 /etc/alternatives/mpicc -> /usr/bin/mpicc.openmpi |
|
December 10, 2015, 18:09 |
|
#20 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
Best regards, Bruno |
|
|
|
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 |