This offering is not approved or endorsed by ESI Group or ESI-OpenCFD®,
the producer of the OpenFOAM® software and owner of the OpenFOAM® trade mark.
top
logo


New Release: foam-extend-3.0 "Jeju" The Extend Project is proud to announce the new release of the community fork of OpenFOAM®: foam-extend-3.0 [link]!
CoCoons Project - Community-driven Documentation of OpenFOAM® Technology! For more information have a look at www.cocoons-project.org!
Dear FOAMers: the Workshop Committee would like to invite you to the 9th International OpenFOAM® Workshop to be held 23-26 June 2014 in Zagreb, Croatia. [link].
Welcome, Guest
Please Login or Register.  Lost Password?

Short tutorial for installation OpenFOAM®
(1 viewing) (1) Guest
OpenFOAM® Installation Group Forum: Installation of the OpenFOAM® CFD toolbox
Go to bottomPage: 12
TOPIC: Short tutorial for installation OpenFOAM®
**
#276
Short tutorial for installation OpenFOAM® 2 Years, 7 Months ago Karma: 0
Hi,

I create a short OpenFOAM®® installation tutorial for Ubuntu 11.04 LTS.
It worked for me. Please if anybody find some errors inside the tutorial
send me PM so I can correct them

regards,

Nebojsa

==========================================================================

Short tutorial for installation of OpenFOAM®®

Install or upgrade 64 bit Ubuntu Natty 11.04

www.ubuntu.com/download/ubuntu/download

Login to the system
Open the Run Application dialog box

Code:

Alt+F2


Start terminal

Code:

gnome-terminal


Update system:

Code:

sudo apt-get update
sudo apt-get dist-upgrade



Install necessary packages:

Code:

sudo apt-get install w3m pv binutils-dev flex bison git-core build-essential python-dev libreadline5-dev wget zlib1g-dev cmake curl libpng12-dev libxi-dev libxrender-dev libxrandr-dev libxcursor-dev libxinerama-dev libfreetype6-dev libfontconfig1- dev libglib2.0-dev freeglut3-dev doxygen graphviz texinfo byacc ia32-libs libqt4-dev qt4-dev-tools libosmesa6 libosmesa6-dev paraview texlive-latex-base libphonon-dev libphonon4 libqt4-assistant libqt4-core libqt4-gui qt4-qmake libxt- dev g++ gcc cmake-curses-gui libqt4-opengl-dev mesa-common-dev openmpi-common openmpi-bin libopenmpi-dev python-old-doctools alien libgl1-mesa-dev libgl1-mesa-glx libglu1-mesa libglu1-mesa-dev libx11-dev libxau6 libxau-dev libxdmcp6 libxdmcp- dev libxext-dev x11proto-core-dev x11proto-input-dev x11proto-kb-dev x11proto-xext-dev quilt libboost-all-dev mpi-default-dev libhdf5-serial-dev libavformat-dev libavutil-dev libavcodec-dev  libswscale-dev python-dev python- support chrpath gnuplot libtiff-dev libpng-dev libjpeg-dev libxml2-dev libexpat-dev zlib1g-dev libmysqlclient-dev libpq-dev autoconf libtool python-numpy tcl8.5 


Check if something is missing for compilation of paraview

Code:

sudo apt-get build-dep paraview


Create necessary directories and download OpenFOAM®®:

Code:

mkdir ~/OpenFOAM®
cd ~/OpenFOAM®
git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM®-1.6-ext



Create symbolic link for gmake:

Code:

sudo ln -s /usr/bin/make /usr/bin/gmake


Add source to bashrc:

Code:

echo '. ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/bashrc' >> ~/.bashrc


In file ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/bashrc after the next line:

Code:

export WM_COMPILER_LIB_ARCH=64


please insert next line:

Code:

export WM_COMPILER_DIR=/usr


Create preference file to define OpenFOAM®® to use system QT libraries:

Code:

cp ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/prefs.sh-EXAMPLE ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/prefs.sh



Edit newly created prefs.sh file:

Code:

gedit ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/prefs.sh


change line

Code:

#export QT_DIR=path_to_system_installed_qt
#export QT_BIN_DIR=$QT_DIR/bin



to

Code:

export QT_DIR=/usr/share/qt4
export QT_BIN_DIR=$QT_DIR/bin



Save file and exit

Update environment:

Code:

source ~/.bashrc


Change directory to compile necessary libraries:

Code:

cd ~/OpenFOAM®/OpenFOAM®-1.6-ext/ThirdParty


Execute next commands to compile and install libraries:

Code:

./AllMake 


Update environment:

Code:

source ~/.bashrc


Go to the main OpenFOAM®® directory:

Code:

