Skip to content
Flockuda is a predator-prey model that runs on a CUDA-enabled NVIDIA Graphics Processing Unit (GPU).
Cuda C++ Makefile C
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
LICENSE.md
Makefile
README.md
configuration.cu
configuration.h
example.cfg
forces.cu
forces.h
main.cu
predator.cu
predator.h
prey.cu
prey.h

README.md

Flockuda

Flockuda is a predator-prey model that runs on a CUDA-enabled NVIDIA Graphics Processing Unit (GPU). The model is based on the Molecular Dynamics approach described by Lee et al. (2006), "Prey-Flock Deformation under a Predator's Attack", Journal of the Korean Physical Society, 48:S236--S240. However, no stochastic forces are currently included. Furthermore, the model implements a direct approach to force calculation, such that the computational complexity is O(N^2) where N is the number of prey.

Dependencies

The NVIDIA CUDA C compiler is required in order to compile Flockuda. The H5Part library is also required, since the prey and predator solution fields are written to an .h5part file. Flockuda is known to successfully compile with v9.1.85 of the NVIDIA CUDA C compiler and v1.6.6 of H5Part. Users may need to adjust the paths to the H5Part library in the Makefile.

Usage

A simulation can be set up by editing the parameters in example.cfg, then compiling and executing the code by running the following commands at the command line:

make
./flockuda example.cfg

Authors

Copyright statement

Copyright (C) 2019 Christian T. Jacobs

You can’t perform that action at this time.