You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
The Cahn-Hilliard equation [wikipedia definition] is a nonlinear partial differential equation (PDE) which describes 'layering' phenomenon, i.e. the formation of larger domains from smaller ones. When 'extended' to include a friction term, the equation describes the formation of domains of a well-defined scale. This equation is also a model for the simplified dynamics of zonal flow shear Z(x,t) associated to 'ExB zonal flow staircase' in magnetized plasmas, for a slab geometry (x is the radial direction, in the slab approximation). It can also describe zonal flows in planetary atmospheres, where the friction is due to bottom drag. The extended Cahn-Hilliard equation takes the form:
with μ the zonal flow friction/bottom drag (dissipation).
The function 'ext_ch_pde.m' solves the 1D extended Cahn-Hilliard equation, using a spectral method, and displays the result in both real and wavenumber space.
The syntax is:
[ua,va,tv]=ext_ch_pde_matlab(mu,n,ssteps,psteps)
where the input parameters are number of grid points (n), friction (mu). 'ssteps' is the number of internal time steps, and 'psteps' is the number of output time steps.
The output fields are
'ua':the Cahn-Hilliard field (here, zonal flow shear).
'va': its Fourier transform, and:
'tv': the time vector
The matlab script uses the anti-aliasing function 'aap' from the following reference:
Hannes Uecker, 'A short ad hoc introduction to spectral methods for parabolic PDE and the Navier-Stokes equations' p.15
Lecture given at the International Summer School Modern Computational Science (August 16-28, 2009, Oldenburg, Germany)
Cite As
Michael (2026). 1D extended Cahn-Hilliard PDE solver (https://au.mathworks.com/matlabcentral/fileexchange/183351-1d-extended-cahn-hilliard-pde-solver), MATLAB Central File Exchange. Retrieved .
Leconte, M., and T. S. Hahm. “Friction-Induced Scale-Selection in the Extended Cahn-Hilliard Model for Zonal Staircase.” Physical Review E, vol. 113, no. 2, Feb. 2026, https://doi.org/10.1103/n1wb-jnzd.
General Information
- Version 1.3 (2.06 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
