Multi Phase Field Model with Anisotropic Interface Energy

From Micro and Nano Mechanics Group
Jump to navigation Jump to search

Multi Phase Field Model with Anisotropic Interface Energy

Seunghwa Ryu, Yanming Wang and Wei Cai

This tutorial describes the theory and numerical implementation of a 3D multi phase phase field model with anisotropic interface energy. The model has been implemented in both matlab and in MD++. We describe the algorithm of these codes and how to use them in detail. A brief introduction of the phase field model can be found in Chapter 11 of

Computer Simulations of Dislocations, V. V. Bulatov and W. Cai, Oxford University Press (2006).


Download files

The matlab program can be downloaded from this link: Pf3d multi aniso.m. For the test case you need only one matlab file. You can download it into a directory of your choice, using the following command

wget http://micro.stanford.edu/mediawiki/images/f/fd/Pf3d_multi_aniso.m.txt -O Pf3d_multi_aniso.m

and run it within Matlab.

Theory

Similar to the case of multi phase field model with isotropic interface energy, the fundamental degrees of freedom and the corresponding free energy functional are in the same style. If we consider a system containing vapor, liquid and solid three phases, the only difference is that the gradient term in the free energy density functions of liquid-solid pair and solid-vapor pair now depends on the local orientation of the gradient of solid phase.


Replacing  with ,  with  and keeping  a constant,



For simplicity, choosing solid-vpaor pair as an example, the variational derivative is,


       

where , , , and .

The methods to obtain the explicit expression of and were already discussed in the previous wiki page.

Algorithm

Similar to the previous wiki page,in matlab, We present liquid , solid , and vapor , three phase fields by a cell. Each element phi{i}(m,n,p) of the cell is a three-dimensional array, of size . i goes from 1 to 3, m goes from 1 to , n goes from 1 to , and p goes from . For simplicity, a uniform grid size is used in all three directions., by default, periodic boundary conditions (PBC) are applied in all three directions.

For each phase , the first derivatives, , , , the second derivative, and , are computed the following manner.

dphidx{i} = (phi{i}(pxind,:,:)-phi{i}(nxind,:,:))/(2*h);
dphidy{i} = (phi{i}(:,pyind,:)-phi{i}(:,nyind,:))/(2*h);
dphidz{i} = (phi{i}(:,:,pzind)-phi{i}(:,:,nzind))/(2*h);
d2phi{i}  = (phi{i}(pxind,:,:)+phi{i}(nxind,:,:) ...
             +phi{i}(:,pyind,:)+phi{i}(:,nyind,:) ...
             +phi{i}(:,:,pzind)+phi{i}(:,:,nzind)-6*phi{i})/(h^2);
dphi_SQR{i} = (dphidx{i}.*dphidx{i}) + (dphidy{i}.*dphidy{i}) + (dphidz{i}.*dphidz{i});

For the solid phase i=2,

Test cases