CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   how to set initial velocity field expressed with cylindrical coordinate (https://www.cfd-online.com/Forums/openfoam/126313-how-set-initial-velocity-field-expressed-cylindrical-coordinate.html)

lujianfang November 14, 2013 01:09

how to set initial velocity field expressed with cylindrical coordinate
 
hello everyone
I am a new foamer. I want to set a initial velocity field with funkySetFields. But the initial velocity field is given with cylindrical coordinate.
The expression is:
Code:

U_z=0//axialVelocity
U_r=0//radialVelocity
U_theta=4/(2*3.1415926*r)//tangentVelocity, r=sqrt(x*x+y*y)

I don't know how to realize this.I hope you can give me some suggestion.

Thank you very much!

regards!

lujianfang


All times are GMT -4. The time now is 01:02.