CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   Installation of OpenFOAM15dev (https://www.cfd-online.com/Forums/openfoam-installation/57208-installation-openfoam15dev.html)

antonio_ing January 12, 2009 03:48

hi everybody I have just d
 
hi everybody

I have just downloaded from the powerlab the new OpenFOAM-1.5-dev version and the Thirdy Party software in the same folder. Also i have downloaded the gcc-4.3.2 and putted it in the folder /OpenFOAM/linux as explained in the wiki page.

I have setted up correctly the bashrc file and added the line so everything is fine up to now.

The wiki then said to compile the src directory only (without applications). but how? what is and what is not a row related to the applications? may someone post a list of how to in order to guide me??

thank very much

antonio

tian January 12, 2009 04:26

Hi Antonio, yesterday I com
 
Hi Antonio,

yesterday I compiled the whole OpenFOAM-1.5-dev version without trouble. My system is Ubuntu 8.10 (standard installation). Before I can start to compile I need some additional packets:

"apt-get install ..."

flex++
g++
binutils
binutils-dev
cmake
qt4

in the folder OpenFOAM-1.5-dev I only run: "./Allrun".

I hope it helps a little bit.

Bye
Thomas

antonio_ing January 13, 2009 04:20

Actually i have compiled that
 
Actually i have compiled that file and afterward i have compiled again the src, applications and applications/utilities as was proposed in the wiki. now everything works so thanks very much for the support :-)

tian January 13, 2009 07:25

Hi Antonio, you are welcome
 
Hi Antonio,

you are welcome. Can you do favor to me? Can you try the tutorial: sloshingTank3D3DoF?

I always got a error:

Cannot read control cacheAgglomeration

file: from 0 line to 0.

From function void lduMatrix::solver::readControl
{
const dictionary& dict,
T& control,
const word& controlName
}

in file lnInclude/lduMatrixTemplate.C line 57.

Thanks!

Bye
Thomas

antonio_ing January 16, 2009 09:28

yes i tried and got the same
 
yes i tried and got the same error... maybe there is something odd!

sorry, i have no idea.

antonio_ing February 15, 2009 12:19

i am trying to install again o
 
i am trying to install again openfoam-1.5-dev but still i got some error in the newest version 020209. May someone post me a list of the things to do (expecially regarding the setup of the compiler) since the wiki is slightly old.

thanks in advance

tian February 15, 2009 12:27

Hi, Antonio, try to use the
 
Hi,

Antonio, try to use the OpenFOAM compiler (ThirdParty) not the system g++ compiler for the newest version 020209.

Bye
Thomas

antonio_ing February 15, 2009 12:57

Thanks for the advise thomas b
 
Thanks for the advise thomas but i don't get what you mean. :-( what am I supposed to do to compile? I'm not an expert in programming

tian February 15, 2009 13:16

Hi, yeah, my english is not
 
Hi,

yeah, my english is not so well :-) I mean, change in /etc/settings.sh:

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | System
# compilerInstall=OpenFOAM
compilerInstall=System

Try it out.

Bye
Thomas

antonio_ing February 15, 2009 14:02

I have changed the settings.sh
 
I have changed the settings.sh in this way:

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | System
compilerInstall=OpenFOAM
#compilerInstall=System

but when i start the bashrc again it says:

cfduser-dev@antonio-desktop:~/OpenFOAM/ThirdParty$ . ~/.bashrc

Warning in /home/cfduser-dev/OpenFOAM/OpenFOAM-1.5-dev/etc/settings.sh:
Cannot find /home/cfduser-dev/OpenFOAM/ThirdParty/gcc-4.3.1/platforms/linux installation.
Please install this compiler version or if you wish to use the system compiler,
change the 'compilerInstall' setting to 'System' in this file

and if I go to the ThirdParty dir at the command ls there is no gcc folder

cfduser-dev@antonio-desktop:~/OpenFOAM/ThirdParty$ ls
Allwmake libccmio-2.6.1 openmpi-1.2.6 ParMetis-3.1 wmakeFiles
AllwmakeLibccmio malloc paraview-2.4.4 ParMGridGen-1.0 zlib-1.2.3
lam-7.1.4 metis-5.0pre2 ParaView3.3-cvs README

