Skip to content

A python script to solve the Cahn-Hilliard equation using an implicit pseudospectral method

Notifications You must be signed in to change notification settings

hjlFrist/PyCahnHilliard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

PyCahnHilliard

This program solves the Cahn Hilliard equation using the an implicit pseudospectral method.

The Cahn-Hilliard equation is defined as

with M being a mobility and the functional of free-energy given by

where is a parameter related to the interfacial energy and is the bulk free-energy density given by

where W is the height ot the thermodynamic barrier.

The following figure is a result for the system with M=1.0, W=2.0, , dx=0.1, dt=0.01. The initial condition is given by a normal distribution

And the system is evolved until N = 2000 steps.

Output

About

A python script to solve the Cahn-Hilliard equation using an implicit pseudospectral method

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%