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

Installation of OpenFOAM 1.5-dev and its fitness for FSI?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 19, 2010, 06:30
Default Installation of OpenFOAM 1.5-dev and its fitness for FSI?
  #1
New Member
 
Martin Vymazal
Join Date: Dec 2009
Posts: 16
Rep Power: 16
Martin_ is on a distinguished road
Dear OpenFOAM users,

after a bit of fighting with the computer, I managed to install OpenFOAM-1.5-dev. The script which I used to install is in the attachment and anyone is welcome to use/modify it as they wish.
You just need to unpack (gzip -d InstallOF-1.5-dev.sh.gz ) and make the script executable: chmod u+x InstallOF-1.5-dev.sh
Finally, run the script: ./InstallOF-1.5-dev.sh

I installed the svn revision 1580 and recently (18. 1. 2010) upgraded with no problem. However, I cannot guarantee that the script will work on other people's computers and it might need a bit of tweaking on different systems. I tested on these two machines:

a) Arch Linux with kernel 2.6.32, 64 bit desktop installation with Quad Core CPU, gcc 4.4.2

b) Ubuntu 9.04 (Jaunty) with kernel 2.6.28-17, 32 bit system on a laptop with Dual Core CPU, gcc 4.3.3

My main resource while trying to install OF was the OpenFOAM wiki which describes how to compile OpenFOAM 1.6 from the git repository.

I did not try to compile extra applications like paraFoam (I simply use foamToVTK to convert simulation output and visualize with the latest paraview).

UPDATE: I moved the second part of my post (question about OpenFOAM and fluid-structure simulations) to another forum, since nobody cared to reply here.

Best regards,

Martin Vymazal
Attached Files
File Type: gz InstallOF-1.5-dev.sh.gz (586 Bytes, 142 views)

Last edited by Martin_; January 20, 2010 at 06:17.
Martin_ is offline   Reply With Quote

Old   March 2, 2010, 05:39
Default installation of openfoam 1.5-dev in mandriva
  #2
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
Dear OpenFOAM users,

I am trying to install OpenFOAM 1.5-dev on Mandriva 2008.1. But i am not able to install it. I can work in different OpenFOAM Versions such as V1.4.1, 1.5,1.6,1.6.x. If anyone installed this version please give me the full installation procedure starting from initial point.

Best regards,

NAVEEN.K.M
naveen is offline   Reply With Quote

Old   March 2, 2010, 16:48
Default installation of openfoam 1.5-dev in mandriva
  #3
New Member
 
Martin Vymazal
Join Date: Dec 2009
Posts: 16
Rep Power: 16
Martin_ is on a distinguished road
Hi Naveen,

can you be more specific about your problems? What exactly did you try? At what point does the installation fail?

Best,

Martin
Martin_ is offline   Reply With Quote

Old   March 3, 2010, 02:03
Default Installation of OpenFOAM 1.5-dev on mandriva
  #4
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
Hi Martin_

I have downloaded OpenFOAM-1.5-dev.tar.gz and ThirdParty.General.gtgz from OpenFOAM website and i have untarred it, everything is ok and also i have untarred the binary files from 1.5 as usual, but after sourcing 1.5-dev, i got the below 2 critical errors after foamInstallationTest, i dont dont where i am going wrong.If you find solution for this please let me know and i can follow your procedure for installation of 1.5-dev on mandriva 2008.1.


System
[dev@soorya ~]$ foamInstallationTest
Executing /home/dev/OpenFOAM/OpenFOAM-1.5-dev/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: soorya
OS: Linux version 2.6.24.7-desktop-3mnb
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/dev/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/dev/OpenFOAM/dev-1.5-dev yes no
$WM_THIRD_PARTY_DIR /home/dev/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/dev/OpenFOAM/OpenFOAM-1.5-dev yes yes yes

$FOAM_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_USER_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR .../dev/OpenFOAM/OpenFOAM-1.5-dev/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OpenFOAM-1.5-dev/lib/linux64GccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...FOAM/dev-1.5-dev/lib/linux64GccDPOpt yes yes no
$MPI_ARCH_PATH ...nmpi-1.2.6/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : 4.2.3
Minimum required: 4.2.0

gcc 4.2.3
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.19 /bin/tar
icoFoam
WARNING: Conflicting installations:
OpenFOAM settings : /home/dev/OpenFOAM/OpenFOAM-1.5-dev/applications/bin/linux64GccDPOpt/icoFoam
current path :
CRITICAL ERROR

-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_soorya Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 2 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.


---Regards----

NAVEEN.K.M
naveen is offline   Reply With Quote

