Solver of Cahn-Hilliard (CH) equation - an equation of mathematical physics which describes the process of phase separation.
Matlab R2018b or higher.
The purpose of the Cahn-Hilliard theory is to provide an equation of motion of the composition field
where
The Cahn-Hilliard equation, in general, cannot be solved analytically. Thus, numerical simulation is required for the detailed comparison of the experiment with the theoretical behavior. In order to solve CH equation, it is discretized on a square lattice of
The
The Laplacians, e.g.
After the discretization in space, the CH equations transforms into a system of
Here,
where
where
The Cahn-Hilliard modeling is widely used for the description of phase separating systems such as alloys, or polymer blends and is an intense area of research. In addition, it is encountered in the literature for many other applications, such as planet formation and cancer growth.
The current code simulates the evolution of the concentration 2D map with the possibility of creation .avi video and calculates the corresponding scattering pattern, which can be used for further analysis. The results are saved in the corresponding .mat files. The example of the simulated concentration map is presented below:
The current code was used for the following articles:
-
Reverse-engineering method for XPCS studies of non-equilibrium dynamics, A. Ragulskaya, V. Starostin, N. Begam, A. Girelli, H. Rahmann, M. Reiser, F. Westermeier, M. Sprung, F. Zhang, C. Gutt and F. Schreiber, IUCrJ 9, 439-448, 2022.
-
Interplay between Kinetics and Dynamics of Liquid-Liquid Phase Separation in a Protein Solution Revealed by Coherent X-ray Spectroscopy, A. Ragulskaya, N. Begam, A. Girelli, H. Rahmann, M. Reiser, F. Westermeier, M. Sprung, F. Zhang, C. Gutt and F. Schreiber, Journal of Physical Chemistry Letters 12 (30), 7085-7090, 2021.