Skip to content
Abhinav Roy edited this page Apr 17, 2021 · 8 revisions

Welcome to the Phase-field code wiki!

I have three separate repositories on GitHub which are related to Phase-Field code: -

  1. Cahn-Hilliard equation solver
  2. Allen-Cahn equation solver.

For the formulation of Cahn-Hilliard and Allen-Cahn equation, I would recommend Prof. M P Gururajan's NPTEL course on Phase field modelling and checking out the videos on the derivation of Cahn-Hilliard equation, and numerical solution of Spinodal Decomposition and Order-Disorder transformation, and Grain Growth in 2D. He has explained the formulation and implemented the solver in Octave. I have borrowed the algorithms for those video lectures and implemented the same in C.

As for the Variable Mobility Cahn Hilliard equation, you can refer to the original article by Zhu et al. I borrowed the variational formulation and the numerical technique, namely, the semi-implicit Fourier spectral technique from their paper and implemented the formulation in C.

The C code has two dependencies:

  • GSL (GNU Scientific Library): For pseudo-random number generators.
  • FFTW3 (Fastest Fourier Transform in the West): For implementing the Fourier transforms.
Clone this wiki locally