Adding inlet velocity as input variable to the cylinder problem

Is it possible to add inlet velocity constraint as Input variable to the cylinder_2d.py problem. (https://github.com/NVIDIA/modulus-sym/blob/main/examples/cylinder/cylinder_2d.py)

In the tutorial, X and Y grid points are the inputs variables and u inlet is given as constraint which will be constant for the ML model. How can I add u inlet as a input variable so that it can be varied?

2 Likes