ngj February 15, 2009 16:11

Hi Antonio I have compiled
 
Hi Antonio

I have compiled 1.5-dev recently, where I used the ThirdParty-components downloaded from opencfd's homepage. That does at least include the correct gcc-version.

After that you should not have any problems, except that you might need to install "flex".

I would recommend you to go to OpenFOAM-1.5-dev/src and execute Allwmake from there first, and after that compile all the applications. If you do that you can verify that all libraries are compiled successfully before you compile the apps, which need the libraries.

Good luck,

Niels

eberberovic February 16, 2009 03:41

Hi all. I have successfully
 
Hi all.

I have successfully compiled the version 1.5-dev from powerlab using both, the system compiler (4.2.1) and the Third Party compiler (4.3.1). It works fine on openSuSE 10.3 64-bit.

There are two issues that I found:

1) In building Paraview3, there is probably a misprint in the file ~/OpenFOAM/OpenFOAM-1.5-dev/etc/apps/paraview3/bashrc. The the path should be written as follows (not containing the line between ParaView and $):

export ParaView_INST_DIR=$WM_THIRD_PARTY_DIR/ParaView$ParaView_VERSION.

2) I have troubles running the interDyMFoam tutorial damBreakWithObstacle. I have posted it under:

Error: OF-1.5-dev interDyMFoam: keyword agglomerator is undefined in dictionary ""

It seems that the subdictionary for pdFinal cannot be read. I have changed the solvers in fvSolution, but then there is an error in reading the settings for pcorr. Maybe some issue with the solvers. Any help would be appreciated.

Best Regards,
Edin.

antonio_ing February 16, 2009 17:27

hi guys i have successfully
 
hi guys

i have successfully compiled OpenFoam 1.5-dev,too. Here there is what I did for someone else in the same troubles:

1) as suggested by Tian, Install the following packages:

sudo apt-get install
flex++
g++
binutils
binutils-dev
cmake

2) download openFoam from the powerlab website. Then download the thirdparty software from the official openFoam website. Extract the three packages (1 openFoam + 2 thirdParty) in a directory in the home called openFOAM.

3) Add the following line to the .bashrc in the home directory:

. ~/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc

or something that point at that bashrc file.
Do:
. ~/.bashrc

4) change the solver settings in

OpenFOAM-1.5-dev/etc/settings.sh

from:

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | System
# compilerInstall=OpenFOAM
compilerInstall=System

to

# Select compiler installation
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# compilerInstall = OpenFOAM | System
compilerInstall=OpenFOAM
#compilerInstall=System

5)compile the ThirdParty folder running ./Allwmake
6) compile OpenFoam running ./Allwmake

et voilą! everything should work. Thanks to everybody of you guys!!!

marico March 4, 2009 05:34

Hi All, I compiled the 1.5-
 
Hi All,

I compiled the 1.5-dev and tryed to use it with ThirdParty binaries. paraFoam didn't work even after recompiling paraview and parafoam. the error message I got was sth. like:
paraview: command not found

After that I searched a little bit and found out, that the foam/etc/apps/paraview3/bashrc differs from the one in original 1.5 release:

The line here is:
export Paraview_INST_DIR=$WM_THIRD_PARTY_DIR/ParaView-$ParaView_VERSION

compared to the original one:
export Paraview_INST_DIR=$WM_THIRD_PARTY_DIR/ParaView$ParaView_VERSION

that lead to the wrong environmental variables. Maybe this helps someone or someone could explain why it is defined differently.

Marco

eberberovic March 5, 2009 02:29

Hi Marco, I have also seen it
 
Hi Marco,
I have also seen it a couple of weeks ago and posted it here (see above).
Simply change the line (not containing the mid line), it will work.
Regards,
edin.

hamcer March 5, 2009 13:18

hi, foamers, I need informa
 
hi, foamers,

I need information , what's the difference between the OF-1.5 available in the web page of openfoam, and the OF-1.5-dev?

