How to setup LIGGGHTS 2.3.5, OpenFoam 2.2, Paraview 3.98 and CFDEM 2.5.5 on Ubuntu 13.04

Submitted by PaulWinkler on Thu, 06/20/2013 - 18:20

Hi,

new versions are avaibale and some things changed.


## CDFDEM OpenFOAM 2.2.0, Liggghts 2.3.4, CFDEM 2.5.4, Paraview 3.98 on Ubuntu 13.04 amd64 (2013-06-20)
## 1. using OpenFOAM for quantal instead of raring
## 4.A using Liggghts for quantal instead of raring

## 1. Install OpenFOAM 2.2.0
sudo sh -c "echo deb http://www.openfoam.org/download/ubuntu quantal main > /etc/apt/sources.list.d/openfoam.list"
sudo apt-get update
sudo apt-get install openfoam220
gedit ~/.bashrc
add at the bottom -> source /opt/openfoam220/etc/bashrc
open new Terminal -> icoFoam -help

## 2. Install ParaView 3.98
sudo apt-get install paraview

## 3.A Install Liggghts 2.3.5 by package distribution
sudo sh -c "echo deb http://ppa.launchpad.net/liggghts-dev/ppa/ubuntu quantal main > /etc/apt/sources.list.d/liggghts.list"
sudo sh -c "echo # deb-src http://ppa.launchpad.net/liggghts-dev/ppa/ubuntu quantal main >> /etc/apt/sources.list.d/liggghts.list"
sudo apt-get update
sudo apt-get install liggghts-dev

## or

## 3.B Install Liggghts 2.3.5 by compiling
## 3.B.1 Install Packages for Liggghts 2.3.5
sudo apt-get install libvtk5-dev libeigen2-dev libopenmpi-dev g++
which mpirun
/usr/bin/mpirun comes up?
which mpic++
/usr/bin/mpic++ comes up?
mpic++ -v
gcc-Version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) <- comes up at the last line?
## 3.B.2 Get Liggghts 2.3.5 via Git
sudo apt-get install git-core
sudo git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git
## 3.B.3 Compiling Liggghts 2.3.5
cd $HOME/LIGGGHTS-PUBLIC/src
sudo make clean-all
sudo make ubuntuVTK
sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_ubuntuVTK /usr/bin/liggghts
open new Terminal -> liggghts

## 4. Install LPP
sudo apt-get install python-numpy
sudo git clone https://github.com/CFDEMproject/LPP.git $HOME/LPP
gedit ~/.bashrc
add alias lpp="python $HOME/LPP/src/lpp.py"
open new Terminal -> lpp dump.filename

## 5. Install Syntax Highlighting for gedit
please look here http://cfdem.dcs-computing.com/?q=node/701
download archive and extract in your $Home dir
sudo mcopy $HOME/liggghts.lang /usr/share/gtksourceview-3.0/language-specs
restart gedit

## 6. Get CFDEM 2.5.5 via Git
sudo git clone https://github.com/CFDEMproject/CFDEMcoupling-PUBLIC.git

## 7. Compile CFDEM 2.5.5
?? Help needed!

Regards

Paul