Consider using a conditional, as described in: How to implement function with condition? - #3 by dokken
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Syntax around ufl.conditional | 2 | 660 | June 28, 2023 | |
| How to implement function with condition? | 2 | 1387 | May 18, 2021 | |
|
What is the syntax to import conditional operators from ufl package?
|
3 | 1644 | May 19, 2021 | |
| How to perform non-smooth operations on variables in finite element function space | 6 | 854 | December 10, 2020 | |
| Defining a fem.Function using a conditional ufl statement | 4 | 331 | February 27, 2024 |