cd ~/OpenFOAM®/OpenFOAM®-1.6-ext/


Start compile and installation of OpenFOAM®®

Code:

./Allwmake


Verify installation:

Code:

foamInstallationTest


At the end result should look something like..

Code:

Summary
--------------------------------------------------------------------------------------------
Base configuration ok.
Critical system ok.
done





Test installation with solving icoFoam case

Code:

tut
cd incompressible/icoFoam/cavity



Make mesh

Code:

blockMesh


Solve

Code:

icoFoam


View result

Code:

paraFoam

Nebojsa Gavrilov
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/09/20 12:13 By Gavrilov.
The administrator has disabled public write access.
 
#277
Re: Short tutorial for installation OpenFOAM® 2 Years, 7 Months ago Karma: 0
Thanks, great work!
Dr. Alexander Vakhrushev
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#281
Re:Short tutorial for installation OpenFOAM® 2 Years, 7 Months ago Karma: 1
Hi,
thank you your guide is very valueable.
I prefer to use an "alias startOF16ext"
so I can have mupltiple OF installs, so I created my bashrc like this

echo "alias startOF16ext='unset FOAM_INST_DIR;unset WM_PROJECT_USER_DIR;unset WM_THIRD_PARTY_DIR;source ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/bashrc'" >> ~/.bashrc
echo "startOF16ext" >> ~/.bashrc

start bash again

cd ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc
cp prefs.sh-EXAMPLE prefs.sh


echo "export QT_DIR=/usr/share/qt4" >> ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/prefs.sh
echo "export QT_BIN_DIR=$QT_DIR/bin" >> ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/prefs.sh
echo "export PARAVIEW_SYSTEM=1" >> ~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/prefs.sh

foam3rdParty
./AllMake

foam
./Allwmake

just my 2 cents
Guido Aselmann-Brinkmann
Fresh Boarder
Posts: 8
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Stuttgart Area (Germany) Birthday: 05/29
The administrator has disabled public write access.
 
#286
Re:Short tutorial for installation OpenFOAM® 2 Years, 6 Months ago Karma: 0
INSTALLATION GUIDE: OpenFOAM®®-1.6-ext from git repository in DEBIAN SQUEEZE:

For those who use Debian, here you are the errors I found when installing OpenFOAM®®-1.6-ext, and how I fixed them.

**************************************************
~ $ mkdir OpenFOAM®®
~ $ cd OpenFOAM®®
~/OpenFOAM®® $ git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM®®-1.6-ext

~/OpenFOAM®® $ echo " source ~/OpenFOAM®®/OpenFOAM®®-1.6-ext/etc/bashrc " >> ~/.bashrc
~/OpenFOAM®® $ source ~/.bashrc
~/usr/bin $ ln -s make gmake
~ $ su aptitude install git-core qt4-qmake qt4-dev-tools binutils-dev flex bison build-essential libreadline5-dev wget zlib1g-dev rpm cmake python-dev libxt-dev gnuplot python-numpy libtool autoconf gitk git-gui

~/OpenFOAM®®/OpenFOAM®®-1.6-ext/etc $ cp prefs.sh-EXAMPLE prefs.sh

Edit prefs.sh to specify the path to the system programs:
compilerInstall=System
export WM_COMPILER_DIR=/usr

export QT_DIR=/usr
export QT_BIN_DIR=$QT_DIR/bin

export PARAVIEW_SYSTEM=1
export PARAVIEW_DIR=/home/.../ParaView-3.8.0-RC1-Linuxx86_64/ParaView-3.8.0-RC1-Linux-x86_64
export PARAVIEW_BIN_DIR=$PARAVIEW_DIR/bin



THIRDPARTY COMPILATION:
~/OpenFOAM®®/OpenFOAM®®-1.6-ext/ThirdParty $ ./AllMake

Mesquite-2.1.2 source-code gave some compilation errors. Thus, I have used the latest available version, updating the mesquite version in:

~/OpenFOAM®®/OpenFOAM®®-1.6-ext/ThirdParty/AllMake.stage3: rpm_make -p mesquite-2.99 -s mesquite-2.99.spec -u software.sandia.gov/~jakraft/mesquite-2.99.tar.gz

in /OpenFOAM®®/OpenFOAM®®-1.6-ext/etc/settings.sh :
[ -z "$MESQUITE_SYSTEM" ] && [ -e $WM_THIRD_PARTY_DIR/packages/mesquite-2.99/platforms/$WM_OPTIONS ] && { _foamSource $WM_THIRD_PARTY_DIR/packages/mesquite-2.99/platforms/$WM_OPTIONS/etc/mesquite-2.99.sh }