Thanks for answer.

hellorishi March 6, 2009 11:18

Hi Hamdi OF-1.5 on webpage
 
Hi Hamdi

OF-1.5 on webpage is the original version. It (possibly) has some bugs. To improve upon this released version various patches are released using GIT by OpenCFD.

http://repo.or.cz/w/OpenFOAM-1.5.x.git

Then there is the a development version(OF-1.5.dev) which has these patches and some other stuff which is being developed.

So to put the message in one line: Install GIT on your system http://git-scm.com/download ; then get the patched version and compile it.

Refer to this old message for clarification from the expert.
http://www.cfd-online.com/cgi-bin/Op...2745#POST32745


best regards,
Rishi

hellorishi March 6, 2009 11:26

another good source to clarify
 
another good source to clarify your doubt:
http://www.cfd-online.com/cgi-bin/Op...0480#POST30480

mahaputra April 18, 2009 16:48

Quote:

Originally Posted by marico (Post 200402)
Hi All,

I compiled the 1.5-dev and tryed to use it with ThirdParty binaries. paraFoam didn't work even after recompiling paraview and parafoam. the error message I got was sth. like:
paraview: command not found

After that I searched a little bit and found out, that the foam/etc/apps/paraview3/bashrc differs from the one in original 1.5 release:

The line here is:
export Paraview_INST_DIR=$WM_THIRD_PARTY_DIR/ParaView-$ParaView_VERSION

compared to the original one:
export Paraview_INST_DIR=$WM_THIRD_PARTY_DIR/ParaView$ParaView_VERSION

that lead to the wrong environmental variables. Maybe this helps someone or someone could explain why it is defined differently.

Marco

Hi all



i just installed OpenFOAM-1.5-dev into another user/second user (not administrator user) and succeed to run OpenFOAM-1.5-dev


in my administrator user i installed OpenFOAM-1.5, and was succeed by using Jure Installation Script for OpenFOAM 1.5 including it's Paraview on ThirdParty Package),



i tries several ways to install paraview in second user (OpenFOAM-1.5-dev), but didnt help


1. by using ThirdParty.General_2008-12-11.tgz, from http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/ , ./Allwmake not help

2. download the ThirdParty from Official OpenFOAM website, doesnt help, install manually , 1) unpack openfoam-1.5-dev, openfoam-1.5-linuxGccDPOpt, thirdparty.general, thirdparty.linuxGcc

3. using Jure installation script for the paraview installation , http://www.cfd-online.com/Forums/ope...-script-3.html

4.

follow this thread http://www.cfd-online.com/Forums/ope...d-regions.html, and http://www.cfd-online.com/Forums/ope...foam15dev.html

In building Paraview3, there is probably a misprint in the file ~/OpenFOAM/OpenFOAM-1.5-dev/etc/apps/paraview3/bashrc. The the path should be written as follows (not containing the line between ParaView and $):

export ParaView_INST_DIR=$WM_THIRD_PARTY_DIR/ParaView$ParaView_VERSION.


and so on


do you know, how to solve this problem?




this is the error message:


simulation15@user-laptop:~/OpenFOAM/simulation15-1.5-dev/run/tutorials/icoFoam/cavity$ paraFoam
/home/simulation15/OpenFOAM/OpenFOAM-1.5-dev/bin/paraFoam: 103: paraview: not found
simulation15@user-laptop:~/OpenFOAM/simulation15-1.5-dev/run/tutorials/icoFoam/cavity$ paraview
The program 'paraview' is currently not installed. To run 'paraview' please ask your administrator to install the package 'paraview'
bash: paraview: command not found
simulation15@user-laptop:~/OpenFOAM/simulation15-1.5-dev/run/tutorials/icoFoam/cavity$


could anyone help me how to install paraview in second linux (ubuntu 8.10) user?

mahaputra April 18, 2009 17:18

i succeed to change set the second user as a administrator group, by using System --> Administration --> user and group in my Ubuntu 8.10

now, im installing paraview, hopefully it will work.


All times are GMT -4. The time now is 05:58.