I have two AssignedVectorFunctions, one is velocity field w_u and the other is b_f, which is a function of the velocity field. I want to edit the values of b_f so that on every node that has a higher value than that node in w_u, the value is set to the value of w_u. Or, in other words, every node in b_f has to satisfy:
Thank you for your answer, but I don’t see completely how this is going to solve my problem. My problem is that I have two Functions, both having x and y component of the velocity for each node. I want to replace the value of vector b_f (so sqrt(b_f(x)^2 + b_f(y)^2)) on the nodes in which the bf vector is bigger than the w_u vector.
In your example you give two scalar functions, in stead of vector functions. I understand your script, but dont think this will work the same for vector functions, or am I mistaking?