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] how does install swak4foam with OpenFOAM 3.0? (https://www.cfd-online.com/Forums/openfoam-community-contributions/163749-how-does-install-swak4foam-openfoam-3-0-a.html)

milad653279 December 5, 2015 07:55

how does install swak4foam with OpenFOAM 3.0?
 
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, :)

DawidG December 5, 2015 10:12

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 :)

milad653279 December 6, 2015 01:30

Quote:

Originally Posted by DawidG (Post 576325)
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???

DawidG December 6, 2015 04:36

No, i did it on OpenFoam 2.4- thought it would work on OF3.0 too :/

milad653279 December 6, 2015 07:55

Quote:

Originally Posted by DawidG (Post 576393)
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?

DawidG December 6, 2015 08:09

Yes, OF 240 and ubuntu 14.04

wyldckat December 6, 2015 14:22

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

milad653279 December 7, 2015 08:33

Quote:

Originally Posted by wyldckat (Post 576468)
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?

wyldckat December 7, 2015 12:41

Hi Milad,

Quote:

Originally Posted by milad653279 (Post 576619)
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

lllshahablll December 7, 2015 22:39

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

wyldckat December 8, 2015 04:36

Quote:

Originally Posted by lllshahablll (Post 576724)
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.

lllshahablll December 8, 2015 05:33

unable to install swak4foam on OF3.0.0
 
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? :confused:

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


wyldckat December 8, 2015 05:47

Quote:

Originally Posted by lllshahablll (Post 576772)
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.

lllshahablll December 8, 2015 07:08

Quote:

Originally Posted by wyldckat (Post 576777)
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 December 8, 2015 07:17

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 576758)
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

wyldckat December 8, 2015 07:17

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.

lllshahablll December 8, 2015 23:27

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.


wyldckat December 9, 2015 16:10

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.

lllshahablll December 10, 2015 08:11

2 Attachment(s)
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


wyldckat December 10, 2015 17:09

Hi Shahabeddin,

This is really strange :confused:. 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


All times are GMT -4. The time now is 21:12.