|
[Sponsors] |
[swak4Foam] How to install swak4Foam in OF 2.3? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 8, 2015, 07:30 |
|
#21 |
New Member
Tomladian Bucinara
Join Date: Jan 2015
Posts: 18
Rep Power: 11 |
Hi Bruno,
Many thanks to your quick reply. As a new user, I am quite confused by the sentence "First, go into a good working folder". I would talk in detail for my question and appreciate for your time to read it. In my computer for the directory of "tomf@tomf-ThinkStation-D30:~/OpenFOAM/OpenFOAM-2.3.0", there are some folders such as "applications", "tutorials" etc, and I already created a folder named "FOAM_RUN". And I copied everything inside "tutorials" to the "FOAM_RUN" in case if I mess up things in FOAM_RUN I still have the original copy of "tutorials". And currently, I run the code under the directory of "tomf@tomf-ThinkStation-D30:~/OpenFOAM/OpenFOAM-2.3.0/FOAM_RUN/tutorials/combustion/reactingFoam". Everything goes fine till I need use swak4foam to change my inlet boundary condition. Then the problem is where I should install the swak4foam, inside the folder of "../OpenFOAM-2.3.0", or inside the "../OpenFOAM-2.3.0/FOAM_RUN/tutorials/combustion/reactingFoam", or inside somewhere else? Much thanks for your patience, and have a nice day. |
|
March 8, 2015, 08:49 |
|
#22 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Tom,
There is a big difference between "FOAM_RUN" and "$FOAM_RUN", where the first is a name and the second is a variable. For more details, please read this page: http://openfoamwiki.net/index.php/In...with_the_Shell Quote:
This folder: Code:
~/OpenFOAM/OpenFOAM-2.3.0/FOAM_RUN As I mentioned above, please read/study this page: http://openfoamwiki.net/index.php/In...with_the_Shell - hopefully things will be clearer then. Best regards, Bruno |
||
March 8, 2015, 10:03 |
|
#23 |
New Member
Tomladian Bucinara
Join Date: Jan 2015
Posts: 18
Rep Power: 11 |
Hi Bruno,
I read the content from the link and still do not know where to install Swak4foam. So, do you mean that Swak4foam could be installed anywhere inside the folder of ~/OpenFOAM/OpenFOAM-2.3.0? To make it clear, let us say somebody run the example case inside the ~/OpenFoam/OpenFOAM-2.3.0/tutorials/incompressible/icoFoam/cavity, but use a changeable flow condition on top of the cavity not a steady one. If the Swak4Foam is installed in ~/OpenFoam/OpenFOAM-2.3.0/swak4Foam, is it still OK? I understand I may ask sth. really tiny, but that is the thing that really hinder me. Wish you the best thank you. Tom |
|
March 8, 2015, 11:27 |
|
#24 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Tom,
OK, I guess it's easier to show you a clear example. Try running the following commands: Code:
mkdir -p $FOAM_RUN cd $FOAM_RUN pwd Then run these commands: Code:
cd .. pwd echo $HOME/OpenFOAM/$USER-$WM_PROJECT_VERSION This is where the instructions suggest that you place the source code for swak4Foam and build it. All of the possibilities listed in step #2 will create the new folder "swak4Foam". Best regards, Bruno |
|
March 9, 2015, 04:00 |
|
#25 |
New Member
Tomladian Bucinara
Join Date: Jan 2015
Posts: 18
Rep Power: 11 |
Hi Bruno,
It remains unsolved: after ./Allwmake it gives the following result Previously compiled for OpenFOAM 2.3.0 No file 'swakConfiguration '. Python etc won't work. See README for details Checking swak4Foam-version and generating file abort:no repository found in '/home/toml/OpenFOAM/toml-2.3.0/swak4Foam'(.hg not found)! Swak version is 0.3.1 Bison is version 3.0.2 swak4Foam only confirmed to work with Bison 2.x Consider running ./maintainanceScripts/compileRequirements.sh for a local bison-installation Set the environment variable DEVELOP_FOR_NEW_BISON if you want to continue anyway. Requirements for library not satisified. I see no sense in going on Check README .... your problem occured to 5 other people before and has been solved on .. Anyone can help, please, please Tom Last edited by Tom123; March 11, 2015 at 08:06. |
|
March 13, 2015, 17:34 |
|
#26 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Tom,
Quote:
Code:
Consider running ./maintainanceScripts/compileRequirements.sh for a local bison-installation This is also documented here: http://openfoamwiki.net/index.php/In....3.1_and_newer - section "2.2 swak4Foam 0.3.1 and newer" And I've added this new FAQ here: http://openfoamwiki.net/index.php/In...with_Bison_2.x Best regards, Bruno ------------ edit: In response to something you had written in your original post: Quote:
Last edited by wyldckat; March 13, 2015 at 17:40. Reason: see "edit:" |
|||
March 16, 2015, 15:12 |
|
#27 | |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Quote:
I am trying to install swak4Foam in OpenFOAM-2.3.1 on SLES 10 SPI. I have downloaded swak4Foam from above links. Then I followed the instructions given at HTML Code:
http://www.cfd-online.com/Forums/openfoam-installation/103805-swak4foam-3.html#post477609 Code:
./configure --prefix $PWD/../bison Code:
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH. GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended. GNU M4 1.4.15 uses a buggy replacement strstr on some systems. Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug. But I don't know how to install and set up m4-1.4.6 and then build bison-2.7 from that. Regards Hrushi |
||
March 21, 2015, 11:08 |
|
#28 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Hi Hrushi,
I've added and tested the instructions on how to build m4 here: http://openfoamwiki.net/index.php/In...ependencies#m4 In addition, I've added this issue to the "Understanding Error Messages" page: http://openfoamwiki.net/index.php/In...o_old_or_buggy Best regards, Bruno
__________________
|
|
March 23, 2015, 09:07 |
|
#29 | |
Member
Hrushikesh Khadamkar
Join Date: Jul 2010
Location: Mumbai
Posts: 68
Rep Power: 16 |
Hi Bruno,
Quote:
The installation was successful. Regards Hrushi |
||
April 20, 2015, 13:09 |
|
#30 |
Member
Mehtab
Join Date: Jan 2015
Posts: 41
Rep Power: 11 |
Hi,
I want to use groovyB for my simulation, but my variable pressure is related to temperature with exponential expression. Is it possible to use the exponential expression in groovyBC? |
|
April 20, 2015, 13:33 |
|
#31 |
New Member
Tomladian Bucinara
Join Date: Jan 2015
Posts: 18
Rep Power: 11 |
Hi,
It is OK to set any kind of condition you want by using swak4foam. However, if the boundary condition you set is reasonable is another story. (I want to make a metaphor: you could use money buy whatever, but the thing you buy is lawful or not is another thing). Best wishes. |
|
April 20, 2015, 13:37 |
|
#32 |
New Member
Tomladian Bucinara
Join Date: Jan 2015
Posts: 18
Rep Power: 11 |
I found your answer really helps, thanks very much. I want to make another metaphor. I think you, just like the fish thank the right water (I use right because if you put the some fish in salty water, it may die).
|
|
September 9, 2015, 06:49 |
|
#33 |
New Member
Vishal
Join Date: Feb 2013
Posts: 28
Rep Power: 13 |
Dear Bruno,
I was trying to compile swak4Foam for OF231 by using the following link: http://openfoamwiki.net/index.php/In...ependencies#m4 I was in the middle of installing m4-1.4.17. It went all right till ./configure. After this when i was running make command it showed me the following error. Will please tell me what is the error and what should I do to install swak4Foam correctly? Thanking you, |
|
September 9, 2015, 17:05 |
|
#34 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quote:
Therefore, I need to know how to reproduce the same error, for which I need the following details:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[swak4Foam] foam-extend-3.2 installing problem: swak4Foam failed to install due to Bison | lxwd | OpenFOAM Community Contributions | 1 | March 20, 2016 17:03 |
[swak4Foam] how does install swak4foam with OpenFOAM 3.0? | milad653279 | OpenFOAM Community Contributions | 24 | December 29, 2015 08:49 |
[swak4Foam] Install swak4Foam on OpenFOAM1.7.1 on Ubuntu 13.04 | kobayashi | OpenFOAM Community Contributions | 2 | January 5, 2014 18:33 |
[swak4Foam] install in OF 2.1 error | psk | OpenFOAM Community Contributions | 4 | July 25, 2013 12:48 |
[swak4Foam] fails in parallel with -otherTime? | Phicau | OpenFOAM Community Contributions | 3 | June 26, 2013 14:00 |