Simplify logic in the PyDOLFIN expression class

Registered by Johan Hake

Make Expression a sub class of cpp.Expression, ufl.Function. This class should only be used when subclassing in Python.

This makes sub classing in Python intuitive and users should not get any nasty surprises when initializing base classes.

We can consider adding functionalities for:

  def eval(value, x):
      values[0] = sin(x[0])

   e = Expression(eval, V=V)

Add CompiledExpression. A function that wrap the compiled expression stuff.

Blueprint information

Status:
Complete
Approver:
None
Priority:
High
Drafter:
Johan Hake
Direction:
Needs approval
Assignee:
Johan Hake
Definition:
Obsolete
Series goal:
None
Implementation:
Not started
Milestone target:
None
Completed by
Johan Hake

Related branches

Sprints

Whiteboard

JH:
I suggest we invalidate this Blueprint as we decided not to split the Expression class in PyDOLFIN.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.