UFL

Fancy function derivative features

Registered by Garth Wells

Functions (low priority, could allow automatic linearization w.r.t. functions not in a finite element space?):
    - (low) Attaching derivatives to Functions:
      It would be nice if the user could supply the derivative of a Function as another Function.
      Maybe we can do:

        Df = Function(element2)
        f = Function(element1, gradient=Df)

      and perhaps for linearization:

        g = Function(element3)
        df_dg = Function(element2)
        f = Function(element1, derivatives = { g: df_dg })

      then you could do:

        F = derivative(f**2*dx, f)
        J = derivative(F, f)

      even if f is defined on a quadrature element.

Blueprint information

Status:
Complete
Approver:
None
Priority:
Undefined
Drafter:
None
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Implemented
Milestone target:
None
Started by
Martin Sandve Alnæs
Completed by
Martin Sandve Alnæs

Related branches

Sprints

Whiteboard

This is now implemented as a mapping passed to derivative() instead.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.