Maybe take a look at these, and try to implement your code in C++, this will make it much faster than using a UserExpression, that uses python to do the computations
plugged
2
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Complex userExpression using C++ class | 3 | 467 | July 19, 2022 | |
| Interpolation of expression inferred from cppyy evaluations | 1 | 63 | May 2, 2024 | |
| Pass Function to C++ expression | 6 | 2736 | July 8, 2021 | |
| Expression in equation | 4 | 890 | May 2, 2019 | |
| SUPG in dolfinx: how to replace C++ expressions? | 4 | 573 | January 16, 2023 |