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

PaulWinkler's picture
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

FlorianL | Mon, 07/08/2013 - 20:23

Thx for your useful information. I tried to compile along your instructions.

LIGGGHTS compiles fine and after
sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_ubuntuVTK /usr/bin/liggghts
open new Terminal -> liggghts

liggghts even starts. But if I then compile CFDEM using
cfdemCompCFDEM

The compilation gives the error message
/usr/bin/ld: cannot find -llmp_ubuntuVTK

so is there something I have missed to copy/move/compile/rename ?

Thanks in advance
Florian

This is a snippet from the output:
(...)
SOURCE=subModels/smoothingModel/constDiffSmoothing/constDiffSmoothing.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -DOMPI_SKIP_MPICXX -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -pthread -I ./cfdemParticle -I/opt/openfoam211/src/finiteVolume/lnInclude -I/opt/openfoam211/src/transportModels -I/opt/openfoam211/src/turbulenceModels/incompressible/turbulenceModel -I/opt/openfoam211/src/meshTools/lnInclude -I/opt/openfoam211/src/lagrangian/basic/lnInclude -I/opt/openfoam211/src/OpenFOAM/containers/HashTables/labelHashSet -I/home/hanzo/LIGGGHTS/LIGGGHTS-PUBLIC/src -IlnInclude -I. -I/opt/openfoam211/src/OpenFOAM/lnInclude -I/opt/openfoam211/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/constDiffSmoothing.o
/usr/bin/ld: cannot find -llmp_ubuntuVTK
collect2: ld returned 1 exit status
make: *** [/home/hanzo/OpenFOAM/hanzo-2.1.1/platforms/linux64GccDPOpt/lib/liblagrangianCFDEM-PUBLIC-2.1.1.so] Error 1