I would use ufl.conditional
,
see for instance How to assign boundary conditions based on values of dolfinx.Function - #2 by dokken or Form compilation — FEniCS Tutorial @ Sorbonne
1 Like
I would use ufl.conditional
,
see for instance How to assign boundary conditions based on values of dolfinx.Function - #2 by dokken or Form compilation — FEniCS Tutorial @ Sorbonne