|
[Sponsors] |
March 17, 2011, 08:13 |
OpenFOAM-1.5 on Ubuntu 10.04
|
#1 |
Member
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16 |
Dear All
I am trying to install OpenFOAM 1.5 on ubuntu 10.04 and I have taken the source and binary files from http://sourceforge.net/projects/foam/files/foam/1.5/. I have successfully extract the all the files when i am run ./Allwmake i got the following error and i have install all the necessity packages. The error is from parcels/derived/basicKinematicParcel/basicKinematicParcel.C:27: /usr/include/bits/stdio.h: In function ‘__ssize_t getline(char**, size_t*, FILE*)’: /usr/include/bits/stdio.h:118: error: ‘__getdelim’ was not declared in this scope make: *** [Make/linuxGccDPOpt/basicKinematicParcel.o] Error 1 + wmake libso dieselSpray Making dependency list for source file parcel/parcel.C Making dependency list for source file parcel/parcelFunctions.C Making dependency list for source file r/include/bits/stdio.h:118: error: ‘__getdelim’ was not declared in this scope make: *** [Make/linuxGccDPOpt/evaluateError.o] Error 1 + cd applications + ./Allwmake Will anybody help me.Thanks In Advance.
__________________
Simulation Is Determination Of Imagination Towards Approximation ® Best Regards Mubeen K Kurne Last edited by kurne; March 19, 2011 at 02:21. |
|
March 19, 2011, 12:18 |
|
#2 |
Member
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 15 |
hi
I am not an expert in the field so i really do not understand the meaning of your error. Nevertheless, i just installed OpenFoam 1.5-dev in a laptop with Ubuntu 10.04 and all the packages i needed to be installed are: sudo apt-get install rpm g++ alien build-essential cmake flex bison binutils-dev byacc texinfo m4 gcc-multilib libglib2.0-dev libglu1-mesa-dev libiodbc2-dev libjpeg62-dev libmng-dev libmpfr1ldbl libmysqlclient15-dev libpng12-dev libpq-dev libsqlite0-dev libtiff4-dev mesa-common-dev xorg-dev zlib1g-dev Try this and you should be able to get it done. |
|
March 21, 2011, 01:17 |
|
#3 |
Member
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16 |
Hi luca
I have install the packages which you have mention but still i am facing the same error.Few things I want to ask you from where you did get this list of packages and have you install gcc 4.3.1 or with newer version of gcc you are trying to install. Because i am unable to install gcc 4.3.1 as i have gcc 4.4.3.If you have install gcc 4.3.1 then please let me know the procedure of it. Thanks In Advance.
__________________
Simulation Is Determination Of Imagination Towards Approximation ® Best Regards Mubeen K Kurne |
|
March 21, 2011, 06:08 |
|
#4 |
Member
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 15 |
Hi
Of course if you have a newer version of gcc already installed is fine, you do not need the old one. The list I made it myself when i installed it for the first time, there might be some package more than strictly needed. I honestly don´t know the error you get, but I can see that you have downloaded the source files from a different position. From a terminal I typed: svn co https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev/ You might find interesting this guideline: http://www.openfoam.com/download/source.php In the following I attach the guideline I did: notes on Compilation of OpenFoam 1.5-dev. Luca Locatelli/february 2011 1. Create a folder called OpenFOAM on your home directory 2. Terminal: svn co https://openfoam-extend.svn.sourcefo...nFOAM-1.5-dev/ 3. Download and extract (´tar xzf FILE_NAME.gtgz´) the third party. http://sourceforge.net/projects/foam/files/foam/1.5/ 4. Open the $HOME/.bashrc file and add the following at the end of the script (from a terminal ´nano FILE_NAME´) . $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc 5. type ´. $HOME/.bashrc´ in the current terminal window 6. From the terminal sudo apt-get install rpm g++ alien build-essential cmake flex bison binutils-dev byacc texinfo m4 gcc-multilib libglib2.0-dev libglu1-mesa-dev libiodbc2-dev libjpeg62-dev libmng-dev libmpfr1ldbl libmysqlclient15-dev libpng12-dev libpq-dev libsqlite0-dev libtiff4-dev mesa-common-dev xorg- dev zlib1g-dev 6. Build the OpenFOAM-1.5-dev ./Allwmake 7. Build the ThirdParty ./Allwmake 8. Download ParaView, extract it and place it in your home directory (in case you reinstall openFoam you do not reinstall ParaView) http://www.paraview.org/paraview/res.../software.html 9. Open the $HOME/.bashrc file and add the following at the end of the script (So that i can open paraView from the case directory by typing ´paraView´) alias paraView='/home/lulo/ParaView-3.10.0-RC1-Linux-x86_64/bin/paraview' 10.Remember that paraView read file with ´.foam´ extension. Than we must .touch CASE_NAME.foam which creats a bridge for reading the results Hope it will be helpful Luca |
|
March 31, 2011, 04:15 |
|
#5 |
Member
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16 |
Can anybody help me in solving this problem.
__________________
Simulation Is Determination Of Imagination Towards Approximation ® Best Regards Mubeen K Kurne |
|
March 31, 2011, 09:10 |
|
#6 |
Member
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16 |
Dear Luca
I have done the steps tell by you and i am successfully installed the para view but will you please explain me the steps number 10 mention above i.e. 10.Remember that paraView read file with ´.foam´ extension. Than we must .touch CASE_NAME.foam Will i run the paraview by typing the .touch cavity.foam but it shows the error and when i type touch cavity.foam it also not working.Will you please explain the use of para view by cavity case. Thanks In Advance
__________________
Simulation Is Determination Of Imagination Towards Approximation ® Best Regards Mubeen K Kurne |
|
April 1, 2011, 05:06 |
|
#7 |
Member
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 15 |
Hi Kurne
did you finallly manage to install openfoam? about the step 10... if you want to lounch paraview you simply type (since we have done the alias in step 9 which is a shortcut) paraView & the symble & allow to run in backprocessing so you can use the terminal while you have para vieaw opened the thing is that paraview is able to open files with .foam extention that is why we want to create a dummy file with this extention. 'tuoch' is a command to create whatever file you want. in the cavity case in your cavity directory type touch cavity.foam and you will see that now yoou have this file in your directory. when u open paraview go to file, open and you select the dummy file. let me know how it is going... regards luca |
|
April 2, 2011, 09:27 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
Kurne sent me a PM the other day and only now I've got the solution: Blast from the past: installing OpenFOAM 1.5 in modern Linux boxes If you have trouble using that cookbook script in Ubuntu, please post the problems on this very thread! Best regards, Bruno
__________________
|
|
April 5, 2011, 06:19 |
|
#9 |
Member
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16 |
Dear Bruno
Thanks A Lot.I am very much happy that you have given your valuable time for my query and made a scripting file which can be directly use to install OpenFOAM Oldie versions. You have mention for the 64 bit and i am 32 bit but it does matter because i have install OpenFOAM 1.5 only para view is not working but i can see the results in newer versions which i have install too. Thanking you once again. You have done a very good job.
__________________
Simulation Is Determination Of Imagination Towards Approximation ® Best Regards Mubeen K Kurne |
|
April 13, 2011, 14:01 |
|
#10 |
New Member
Join Date: Nov 2010
Posts: 16
Rep Power: 16 |
dear lulo, you helped me a lot! thanks a lot!
|
|
July 25, 2014, 07:49 |
Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
|
#11 |
Member
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13 |
Dear Bruno,
Ubuntu: 12.04 (precise) 32 bit Unbuntu gcc version 4.6.3 OpenFOAM versions: 1.7.1, 2.2 and 2.3 I have been following your instructions to install OpenFOAM 1.5 on my machine (I wish to test the steadyReactingFoam solver). http://www.cfd-online.com/Forums/blo...nux-boxes.html Unfortunately I have been unable to so far install it correctly. As I have a 32 bit version I'm using v2 attachment as it "works for both 64bit and 32bit builds as well". I receive the following message during the installation: " 'build-gcc_v4.tar.gz' saved make of gcc failed - log availabe .../buildLogs/gcc-Gcc43_make.log " Before this message, during the installation, a warning message is also printed: " 'wmakeCheckPwd' saved Warning in ... OpenFOAM-1.5/etc/settings.sh: cannot find ...OpenFOAM/ThirdParty-1.5/platforms/linux/gcc-4.3.3 installation. Please install this complier version or if you wish to use the system compiler, change the 'compilerInstall' setting to 'system' in this file " Please find attached the gcc-Gcc43_make.log file. Could you please point me in the direction of where I'm going wrong. (Please consider that I'm quite new to OpenFOAM and Ubuntu) Kind regards, James |
|
July 30, 2014, 08:02 |
Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
|
#12 |
Member
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13 |
Dear foamers,
Could someone please provide me with guidance on this installation problem? Kind regards, James |
|
August 5, 2014, 10:51 |
Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
|
#13 |
Member
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13 |
Dear cfd-online users,
I ask again if someone could please give me some guidance on how to install OpenFoam 1.5 using the procedure outlined by Bruno. I am facing quite a pressing deadline and any help would be much appreciated. Kind reagrds, James |
|
August 5, 2014, 13:35 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Greetings James,
Sorry for not answering sooner, but it's been complicated for me to have the time to answer questions here on the forum. I didn't give you an answer yesterday, when I did some catching up on threads that still need answers, because I didn't manage to use the machine I usually use for these kinds of tests with OpenFOAM. And I'm not certain when I'll be able to look into this . If you don't have much time left, I suggest that you use a virtual machine and install Ubuntu 10.04 in it, since the instructions were tested on that version of Ubuntu. For creating and using virtual machines, you can use VirtualBox or VMPlayer, for which instructions you should easily find online. One example: http://openfoamwiki.net/index.php/Ho..._VMware_Player Best regards, Bruno
__________________
|
|
August 5, 2014, 13:43 |
Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
|
#15 |
Member
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13 |
Bruno,
Thank you for getting back to me. My deadline is still manageable (1st November) and if this simulation is successful I will be using OpenFOAM 1.5 along with SteadyReactingFoam to undertake a large body of work. Forgive me it I am incorrect but is it the case that it is not possible to run parallel simulations when using a virtual machine? (My simulations will have around 1 million CVs. Therefore, ideally I would prefer to install OpenFOAM 1.5 on my current version of Ubuntu. Thanks again for getting back to me. James |
|
August 5, 2014, 14:31 |
|
#16 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
It is possible to use multiple cores in a single virtual machine; and if the real machine has enough RAM, it should be possible to run the case inside the virtual machine. In other words, if the real machine has 8GB of RAM and 4 cores, then the virtual machine can also use 4 cores and 6 or 7GB of RAM. Problem is if you need to use more than one real machine to run your case, in which case it would be considerably complicated to configure multiple virtual machines to communicate between them, going through the network connection of each real machine. It's possible, but complicated to configure. In theory, it's also possible in Linux to use chroot to use another Linux Distribution from within your current installation, but it's a bit complicated to do as well. By the way, are you 100% positively certain that you want to use OpenFOAM 1.5? I ask this because there is also:
|
||
August 6, 2014, 07:12 |
|
#17 |
Member
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13 |
My intention is to run a steady state simulation using the "alternateSteadyReactingFoam" solver which is available for use with OpenFoam 1.5x (you are right that I should install this "x" bug fixed version of OpenFoam 1.5).
http://openfoamwiki.net/index.php/Co...teReactingFoam Ideally I would prefer to use this solver on OpenFoam 2.3.0 but I'm afraid I do have the experience or expertise to make the necessary changes to the "alternateSteadyReactingFoam" solver to allow it to run in 2.3.0. With this in mind what do you think would be the best way to move forward. I guess, as you say, I could install Ubuntu 10.04 on a virtual machine and then look to install OpenFoam 1.5x on it following your previous instructions? http://www.cfd-online.com/Forums/blo...nux-boxes.html These instructions are for the installation of 1.5x? Thanks again for taking the time to answer my queries. James |
|
August 13, 2014, 14:59 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi James,
And finally I've managed to write and test the instructions. Have a look at the following pages, for OpenFOAM 1.5 and 1.5.x:
edit: I forgot to mention something about "alternateSteadyReactingFoam": it looks like a pretty complicated solver, specially because it depends on Cantera. Try contacting the original authors about this. Good luck! Best regards, Bruno
__________________
Last edited by wyldckat; August 13, 2014 at 15:01. Reason: see "edit:" |
|
August 14, 2014, 07:44 |
Thank you and BC query
|
#19 |
Member
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13 |
Dear Bruno,
Thank you so much for taking the time to complete this request from me, it is very kind of you. I am aware that the "alternateSteadyReactingFoam" looks to be quite a complicated solver, however as I intend to use it for a Hydrogen release and dispersion case only I am hoping to bypass (most of) these complexities. The aim of this work is to compare the OpenFoam results to our FLUENT model. The Fluent case was run as incompressible, steady state so I am trying to keeping my OpenFoam simulation as consistent as possible with the previous FLUENT results. I am wondering, if you are able to further indulge me, I am also running this simulation as a transient case using OpenFoam 2.3.0. I am having alot of trouble with my boundary conditions. The detailed description of the scenario is given below (4th post). http://www.cfd-online.com/Forums/ope...tml#post505532 Could you please comment on what you would suggest to be appropriate for the "to atmosphere" boundary conditions (as you can see from this thread this seems to be quite a common problem). Again thank you for helping me thus far Kind regards, James |
|
August 14, 2014, 07:47 |
|
#20 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Hi James,
You're welcome! Quote:
Best regards, Bruno |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] Can't find installation instruction for Openfoam 2.4.x , on Ubuntu 16.04 | titanium | OpenFOAM Installation | 14 | February 20, 2020 12:46 |
[OpenFOAM.org] Using OpenFOAM 2.3.0 from Deb pack in Ubuntu 14.04 + ParaView 5 from OpenFOAM 4.1 | ad2eb | OpenFOAM Installation | 12 | May 28, 2017 15:30 |
[OpenFOAM.org] OpenFOAM 2.40 installation on Ubuntu 12.04 LTS | eddykendo | OpenFOAM Installation | 1 | July 18, 2015 18:38 |
Can we install OpenFOAM v2.0.x in Ubuntu 10.04 LTS? | hahajiushixing | OpenFOAM | 2 | January 10, 2012 21:37 |
OpenFOAM on Ubuntu 10.04 LTS | chinc | OpenFOAM | 6 | June 2, 2010 15:38 |