The velocity of inflow code problem

Hi, I have to simulate turbulence flow in FEniCS.
I do not how to do this velocity in python:
image
image

Can anyone help me?
Here is my original code I want to change. >_<

You could use an UserExpression, where you use numpy.random to create your random variation on each evaluation.
See for instance:

or

or

1 Like