Case setup - RomanovaDI/snowModelling GitHub Wiki

Installation of OpenFOAM and YADE packages

1. Complile or install OpenFOAM

For ubuntu:

https://openfoam.org/download/6-ubuntu/

Installation from source:

https://openfoam.org/download/6-source/

2. Install YADE

Stable package in ubuntu is too old to run coupling, so this case was run with YADE version compiled from source (Daily package was not tested)

https://yade-dem.org/doc/installation.html#

3. Get the Yade-OpenFOAM solver at : https://github.com/dpkn31/Yade-OpenFOAM-coupling

git clone https://github.com/dpkn31/Yade-OpenFOAM-coupling.git

Check if your environment is set using your version of OpenFOAM-v6

source PATH_TO_OPENFOAM/openfoam6/etc/bashrc

Compile solver using Allwmake script

./Allwmake

4. Create a symbolic link to Yade Install

ln -s /path/to/yade/install/bin/yade-exec yadeimport.py

5. In run.sh script in line

source PathToOpenFOAM-6/etc/bashrc

replace PathToOpenFOAM-6 with you path to OpenFOAM-v6 package or coment this line if you already setup environment in you .bashrc file.

6. Run case using run.sh script

./run.sh

7. Post-Processing

Paraview or ParaFOAM can be used to visualize the results, you can also use the OpenFOAM utilities to postprocess the fluid side.

Load state icoFoamYade.pvsm in Paraview to visualize case.