|
[Sponsors] |
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 23, 2013, 06:12 |
OpenFOAM 2.2.2 source pack installation on Xubuntu 13.10
|
#1 |
Member
Pekka Pasanen
Join Date: Feb 2012
Location: Finland
Posts: 87
Rep Power: 14 |
Hi, I thought I'd share my experiences about installing the new OpenFOAM 2.2.2 from source on Xubuntu 13.10, because there was a nasty bug with compiling scotch. I always prefer installing from source, because I want my ParaView with MPI and Python support. This installation is for a 64bit system.
Let's go through the installation procedure. 1. Create OpenFOAM root directory if it doesn't exist. Code:
mkdir $HOME/OpenFOAM 3. Extract the source packs. Code:
tar xzf OpenFOAM-2.2.2.tgz tar xzf ThirdParty-2.2.2.tgz Code:
sudo apt-get install build-essential flex bison cmake zlib1g-dev qt4-dev-tools libqt4-dev gnuplot libreadline-dev libncurses-dev libxt-dev python python-dev sudo apt-get install libopenmpi1.6-dev openmpi1.6 Code:
cd $HOME/OpenFOAM Code:
export WM_MPLIB=OPENMPI Code:
export WM_MPLIB=SYSTEMOPENMPI Code:
source OpenFOAM-2.2.2/etc/bashrc Code:
cd ThirdParty-2.2.2 wget http://download.tecplot.com/tecio/2009/tecio2009.zip unzip tecio2009.zip Code:
sed -i -e 's=-lz -lm -lrt=-Xlinker --no-as-needed -lz -lm -lrt=' etc/wmakeFiles/scotch/Makefile.inc.i686_pc_linux2.shlib-OpenFOAM-* Code:
export WM_NCOMPPROCS=4 cd $HOME/OpenFOAM/OpenFOAM-2.2.2/ ./Allwmake Code:
cd $HOME/OpenFOAM/ThirdParty-2.2.2 ./makeParaView -mpi -python -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so Code:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers wmSET ./Allwclean ./Allwmake Code:
source $HOME/OpenFOAM/OpenFOAM-2.2.2/etc/bashrc export ParaView_DIR=/home/zordiack/OpenFOAM/ThirdParty-2.2.2/platforms/linux64Gcc/paraview-3.12.0 export PATH=$ParaView_DIR/bin:$PATH export PV_PLUGIN_PATH=$FOAM_LIBBIN/paraview-3.12 Code:
cd $WM_PROJECT_DIR/bin ./foamInstallationTest mkdir -p $FOAM_RUN cp -R $FOAM_TUTORIALS/incompressible/icoFoam/cavity . cd cavity blockMesh icoFoam paraFoam I'm also going to install some additional components which are not part of the basic installation. These steps are entirely optional and you can read on if you wish. 13. Download and install swak4Foam (for more info see http://openfoamwiki.net/index.php/Contrib/swak4Foam). Code:
sudo apt-get install subversion cd $HOME/OpenFOAM svn checkout svn://svn.code.sf.net/p/openfoam-extend/svn/trunk/Breeder_2.0/libraries/swak4Foam/ cd swak4Foam Code:
gunzip patch_swak2Foam_024_OF22x_49808a1c.gz patch -p1 < patch_swak2Foam_024_OF22x_49808a1c ./Allwmake Code:
cd $HOME/OpenFOAM/ThirdParty-2.2.2 sudo apt-get install cmake-curses-gui svn co https://of-interfaces.svn.sourceforge.net/svnroot/of-interfaces/trunk/vtkPOFFReader mkdir build_offreader cd build_offreader ccmake ../vtkPOFFReader/ Code:
make make install Code:
cd $HOME/OpenFOAM sudo apt-get install python-numpy wget http://openfoamwiki.net/images/3/33/PyFoam-0.6.1.tar.gz tar zxvf PyFoam-0.6.1.tar.gz cd PyFoam-0.6.1/ sudo python setup.py install Last edited by zordiack; November 13, 2013 at 03:20. Reason: added openmpi1.6 package to apt-get command, mpirun won't work without it |
|
October 26, 2013, 14:08 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Pekka,
Many thanks for sharing this detailed installation guide! I've added a link to this thread here: http://openfoamwiki.net/index.php/In...u#Ubuntu_13.10 Best regards, Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] OpenFOAM 2.1.1 installation on openSUSE 12.2 32 bit | saturn_53 | OpenFOAM Installation | 13 | February 1, 2015 05:17 |
[swak4Foam] Error bulding swak4Foam | sfigato | OpenFOAM Community Contributions | 18 | August 22, 2013 13:41 |
[swak4Foam] build problem swak4Foam OF 2.2.0 | mcathela | OpenFOAM Community Contributions | 14 | April 23, 2013 14:59 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |
OpenFOAM Installation | Meisam | OpenFOAM Installation | 6 | January 31, 2012 16:43 |