DualSPhysics

Overview

DualSPhysics is based on the Smoothed Particle Hydrodynamics model named SPHysics. The code is developed (GNU Lesser General Public License) to study free-surface flow phenomena where Eulerian methods can be difficult to apply. DualSPHysics is a set of C++ and CUDA codes designed to deal with real-life engineering problems.

Versions installed:

apps/binapps/dualsphysics/5.4.3
apps/binapps/dualsphysics/5.2.2 
apps/binapps/dualsphysics/5.0

Restrictions on use

The software is released under the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1

You should read and understand whether this license is compatible with your intended use.

Set up procedure

We now recommend loading modulefiles within your jobscript so that you have a full record of how the job was run. See the example jobscript below for how to do this.

Load one of the following modulefiles:

module load apps/binapps/dualsphysics/5.4.3
module load apps/binapps/dualsphysics/5.2.2 
module load apps/binapps/dualsphysics/5.0

Running the application

Please do not run on the login node. Jobs should be submitted to the compute nodes via batch.

Batch job submissiononly

Create a batch submission script (which will load the modulefile in the jobscript), for example:

CPU only

#!/bin/bash --login
#SBATCH -p multicore  # (or --partition=) Run on the AMD 168-core nodes
#SBATCH -n 16         # (or --ntasks=) Number of cores to use.
#SBATCH -t 4-0        # Wallclock time limit. 4-0 is 4 days. Max permitted is 7-0.

# Start with a clean environment - modules are inherited from the login node by default.
module purge
module load apps/binapps/dualsphysics/5.4.3

DualSPHysics5.2_FlexStruc_linux64

GPU and CPU

#!/bin/bash --login
#SBATCH -p gpuA
#SBATCH -G 1
#SBATCH -t 1-00:00:00    ## 1 day runtime as example
#SBATCH -n 1             ## 1 task
#SBATCH -c 12            ## 12 cores (multithreaded)

# Start with a clean environment - modules are inherited from the login node by default.
module purge
module load apps/binapps/dualsphysics/5.4.3

DualSPHysics5.2_FlexStruc_linux64

Submit the jobscript using:

sbatch scriptname

where scriptname is the name of your jobscript.

Last modified on October 28, 2025 at 4:26 pm by Martin Wolstencroft