udf -pulsatile flow
I want to change constant inlet velocity to sinusoidal
(asinwt) velocity which will vary with time. Can anybody send the udf file for the same for which I shall be obliged to you. |
Try this one:
DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; begin_f_loop(f, thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f,thread,position)= 2000.+ 100*t; } end_f_loop(f,thread) } Courtesy: http://www.cfd-online.com/Forums/flu...n-one-udf.html |
All times are GMT -4. The time now is 02:10. |