Old   March 3, 2010, 03:27
Default Installation of OpenFOAM 1.5-dev on mandriva
  #5
New Member
 
Martin Vymazal
Join Date: Dec 2009
Posts: 16
Rep Power: 16
Martin_ is on a distinguished road
Hi Naveen,

make sure you source only one OpenFOAM bashrc at a time (you have multiple OpenFOAM installations if I understand you correctly).
How did you install OpenFOAM (I'm not talking about third-party files)? Did you download a precompiled version from somewhere or you compiled the sources? I installed OpenFOAM-1.5-dev by compiling the source tree after checking out from the svn repository. I also have a gcc error message after running foamInstallationTest, yet I can run testcases.

Best,

Martin
Martin_ is offline   Reply With Quote

Old   March 3, 2010, 04:11
Default Installation of OpenFOAM 1.5-dev on mandriva
  #6
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
Hi Martin

I have downloaded OpenFOAM-1.5-dev.tar.gz and ThirdParty.General.gtgz from http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/and i have untarred it in OpenFOAM, it doesnt work.even i dont know how to compile from svn repository.In order to get svn repository work wat i have to do in mandriva and how to make svn update to work.If you know please let me know.

Best,

NAVEEN.K.M
naveen is offline   Reply With Quote

Old   March 3, 2010, 04:59
Default Installation of OpenFOAM 1.5-dev on mandriva
  #7
New Member
 
Martin Vymazal
Join Date: Dec 2009
Posts: 16
Rep Power: 16
Martin_ is on a distinguished road
Hi Naveen,

you'll need subversion. It looks like in Mandriva, you have to install the package subversion.rpm and during the installation, you choose a library called 'subversion-client.dav'. I guess Mandriva has some sort of package manager GUI, which you can use to search for 'subversion'. If you have subversion successfully installed, you can type 'which svn' in command line and you should see something like '/usr/bin/svn'. This means that svn is in your system. With svn installed, you can use it to download the source code of OpenFOAM:
svn co "path_to_code_repository" "my_sources_folder" which will check out the sources and put them in 'my_sources_folder".

You can download the script I posted above and look at the commands inside. The script can be unpacked by typing

gzip -d InstallOF-1.5-dev.sh.gz

Best,
Martin
Martin_ is offline   Reply With Quote

Old   March 3, 2010, 05:23
Default installation of openfoam 1.5-dev in mandriva
  #8
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
Hi Martin,

I have installed subversion as you told but i dont have 'subversion-client.dev' as you mentioned. I got '/usr/bin/svn' when i typed 'which svn'.As you mentioned i tried to download the source code of OpenFOAM like: but i am not succeeded..

svn co https://openfoam-extend.svn.sourcefo...enFOAM-1.5-dev

In my home folder there is is a folder called svnroot as been created.

when i put above command i got the below eroor message in both OpenFOAM as well as in svnroot

[dev@soorya svnroot]$ svn co https://openfoam-extend.svn.sourcefo...enFOAM-1.5-dev
svn: PROPFIND request failed on '/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev'
svn: PROPFIND of '/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev': Could not resolve hostname `openfoam-extend.svn.sourceforge.net': Temporary failure in name resolution (https://openfoam-extend.svn.sourceforge.net)

can you tell me where i have to put tat code.

Regards

NAVEEN
naveen is offline   Reply With Quote

Old   March 3, 2010, 05:54
Default installation of openfoam 1.5-dev in mandriva
  #9
New Member
 
Martin Vymazal
Join Date: Dec 2009
Posts: 16
Rep Power: 16
Martin_ is on a distinguished road
Hi Naveen,

1) go to your home folder: cd $HOME
2) If you have OpenFOAM-1.5-dev installation there and this installation doesn't work (you don't need to keep it), type rm -r OpenFOAM-1.5-dev
3) try to check out again the sources the same way you did before:

svn co https://openfoam-extend.svn.sourcefo...enFOAM-1.5-dev

This should create a folder OpenFOAM-1.5-dev (not svnroot) in your home folder and download all source code there. If you again get the same error, try to repeat the command above (maybe svn just could not connect to the server). If it doesn't help, try to search for some howto on subversion which is related to Mandriva. Sorry but I can't help you with this since I don't use Mandriva. I read there's a package 'subversion-tools' for Mandriva. Maybe installing this might help.

Best,

Martin
Martin_ is offline   Reply With Quote

Old   March 3, 2010, 06:18
Default installation of openfoam 1.5-dev in mandriva
  #10
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
Hi Martin,

thanks for your help.

can i directly copy the untarred OpenFOAM 1.5-dev files from the http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/
and place it in OpenFOAM and source.

Best,

NAVEEN
naveen is offline   Reply With Quote

Old   March 3, 2010, 06:23
Default installation of openfoam 1.5-dev in mandriva
  #11
New Member
 
Martin Vymazal
Join Date: Dec 2009
Posts: 16
Rep Power: 16
Martin_ is on a distinguished road
Hi Naveen,

either you download OpenFOAM from the address you mentioned:

http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/

(and you don't have to compile anything), or you check out the source code and compile. Don't mix both.
I compiled because the other way of installation didn't work for me some time ago (end of 2009). I didn't try since then.

Best,

Martin
Martin_ is offline   Reply With Quote

Old   March 3, 2010, 06:47
Default installation of openfoam 1.5-dev in mandriva
  #12
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
Hi Martin,

thanks and i wil try it tomorrow.can you give me your email ID in order to contact you directly through mail.


Best,

NAVEEN
naveen is offline   Reply With Quote

Old   March 4, 2010, 01:44
Default installation of openfoam 1.5-dev in mandriva
  #13
Senior Member
 
NAVEEN.K.M
Join Date: Mar 2009
Location: Bangalore, Karnataka, india
Posts: 114
Rep Power: 17
naveen is on a distinguished road
Hi Martin,

I have successfully solved 1 crtical error of icoFoam in OpenFOAM 1.5-dev installation, but i am not able to solve the gcc error.If you know the problem let me know where i am doing wrong.From one of the message board Thread (bigphil) as given how to solve that problem by copying openmpi-1.3.3 folder from ThirdParty 1.6-general and compile it again, even after i followed that procedure i am not able to solve that problem. I am giving the results obtained after foamInstallationTest below:

System
[dev@soorya ~]$ foamIn
foamInfoExec foamInstallationTest
[dev@soorya ~]$ foamInstallationTest
Executing /home/dev/OpenFOAM/OpenFOAM-1.5-dev/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: soorya
OS: Linux version 2.6.24.7-desktop-3mnb
-------------------------------------------------------------------------------


Checking main OpenFOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /home/dev/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /home/dev/OpenFOAM/dev-1.5-dev yes no
$WM_THIRD_PARTY_DIR /home/dev/OpenFOAM/ThirdParty yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /home/dev/OpenFOAM/OpenFOAM-1.5-dev yes yes yes

$FOAM_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes yes
$FOAM_USER_APPBIN ...dev/applications/bin/linux64GccDPOpt yes yes no
$WM_DIR .../dev/OpenFOAM/OpenFOAM-1.5-dev/wmake yes yes yes
-------------------------------------------------------------------------------


Checking the OpenFOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OpenFOAM-1.5-dev/lib/linux64GccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...FOAM/dev-1.5-dev/lib/linux64GccDPOpt yes yes no
$MPI_ARCH_PATH ...nmpi-1.3.3/platforms/linux64GccDPOpt yes yes yes
-------------------------------------------------------------------------------


Third party software
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : 4.2.3
Minimum required: 4.2.0

gcc 4.2.3
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

gzip 1.3.12 /bin/gzip
tar 1.19 /bin/tar
icoFoam 1.5-dev ...nFOAM-1.5-dev/applications/bin/linux64GccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_soorya Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the OpenFOAM enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

done.


Best,

NAVEEN
naveen is offline   Reply With Quote

Old   March 9, 2010, 05:17
Default
  #14
Senior Member
 
Herman
Join Date: Nov 2009
Posts: 122
Rep Power: 17
enry is on a distinguished road
Hi Naveen, I have the same problem.


WARNING: gcc version does not match gcc supplied with this release of OpenFOAM
Supplied version: 4.3.1
User version : 4.2.4
Minimum required: 4.2.0

gcc 4.2.4
WARNING: Conflicting installations:
OpenFOAM settings : /bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR




I have installed OpenFOAM 1.6 and 1.5-dev together.
I add to my .bashrc the following lines to avoid any problem with the 2 version:


alias startFoam15='source ~/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc'
alias startFoam16='source ~/OpenFOAM/OpenFOAM-1.6/etc/bashrc'



I have installed OpenFOAM on Ubuntu 8.04.
Have you solved your problem?

Thanks.
Enry.
enry is offline   Reply With Quote

Old   March 9, 2010, 07:00
Default
  #15
Senior Member
 
Herman
Join Date: Nov 2009
Posts: 122
Rep Power: 17
enry is on a distinguished road
I solved my own problem copying the following line into /OpenFOAM-1.5-dev/etc/settings.sh

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | System
compilerInstall=OpenFOAM
# compilerInstall=System
enry is offline   Reply With Quote

Old   March 9, 2010, 18:43
Default
  #16
Member
 
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 16
aldo.iannetti is on a distinguished road
Hi,
I'm a new user of OF. I'm tying to install on my ubuntu 8.10 64 bit OpenFOAM-1.5-dev. I found on http://openfoamwiki.net/index.php/Ba...allation_Steps (section 2.3.2) a step by step procedure but in the end I can't source the open foam environment, even if i followed the instructions foaminstallationtest output:
FATAL ERROR: OpenFOAM environment not configured.

Please refer to the installation section of the README file:
<OpenFOAM installation dir>/OpenFOAM-1.5-dev/README
to source the OpenFOAM environment.
Is there anybody who can help me?
P.S. Martin, how can I modify your procedure in order to integrate the compilation of Paraview and foamreader?
aldo.iannetti is offline   Reply With Quote

Old   March 10, 2010, 09:12
Default
  #17
Senior Member
 
Herman
Join Date: Nov 2009
Posts: 122
Rep Power: 17
enry is on a distinguished road
Ciao Aldo!
Try to follow this forum instruction:

http://www.cfd-online.com/Forums/ope...m-1-5-dev.html

However, check you have installed these packages:
->binutils
->gcc
->flex
->bison
->bisonc++
->build-essential
->and the packages relative to mpi

Then estract ThirdParty and OpenFOAM-1.5-dev file and compile them through ./Allwmake >&log in /ThirdParty and /OpenFOAM-1.5-dev directory.
Then add to your .bashrc file the following line:
. $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc
(don't forget the point!)
I follow that commands and It run.

Enry.
enry is offline   Reply With Quote

Old   March 10, 2010, 09:25
Default
  #18
Member
 
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 16
aldo.iannetti is on a distinguished road
Ok...... but would you mind list the relative packages for mpi?
And...sorry (I'm just a beginner in linux and OF ) but the standard version of OF has : ThirdParty.general and ThirdParty.linuxGcc...can I use both of them relative to the 1.5 standard version, is there any conflict? Without ThirdParty.linuxGcc I'm not able to compile Paraview.
Many thanks
Aldo
aldo.iannetti is offline   Reply With Quote

Old   March 10, 2010, 09:45
Default
  #19
Senior Member
 
Herman
Join Date: Nov 2009
Posts: 122
Rep Power: 17
enry is on a distinguished road
Sorry, I don't remember wich mpi package OF needs, but looking into my repository I find that I have installed mpich-bin mpich-mpd-bin mpichpython mpich-shemen-bin mpi-specs, but I don't know wich OF needs.
I estracted both ThirdParty pakage and OF.15-dev, but paraView don't run yet. So, in order to run paraView through paraFoam command, I start OF 1.6 version that I have installed in my computers.
Otherwise, if you have any problem with paraview, you can download it and convert foam data with "foamToVTK" command and then start paraview.
Good luck.

ps. The link that I posted is a very useful guide. If you have any problem try to take a look.
enry is offline   Reply With Quote

Old   March 11, 2010, 07:32
Default
  #20
Member
 
Aldo Iannetti
Join Date: Feb 2010
Posts: 48
Rep Power: 16
aldo.iannetti is on a distinguished road
Ok....this is a resume of what I've done:
following instructions in wiki (see my first post) I downloaded in my Ubuntu 64 bit (OF 1.6 version already present) OF-1.5-dev (binary version, nothing to compile). Now I have an OpenFOAM-1.5-dev folder in a usr/lib path that I dont like so much (maybe I made mistakes in the installation path) However I got it and I added the following line to the end of my $HOME/.bashrc: . /usr/lib/OpenFOAM-1.5-dev/etc/bashrc and when I souced with . $HOME/.bashrc I got:

bash: /home/aldo/OpenFOAM/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /home/aldo/OpenFOAM/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /home/aldo/OpenFOAM/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /home/aldo/OpenFOAM/OpenFOAM-1.5-dev/etc/settings.sh: No such file or directory
bash: /home/aldo/OpenFOAM/OpenFOAM-1.5-dev/etc/apps/ensightFoam/bashrc: No such file or directory
bash: /home/aldo/OpenFOAM/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /home/aldo/OpenFOAM/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory
bash: /home/aldo/OpenFOAM/OpenFOAM-1.5-dev/bin/foamCleanPath: No such file or directory

after that I executed the installation test that was ok (no errors found)

executing a simple tutorial (icoDyMFoam) I have the output: icoDyMFoam: command not found

any suggestion for fixing it?

Thanks
aldo.iannetti 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



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