CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation of OpenFOAM 1.5-dev and its fitness for FSI? (http://www.cfd-online.com/Forums/openfoam-installation/71890-installation-openfoam-1-5-dev-its-fitness-fsi.html)

Martin_ January 19, 2010 06:30

Installation of OpenFOAM 1.5-dev and its fitness for FSI?
 
1 Attachment(s)
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

naveen March 2, 2010 05:39

installation of openfoam 1.5-dev in mandriva
 
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

Martin_ March 2, 2010 16:48

installation of openfoam 1.5-dev in mandriva
 
Hi Naveen,

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

Best,

Martin

naveen March 3, 2010 02:03

Installation of OpenFOAM 1.5-dev on mandriva
 
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

Martin_ March 3, 2010 03:27

Installation of OpenFOAM 1.5-dev on mandriva
 
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

naveen March 3, 2010 04:11

Installation of OpenFOAM 1.5-dev on mandriva
 
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

Martin_ March 3, 2010 04:59

Installation of OpenFOAM 1.5-dev on mandriva
 
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

naveen March 3, 2010 05:23

installation of openfoam 1.5-dev in mandriva
 
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

Martin_ March 3, 2010 05:54

installation of openfoam 1.5-dev in mandriva
 
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

naveen March 3, 2010 06:18

installation of openfoam 1.5-dev in mandriva
 
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

Martin_ March 3, 2010 06:23

installation of openfoam 1.5-dev in mandriva
 
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

naveen March 3, 2010 06:47

installation of openfoam 1.5-dev in mandriva
 
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 March 4, 2010 01:44

installation of openfoam 1.5-dev in mandriva
 
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

enry March 9, 2010 05:17

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 March 9, 2010 07:00

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

aldo.iannetti March 9, 2010 18:43

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?

enry March 10, 2010 09:12

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.

aldo.iannetti March 10, 2010 09:25

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

enry March 10, 2010 09:45

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.

aldo.iannetti March 11, 2010 07:32

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


All times are GMT -4. The time now is 06:30.