CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Creating UDF with changing velocity with time (https://www.cfd-online.com/Forums/main/184693-creating-udf-changing-velocity-time.html)

jabeztan March 8, 2017 11:34

Creating UDF with changing velocity with time
 
Hi all,

I was asked to write the UDF for a 2D room and it has to change velocity in terms of time. Like, when the time is 0 to 2 seconds, the velocity magnitude is horizontal. Then 2 to 4 seconds, the velocity changes magnitude and so on until the velocity is vertical. For example, the velocity is flowing into the inlet at 0 degree then changes with time to 90 degrees. After that, it flows down to 0 degree then repeat. It is like moving fan blowing into the inlet from 0 degree to 90 degrees.

Please help with this because I have no knowledge on writing UDF at all.

Thanks!


All times are GMT -4. The time now is 13:18.