← Back to team overview

ufl team mailing list archive

abs

 

Since FFC is about to move to UFL, I guess this is the best place to ask certain questions now ;).

Will UFL support the absolute value of sums, e.g.

  vector = VectorElement("Lagrange", "tetrahedron", 1)
  scalar = Element("Lagrange", "tetrahedron", 1)
  v = TestFunction(scalar)
  u = Function(vector)
  n = Function(vector)

  L =  v*abs(inner(u, n))*ds

This would be useful for upwinding fluxes.

Garth


Follow ups