Science note: Cahn–Hilliard (examples/) vs Allen–Cahn (apps/)¶
Both names describe interface-driven continuum models, but the shipped OpenPFC entry points differ in dimensionality, numerics, and how you run them.
12_cahn_hilliard (example)¶
What |
Spectral Cahn–Hilliard–style split operator on a structured grid; nonlinear + biharmonic-type stiffening via operators in Fourier space. |
Dimension |
Often 2D slab ( |
Driver |
Custom |
Output |
VTK time series ( |
Use |
Learn spectral |
allen_cahn (application)¶
What |
2D Allen–Cahn-type reaction–diffusion with a double-well potential; finite differences with halos on a 2D grid. |
Driver |
CLI arguments (no JSON |
Output |
Optional PNG snapshots (gather to rank 0) for quick visuals ( |
Checks |
The shipped app can verify seed growth (see |
Use |
Lightweight visual sanity check, FD + halo patterns ( |
Choosing one¶
Spectral + VTK + MPI FFT stack: start with
04→05→12(tutorials/spectral_examples_sequence.md).2D PNG + explicit FD: use
allen_cahn(apps/allen_cahn/README.md,applications.md).3D PFC production + JSON: use tungsten (
science_tungsten_quicklook.md).
See also¶
showcase.md— figures mapped to examples/appsexamples_catalog.md— full target list