|
[Sponsors] |
[swak4Foam] swak4foam on supercomputers with OpenFOAM 6 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 9, 2019, 11:32 |
swak4foam on supercomputers with OpenFOAM 6
|
#1 |
New Member
Join Date: Nov 2015
Posts: 1
Rep Power: 0 |
Hi guys,
I'm trying to install swak4foam on my local account of a supercomputer. I have already installed OpenFOAM 6 downloading the source pack from https://openfoam.org/version/6, and I cloned swak4foam for OF6 typing the command hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam -u develop The problem is that I was forced to compile OF in the OpenFOAM-6 directory, while the libraries of swak4foam are installed in the <username>-6 directory. Is it possible to change the destination of swak4foam libraries by modifying the Allwmake file? Thank you in advance. |
|
January 9, 2019, 18:51 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: There are several ways you can do this, but it really depends on how exactly OpenFOAM was installed. For example, the convention in OpenFOAM is to have 3 types of folders for binaries:
Code:
( export FOAM_USER_LIBBIN=$FOAM_SITE_LIBBIN export FOAM_USER_APPBIN=$FOAM_SITE_APPBIN ./Allwmake ) Or you can rely on swak4Foam's own "swakConfiguration" file to define the configuration you want to use... so by running these commands: Code:
echo 'export FOAM_USER_LIBBIN=$FOAM_SITE_LIBBIN' >> swakConfiguration echo 'export FOAM_USER_APPBIN=$FOAM_SITE_APPBIN' >> swakConfiguration ./Allwmake Either way, OpenFOAM's default settings will add the variable "FOAM_SITE_LIBBIN" into the "LD_LIBRARY_PATH" variable on the shell, along with "FOAM_SITE_APPBIN" into "PATH". That way it should work out of the box without additional hacks...
__________________
|
|
February 24, 2019, 17:46 |
|
#3 |
New Member
Max
Join Date: Feb 2017
Posts: 11
Rep Power: 9 |
Hi wyldckat,
i have problem install swak4Foam, i am using openfoam 6 and later on i used an alias of6 , i followed the instruction you wrote above and this is a screen of the entries and the response alain@alain-Inspiron-5570:~/swak4Foam$ echo 'export FOAM_USER_LIBBIN=$FOAM_SITE_LIBBIN' >> swakConfiguration alain@alain-Inspiron-5570:~/swak4Foam$ echo 'export FOAM_USER_APPBIN=$FOAM_SITE_APPBIN' >> swakConfiguration alain@alain-Inspiron-5570:~/swak4Foam$ ./Allwmake Current OpenFOAM version is . This is a clean install /home/alain/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/alain/swak4Foam/privateRequirements Checking swak4Foam-version and generating file Swak version is 0.4.3 hg info: 7ed4be75fffd+ (develop) ./Allwmake: Zeile 70: wmake: Befehl nicht gefunden 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 alain@alain-Inspiron-5570:~/swak4Foam$ please what i am doing wrong? |
|
February 24, 2019, 18:45 |
|
#4 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer:
Translating the relevant error message: to English Quote:
Questions:
__________________
|
||
August 2, 2020, 21:11 |
Installing swak4foam on a cluster
|
#5 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 |
Hi all,
I have used the following commands to install swak4foam in a frontal node in a cluster. hg clone http://hg.code.sf.net/p/openfoam-extend/swak4Foam cd swak4Foam ./AllwmakeAll The swak4foam was installed at the home directory. I then loaded openfoam v6 to the cluster, but it seems that it did not recognize the swak4foam installation. The error: "funkySetFields: command not found" I am wondering if there is any especial treatment to make swak4foam working on the cluster. I did the same steps on my local machine and it is working well. I appreciate your assistance. |
|
December 27, 2020, 17:26 |
|
#6 |
Senior Member
Join Date: Jul 2019
Posts: 148
Rep Power: 7 |
Hi, I would appreciate any reply. Thanks.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting Started with OpenFOAM | wyldckat | OpenFOAM | 26 | June 21, 2024 07:54 |
[swak4Foam] swak4Foam for openfoam 5 | linox | OpenFOAM Community Contributions | 16 | February 16, 2020 06:13 |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days | joegi.geo | OpenFOAM Announcements from Other Sources | 0 | October 1, 2016 20:20 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 12:50 |