Cahn-Hilliard documentation has a sign wrong

Bug #922055 reported by Patrick Farrell
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
DOLFIN
Fix Released
Medium
Garth Wells

Bug Description

In demo/pde/cahn-hilliard/common.txt, it describes the weak form of the equation for \mu (line 52) as

(\mu) - (df/dc) + (\lambda \nabla c \cdot \nabla v) = 0

where the important point is the last term is positive, the opposite sign to df/dc.
However, the cahn-hilliard.py (line 95) has

L1 = mu*v*dx - dfdc*v*dx - lmbda*dot(grad(c), grad(v))*dx

which has the last term as negative, the same sign as df/dc.

The same sign error (\lambda should be -\lambda everywhere) occurs throughout the common.txt. (I'm pretty sure the sign should be negative, comparing to http://projecteuclid.org/euclid.cms/1214949925)

Changed in dolfin:
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Garth Wells (garth-wells)
Changed in dolfin:
status: Confirmed → Fix Committed
Changed in dolfin:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.