Palabos
Palabos is an open-source software based on the Lattice Boltzmann Method (LBM). It is one of the few LBM-based computational fluid dynamics software packages (the only comparable commercial software is PowerFLOW, which is extremely expensive). Developed collaboratively by scholars from various countries, it is primarily used for fluid simulation. Palabos integrates multiple LBM models. Written in C++, it supports MPI parallelization and employs various optimization measures. It outputs results in VTK format, allowing for data analysis and processing using open-source post-processing software such as ParaView.
A key feature of PalaBos is its separation of parallel mechanisms from models within its parallel structure, ensuring that application modeling is independent of parallel mechanisms. This design makes PalaBos highly extensible.
1. Script Template
#!/bin/bash
#SBATCH --nodes=1 # Number of nodes
#SBATCH --ntasks-per-node=56 # Number of cores per node
#SBATCH --ntasks=56 # Total number of cores
#SBATCH --partition=g1_share # Queue partition; must specify the correct partition
#SBATCH --job-name=hello # Job name
#SBATCH --output=hello.%j.out # Standard output log (%j is the jobId)
#SBATCH --error=hello.%j.err # Error output log (%j is the jobId)
##############################################
# Software Envrironment #
##############################################
unset I_MPI_PMI_LIBRARY # Unset default MPI library, use Intel's built-in
export I_MPI_JOB_RESPECT_PROCESS_PLACEMENT=0 # Parameter modification required for Intel multi-node jobs
# load intel/2022 intelmpi/2022 # Load Intel environment
##############################################
# Run job #
##############################################
export OMP_NUM_THREADS=1
mpirun ./cavity3d 400