### Problem with exponential function.

70

views

0

Hi,

I have faced a rather peculiar situation. I have a displacement field u in a vector function space V. The biggest component of u can be evaluated by:

Thank you,

I have faced a rather peculiar situation. I have a displacement field u in a vector function space V. The biggest component of u can be evaluated by:

`max_u=project(u,V).vector().max()`

which gives me 5.1714234567. Now when I do the same thing for exp(u):`max_exp_u=project(exp(u),V).vctor().max()`

it gives me 1428.231256. While it should be exp(5.1714234567)=176.2182805. I have also tried e^u rather than exp(u) and I get the same wrong answer. Could someone please tell me what I am doing wrong?Thank you,

Community: FEniCS Project

1

Trying to reproduce your problem, I get the error message "Expecting scalar argument.". What dimension is the Vector Space of 'u'? The function 'exp' appears to be asking for a scalar (which makes sense). Can you paste a minimum working example?

written
3 months ago by
Mike Welland

Please login to add an answer/comment or follow this question.