Skip to content

jijn/phasefield_coarsening

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Parallel phase-field code for coarsening

This code implements Nele Moelans' phase-field model:

Moelans, N. "A quantitative and thermodynamically consistent phase-field interpolation function for multi-phase systems," Acta Materialia, 59, (2011) p.p. 1077-1086. doi: 10.1016/j.actamat.2010.10.038

This code is used in the work to fit the liquid diffusivity:

J. Zhang, S. O. Poulsen, J. W. Gibbs, P. W. Voorhees, H. F. Poulsen, "Determining Material Parameters Using Phase-field Simulations and Experiments," Acta Materialia, 129 (2017) p.p. 229-238. doi: 10.1016/j.actamat.2017.02.056

Requirement

This code requires the OpenMPI library and the HDF5 library.

Compile and run the code

Compile the code:

icc -O2 -o ppf -L{dir of hdf5 library} -L{dir of mpi library} -lmpi -lhdf5 phasefield.c

If you run the code on the same machine where it is compiled, add the compiler flag -xhost to enable more optimization.

Run the code:

mpirun -np N ./ppf filename

N - number of cores used

filename - the input file name

Input file

You can generate the input hdf5 file using the following MATLAB code:

etaS = ; etaL = ; c =; s = size(etaS);
h5create(filename,'/etaS',s,'Datatype','double');
h5create(filename,'/etaL',s,'Datatype','double');
h5create(filename,'/c',s,'Datatype','double');
h5write(filename,'/etaS',etaS);
h5write(filename,'/etaL',etaL);
h5write(filename,'/c',c);

About

parallel phase-field code for coarsening

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages