Cahn-Hilliard documentation has a sign wrong
Bug #922055 reported by
Patrick Farrell
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
DOLFIN |
Fix Released
|
Medium
|
Garth Wells |
Bug Description
In demo/pde/
(\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://
Related branches
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.