Skip to content

JBLanders/CUDA_SW_particle_code

 
 

Repository files navigation

CUDA_C-_SW_particle_code

This project solves the Shallow Water Equations using CUDA. This also does dynamic particle tracking, where particles are Lagrangian objections advected by the flow. Shallow_Water_Eq.cu has a method writeInteractions() which can calculate inter-particle distances for a million particles using GPUs. All the GPU compuatations are done in cuda_kernels.cu. The documentation for computing particle interactions using cuda is provided as Cuda_compute_particle_interactions_doc.pdf .

The .py files are needed to create initial conditions.

To run the code:

make clean python3 **.py make ./SW_main.x

Outputs and interactions are saved as .nc files

About

Shallow Water Equations solver with dynamic particle tracking and computing inter-particle interactions using GPU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Cuda 66.0%
  • Python 25.3%
  • C++ 4.8%
  • C 3.9%