User Tools

Site Tools


howto:palabos

This is an old revision of the document!


Using the Lattice-Boltzman code Palabos

The following instructions are courtesy of Dr. Muaaz Bhamjee of the University of Johannesburg.

Introduction

Palabos is an open source CFD package based on the Lattice Boltzmann Method (LBM). Palabos is effectively a C++ library that can be used to develop CFD applications. More information can be obtained at the Palabos website.

Refer to the following book for an introduction to the LBM: M. C. Sukop and J. D. T. Thorne, Lattice Boltzmann Modelling: An Introduction for Geoscientists and Engineers, 2nd ed. Miami. FL: Springer-Verlag, 2006. It can be obtained here.

Instructions

To use Palabos on the CHPC you must first install the libraries to your user directory. To do so, go to the Palabos git repository and download the latest version as a tar file. Transfer this file to your user directory and extract the tar file. You can rename the install folder (this is optional)

Assuming you have downloaded the file to your user directory, and you have logged onto the Lengau cluster cd /mnt/lustre/users/username/ tar -xzvf palabos-master.tar.gz This is the optional step of renaming the palabos folder mv palabos-master palabos

The next step is to load the cmake module

module load chpc/compmech/cmake/3.15.0

To demonstrate how to compile and run a Palabos simulation, I will provide the scripts and instructions for the aneurysm example included in the palabos library. First change to the example build directory (assuming the Palabos install was renamed to palabos):

cd /mnt/lustre/users/username/palabos/examples/showCases/aneurysm/build

The next step is to compile the code. This must be run as a job with the below script. Note that the OpenFOAM environment is invoked as it contains all the dependencies for Palabos apart from cmake. With the cmake module loaded, it will be added through the compile script:

/app/dokuwiki/data/attic/howto/palabos.1652428748.txt.gz · Last modified: 2022/05/13 09:59 by ccrosby