You should create a UserExpression
to do this computation:
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
How to Interpolate Special Functions | 5 | 778 | June 22, 2024 | |
How to use same vector-valued mathematical expressions with both ufl and numpy? | 4 | 219 | March 29, 2024 | |
How can I perform operations on dolfin functions? | 3 | 565 | October 11, 2021 | |
Using ufl for manifactured solutions | 2 | 439 | June 11, 2023 | |
How to return "ufl.algebra" instead of "numpy.ndarray"? | 2 | 1039 | September 23, 2021 |