phase-separation2d¶
English | Japanese
« Home · « Two-phase flow (phase field)
2D spinodal decomposition / phase separation -- OpenRheo two-phase phase-field benchmark (clean-room). A homogeneous 50/50 mixture is quenched into the two-phase region by seeding phi = 1/2 + small random noise in a fully periodic, gravity-free square box with equal densities and viscosities. The mixture is linearly unstable: the noise grows, the two phases separate into an interpenetrating (bicontinuous) domain morphology, and those domains then COARSEN -- a single characteristic length L(t) grows as a power law.
Geometry¶

Animation¶
Fields¶
The fields this computation wrote at its last output step, plotted as they are. 3D cases show the mid-plane.


Build & run¶
cmake -S native -B native/build && cmake --build native/build -j
./native/build/orheo-phase-separation2d
Cost of the computation that made the figures on this page (Miyabi-G Grace CPU (72 cores, -stdpar=multicore)): 56.5 s wall.
Validation¶
| Tier | T2 — single-point comparison |
| QoI | domain_length_exponent |
| Reference | spinodal-decomposition coarsening power law L(t) ~ t^(2/3) |
| Gate | 🧩 module gate (phase_field) |
Source & run details¶
| Item | Value |
|---|---|
| Target | orheo-phase-separation2d |
| Source | native/benchmarks/phase_separation2d.cpp |
| Lattice | D2Q9 |
| GPU twin | no |
| Modules | two_phase.hpp |
| Gallery run | 2026-07-27 @ 8da31257 |
| Args | `` |
| Wall time | 56.48 s |
| CPU time | 3647.09 s |
| Device | Miyabi-G Grace CPU (72 cores, -stdpar=multicore) |
Computation log¶
The actual output of this computation (head and tail).
=== Phase separation 2D (spinodal decomposition) ===
grid 256 x 256 (nz=1) periodic, no gravity, rho ratio 1
nu=0.01 (tau=0.5300) sigma=0.01 width=4 mob=0.02
phi0=0.500 noise amp=0.01 seed=12345 steps=60000 MRT s_ghost=1.00
snapshot -> ./psep_phi_000001.dat
snapshot -> ./psep_phi_000002.dat
snapshot -> ./psep_phi_000003.dat
snapshot -> ./psep_phi_000004.dat
snapshot -> ./psep_phi_000007.dat
snapshot -> ./psep_phi_000011.dat
snapshot -> ./psep_phi_000018.dat
snapshot -> ./psep_phi_000028.dat
snapshot -> ./psep_phi_000046.dat
snapshot -> ./psep_phi_000074.dat
...
step 48000 L=99.422 ilen=659 <phi>=0.5000 umax=1.53e-02 phi[-0.000,1.000]
step 50000 L=94.665 ilen=692 <phi>=0.5000 umax=1.27e-02 phi[-0.000,1.000]
step 52000 L=91.267 ilen=718 <phi>=0.5000 umax=9.55e-03 phi[-0.000,1.000]
step 54000 L=90.216 ilen=726 <phi>=0.5000 umax=9.48e-03 phi[-0.000,1.000]
step 56000 L=93.745 ilen=699 <phi>=0.5000 umax=1.19e-02 phi[-0.000,1.000]
step 58000 L=99.355 ilen=660 <phi>=0.5000 umax=1.22e-02 phi[-0.000,1.000]
step 60000 L=105.280 ilen=622 <phi>=0.5000 umax=1.30e-02 phi[-0.000,1.000]
snapshot -> ./psep_phi_060000.dat
done. csv -> phase_separation2d.csv