CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] OpenFOAM-1.5 on Ubuntu 10.04

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 17, 2011, 08:13
Default OpenFOAM-1.5 on Ubuntu 10.04
  #1
Member
 
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16
kurne is on a distinguished road
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.
kurne is offline   Reply With Quote

Old   March 19, 2011, 12:18
Default
  #2
Member
 
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 15
lulo is on a distinguished road
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.
lulo is offline   Reply With Quote

Old   March 21, 2011, 01:17
Default
  #3
Member
 
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16
kurne is on a distinguished road
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
kurne is offline   Reply With Quote

Old   March 21, 2011, 06:08
Default
  #4
Member
 
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 15
lulo is on a distinguished road
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
lulo is offline   Reply With Quote

Old   March 31, 2011, 04:15
Default
  #5
Member
 
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16
kurne is on a distinguished road
Can anybody help me in solving this problem.
__________________
Simulation Is Determination Of Imagination Towards Approximation ®


Best Regards

Mubeen K Kurne
kurne is offline   Reply With Quote

Old   March 31, 2011, 09:10
Default
  #6
Member
 
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16
kurne is on a distinguished road
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
kurne is offline   Reply With Quote

Old   April 1, 2011, 05:06
Default
  #7
Member
 
luca
Join Date: Feb 2011
Posts: 34
Rep Power: 15
lulo is on a distinguished road
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
lulo is offline   Reply With Quote

Old   April 2, 2011, 09:27
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   April 5, 2011, 06:19
Default
  #9
Member
 
Kurne
Join Date: Aug 2010
Location: Pune, INDIA
Posts: 88
Rep Power: 16
kurne is on a distinguished road
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
kurne is offline   Reply With Quote

Old   April 13, 2011, 14:01
Default
  #10
New Member
 
Join Date: Nov 2010
Posts: 16
Rep Power: 16
dahlia-2005 is on a distinguished road
dear lulo, you helped me a lot! thanks a lot!
dahlia-2005 is offline   Reply With Quote

Old   July 25, 2014, 07:49
Default Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
  #11
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
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
Attached Files
File Type: zip gcc-Gcc43_make.zip (96.6 KB, 5 views)
ni-openfoam-user is offline   Reply With Quote

Old   July 30, 2014, 08:02
Default Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
  #12
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
Dear foamers,

Could someone please provide me with guidance on this installation problem?

Kind regards,

James
ni-openfoam-user is offline   Reply With Quote

Old   August 5, 2014, 10:51
Default Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
  #13
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
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
ni-openfoam-user is offline   Reply With Quote

Old   August 5, 2014, 13:35
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   August 5, 2014, 13:43
Default Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
  #15
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
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
ni-openfoam-user is offline   Reply With Quote

Old   August 5, 2014, 14:31
Default
  #16
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by ni-openfoam-user View Post
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.
I was hoping that you were just trying to validate if using OpenFOAM 1.5 in comparison to a more recent version would still give you the same results, for which a smaller case would likely be enough.
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:
  • OpenFOAM 1.5.x - which is the bug fix version of OpenFOAM 1.5.
  • OpenFOAM 1.5-dev - which is derived from 1.5.x and it's reaaaaally different in many features from the original 1.5.x. Essentially, 1.5-dev is the predecessor to 1.6-ext (which is the predecessor to foam-extend 3.0).
wyldckat is offline   Reply With Quote

Old   August 6, 2014, 07:12
Default
  #17
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
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
ni-openfoam-user is offline   Reply With Quote

Old   August 13, 2014, 14:59
Default
  #18
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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:
I tested on 32 and 64-bit versions of Ubuntu 12.04.


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
castillo likes this.
__________________

Last edited by wyldckat; August 13, 2014 at 15:01. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   August 14, 2014, 07:44
Default Thank you and BC query
  #19
Member
 
James
Join Date: Jul 2013
Posts: 38
Rep Power: 13
ni-openfoam-user is on a distinguished road
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
ni-openfoam-user is offline   Reply With Quote

Old   August 14, 2014, 07:47
Default
  #20
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi James,

You're welcome!
Quote:
Originally Posted by ni-openfoam-user View Post
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).
Sorry, that's beyond my level of expertise

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 14:01.