Skip to content

Allen Cahn CUDA (Phase-Field Simulation of Dendritic Solidification)

License

Notifications You must be signed in to change notification settings

myousefi2016/Allen-Cahn-CUDA

Repository files navigation

Allen Cahn CUDA (Phase-Field Simulation of Dendritic Solidification)

Description: This CUDA program does phase-field simulation of dendritic solidification based on these references:

  1. Yung-Tae Kim, Nikolas Provatas, Nigel Goldenfeld, and Jonathan Dantzig, Universal dynamics of phase-field models for dendritic growth, Phys. Rev. E 59, R2546(R)

  2. Anand Kumar, Isotropic finite-differences, Journal of Computational Physics, Volume 201, Issue 1, 20 November 2004, Pages 109-118

Dependencies: CUDA Toolkit 9.2, GCC 6.3, VTK 8.2, CMake 3.10.0

In order to compile the program use these commands in UNIX shell terminals:

git clone git@github.com:myousefi2016/Allen-Cahn-CUDA.git
cd Allen-Cahn-CUDA && mkdir build && cd build
cmake .. && make

To run the program after compilation just running this command:

mkdir out && ./Allen-Cahn-CUDA

It will store the results in out directory as vtk files. Good luck and if you use this piece of code for your research don't forget to give attribute to this github repository. Also this program is tested on a cluster with Tesla V100 gpus. If you don't have access to this type of gpu, you could reduce the simulation size by changing these lines in main.cu file.

#define DATAXSIZE 600
#define DATAYSIZE 600
#define DATAZSIZE 600

alt text

About

Allen Cahn CUDA (Phase-Field Simulation of Dendritic Solidification)

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published