← Back to team overview

ufl team mailing list archive

Re: abs

 



Martin Sandve Alnæs wrote:
UFL supports absolute values of any scalar expression.


Very good. It's not currently supported by FFC.

Garth

Martin



On Wed, Dec 31, 2008 at 8:46 PM, Garth N. Wells <gnw20@xxxxxxxxx> wrote:
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
_______________________________________________
UFL-dev mailing list
UFL-dev@xxxxxxxxxx
http://fenics.org/mailman/listinfo/ufl-dev





Follow ups

References