Search This Blog

Tuesday, May 6, 2014

Installation/Linux/OpenFOAM-2.3.0/Ubuntu



sudo apt-get install build-essential cmake flex bison zlib1g-dev qt4-dev-tools libqt4-dev \ 
gnuplot libreadline-dev libncurses-dev libxt-dev libopenmpi-dev openmpi-bin \ 
libboost-system-dev libboost-thread-dev libgmp-dev libmpfr-dev

cd ~
mkdir OpenFOAM
cd OpenFOAM
wget "http://downloads.sourceforge.net/foam/OpenFOAM-2.3.0.tgz?use_mirror=mesh" -O OpenFOAM-2.3.0.tgz
wget "http://downloads.sourceforge.net/foam/ThirdParty-2.3.0.tgz?use_mirror=mesh" -O ThirdParty-2.3.0.tgz
 
tar -xzf OpenFOAM-2.3.0.tgz 
tar -xzf ThirdParty-2.3.0.tgz
 
 
source $HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI
echo "alias of230='source \$HOME/OpenFOAM/OpenFOAM-2.3.0/etc/bashrc $FOAM_SETTINGS'" \
>> $HOME/.bashrc
source  $HOME/.bashrc
of230
 
 
 
cd $WM_THIRD_PARTY_DIR
# This next command will take a while... somewhere between 5 minutes to 30 minutes.
./Allwmake > make.log 2>&1
#update the shell environment
wmSET $FOAM_SETTINGS
 
 
#Go into OpenFOAM's main source folder
cd $WM_PROJECT_DIR
# This next command will take a while... somewhere between 30 minutes to 3-6 hours.
./Allwmake > make.log 2>&1
#Run it a second time for getting a summary of the installation
./Allwmake > make.log 2>&1


cd $WM_THIRD_PARTY_DIR
./makeParaView4 -qmake $(which qmake-qt4)
 
cd $FOAM_UTILITIES/postProcessing/graphics/PV4Readers 
wmSET $FOAM_SETTINGS
./Allwclean 
./Allwmake


http://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-2.3.0/Ubuntu#Ubuntu_14.04

No comments:

Labels

Bacteria

Loading...