I am interested in defining an inlet velocity as U = Umax * ( 1-r/R) ^ 7 for a pipe flow. (Here r is the y co-ordinate). Which boundary condition can I use? Can someone provide an example?
Any help is very much appreciated.
The codedFixedValue boundary condition in OpenFOAM should be it. You can check the below link for an example of codedFixedValue BC.