CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.com] OpenFOAM-1.5 on Ubuntu 10.04 (https://www.cfd-online.com/Forums/openfoam-installation/86225-openfoam-1-5-ubuntu-10-04-a.html)

kurne March 17, 2011 07:13

OpenFOAM-1.5 on Ubuntu 10.04
 
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.

lulo March 19, 2011 11:18

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.

kurne March 21, 2011 00:17

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.

lulo March 21, 2011 05:08

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

kurne March 31, 2011 03:15

Can anybody help me in solving this problem.

kurne March 31, 2011 08:10

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

lulo April 1, 2011 04:06

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

wyldckat April 2, 2011 08:27

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

kurne April 5, 2011 05:19

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.

dahlia-2005 April 13, 2011 13:01

dear lulo, you helped me a lot! thanks a lot!

ni-openfoam-user July 25, 2014 06:49

Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
 
1 Attachment(s)
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

ni-openfoam-user July 30, 2014 07:02

Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
 
Dear foamers,

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

Kind regards,

James

ni-openfoam-user August 5, 2014 09:51

Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
 
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

wyldckat August 5, 2014 12:35

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

ni-openfoam-user August 5, 2014 12:43

Installing OpenFOAM 1.5 on Unbuntu 12.04 (precise)
 
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

wyldckat August 5, 2014 13:31

Quote:

Originally Posted by ni-openfoam-user (Post 504506)
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.

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

ni-openfoam-user August 6, 2014 06:12

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

wyldckat August 13, 2014 13:59

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

ni-openfoam-user August 14, 2014 06:44

Thank you and BC query
 
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

wyldckat August 14, 2014 06:47

Hi James,

You're welcome!
Quote:

Originally Posted by ni-openfoam-user (Post 505941)
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


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