ufl team mailing list archive
-
ufl team
-
Mailing list archive
-
Message #00578
Re: abs
UFL supports absolute values of any scalar expression.
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
-
Re: abs
From: Anders Logg, 2009-01-01
-
Re: abs
From: Garth N. Wells, 2009-01-01
References
-
abs
From: Garth N. Wells, 2008-12-31