and in ~/OpenFOAM®®/OpenFOAM®®-1.6-ext/ThirdParty/rpmBuild/SPECS/ :
mv mesquite-2.1.2.spec mesquite-2.99.spec
vim mesquite-2.99.spec : replace mesquite-2.1.2 with mesquite-2.99 ~/OpenFOAM®® $ cd OpenFOAM®®-1.6-ext/ ./Allwmake

OPENFOAM COMPILATION:
~/OpenFOAM®®/OpenFOAM®®-1.6-ext $ ./Allwmake

At this point, I have fixed the following errors:

Compilation of /OpenFOAM®®/OpenFOAM®®-1.6-ext/src gives the following message:
Error: Mesquite_all_headers.hpp No such file or directory

Add:
-I$(MESQUITE_INCLUDE_DIR) \
and
-L$(MESQUITE_LIB_DIR) \
-lmesquite
to:
/meshMotion/mesquiteMotionSolver/Make/options
/dynamicFvMesh/Make/options


Compile again
~/OpenFOAM®®/OpenFOAM®®-1.6-ext $ ./Allwmake

A new error appears when compiling the /OpenFOAM®®-1.6-ext/applications/:
"
/home/maria/OpenFOAM®®/OpenFOAM®®-1.6-ext/lib/linux64GccDPOpt/openmpi-1.4.3/libPstream.so so try adding it to the linker command line
/home/maria/OpenFOAM®®/OpenFOAM®®-1.6-ext/lib/linux64GccDPOpt/openmpi-1.4.3/libPstream.so: could not read symbols: Invalid operation
"
To fix this: In $WM_DIR/rules/linux64Gcc/c++ change LINKLIBSO and LINKEXE to:

LINKLIBSO = $(CC) $(c++FLAGS) -shared -Xlinker --add-needed
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed

Compile again
~/OpenFOAM®®/OpenFOAM®®-1.6-ext $ ./Allwmake

Test the installation:
~/OpenFOAM®®/OpenFOAM®®-1.6-ext $ foamInstallationTest
....
Summary
----------------------------------
Base configuration ok.
Critical systems ok.
done.
....
CREATE YOUR RUN DIRECTORY

~/OpenFOAM®® $ mkdir -p $FOAM_RUN

**************************************************
Every little helps!

María
María García-Camprubí
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
Last Edit: 2011/09/28 12:39 By García-Camprubí.
The administrator has disabled public write access.
 
#287
Re:Short tutorial for installation OpenFOAM® 2 Years, 6 Months ago Karma: 0
Hi everyone,
has anybody succeeded in solving the following compiling error (it comes at the very end of the Allmake script run into the ThirdParty directory of OpenFOAM®-1.6-EXT)?

CMake Error at /home/chuang/OpenFOAM®/OpenFOAM®-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.10.1/CMake/BundleUtilities.cmake:627 (message):
error: fixup_bundle: not a valid bundle
Call Stack (most recent call first):
Applications/ParaView/cmake_install.cmake:80 (fixup_bundle)
Applications/cmake_install.cmake:37 (INCLUDE)
cmake_install.cmake:118 (INCLUDE)

This is the only compilation problem I wasn't able to solve (my machine is an intel i7 quad-core laptop with the 64 bit release of Ubuntu 10.10 installed), as in general the code compiling process seems to be successfully completed (I've also tried some test runs and all works perfectly)

Any help will be appreciated

Best regards

V.
Vesselin Krastev
Fresh Boarder
Posts: 2
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#293
Re:Short tutorial for installation OpenFOAM® 2 Years, 6 Months ago Karma: 0
Hi Vesselin,

I also run into some troubles concerning Paraview when compiling the ThirdParty directory. I avoided this problem setting up as default Paraview the one already installed in my system.

If you haven't fix this problem yet, you can try to download Paraview (either binary or source code) and install it in your system. Next you have to modify the file:

~/OpenFOAM®/OpenFOAM®-1.6-ext/etc/prefs.sh

to include:

export PARAVIEW_SYSTEM=1
export PARAVIEW_DIR=/home/.../.../.../ParaView-3.8.0-RC1-Linux-x86_64 (proper path)
export PARAVIEW_BIN_DIR=$PARAVIEW_DIR/bin


María
María García-Camprubí
Fresh Boarder
Posts: 4
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 12
Joomla SEO powered by JoomSEF


bottom
top

OpenFOAM®-Extend World

You need to upgrade your Flash Player

bottom
Legal | Imprint
©Copyright 2014 The OpenFOAM® Extend Project 

Powered by Joomla! Designed by Joomla Templates, ecommerce web hosting, Thanks to J! Developer Goran Gligorin for support! Joomla SEF URLs by Artio. Powered by Staff Master v0.9.8 Valid: XHTML and CSS

Friends Online

porno
Protected by Spam Fighter