On Jan 28, 2009, at 10:52 AM, Ionut Vancea wrote:

Here are the equations:
1D case:
\partial_t \phi = -\partial_x \left\{\phi^3 \partial_x \left[
\partial_{xx} \phi - \partial_\phi f(\phi)\right]\right\}

2D case:
\partial_t \phi=-\nabla\{\phi^3\nabla[\triangle \phi -\partial_\phi f(\phi)]\}

where f(\phi) = ...

The problem is that I need a little help to write the equations in the
correct form in order
to use them with fipy (for both cases).

In FiPy, you would write them both the same way, simply changing from a 1D to a 2D Mesh.

Please see the Cahn-Hilliard examples in the manual.


Reply via email to