Updating function of coordinates each time step

I would suggest using ufl.conditional, see: How to implement function with condition? - #3 by dokken

2 Likes