![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Complete Phase Field Crystal simulation demonstrating all OpenPFC APIs. More...
#include <cmath>#include <iostream>#include <memory>#include <mpi.h>#include <openpfc/boundary_conditions/fixed_bc.hpp>#include <openpfc/initial_conditions/constant.hpp>#include <openpfc/initial_conditions/single_seed.hpp>#include <openpfc/openpfc.hpp>
Classes | |
| class | PFCModel |
| Phase Field Crystal model for solidification simulations. More... | |
Functions | |
| int | main (int argc, char **argv) |
Complete Phase Field Crystal simulation demonstrating all OpenPFC APIs.
This comprehensive example demonstrates:
Physical System: Phase Field Crystal (PFC) model for solidification Single-mode approximation with periodic boundary conditions Liquid → Solid phase transition driven by undercooling
Compile and run: mpicxx -std=c++17 -I/path/to/openpfc/include 10_complete_pfc_model.cpp \ -L/path/to/openpfc/lib -lopenpfc -lheffte -o 10_complete_pfc_model mpirun -np 4 ./10_complete_pfc_model