This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Is it possible to obtain exponential of jump?

0 votes

When I try to get the exponential of jump

exp(jump(u))

I got a error meassage: ufl.log.UFLException: Expecting scalar argument.

could you please help me to obtain the exponential of jump.

Thanks

asked Aug 3, 2015 by ChrisZhang FEniCS Novice (190 points)

1 Answer

0 votes

If your function u is vector-valued then its jump is also vector-valued. The exponential function requires scalar-valued input so your form will not make sense without some modification.
For example, you can consider the jump normal to the facet:

u = Function(V)
n = FacetNormal(mesh)
f = exp(jump(u,n)) * dS
answered Aug 3, 2015 by Magne Nordaas FEniCS Expert (13,820 points)

Thank you for your kind answer.
I reread the UFL manual. It's really helpful

...