CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   How to define a parabolic velocity inlet of particles with UDF (http://www.cfd-online.com/Forums/fluent/72904-how-define-parabolic-velocity-inlet-particles-udf.html)

zumaqiong February 21, 2010 12:10

How to define a parabolic velocity inlet of particles with UDF
 
Hi, World!
I am doing a similation of blood flow with particles.
the velocity of particles at inlet is a parabolic one -261.3*(0.0001-x*x)*exp(-0.5*pow(15.15*t-3.46-15.15*n,2));
x is the position of particles injection, t is the flow time. n=(int)t/T. T is the period.
so this is a parabolic time dependent velocity of particles.
i dont know how to define it in UDF because in the Injection Panel, u can only enter a constant of velocity magnitude without UDF.

I need your help!
Thanks!

usman naseer February 22, 2010 10:12

I think "custom field functions" in Fluent can help you in this regard.
No need to write a udf
Regards

zumaqiong February 22, 2010 10:46

Hi
 
Quote:

Originally Posted by usman naseer (Post 246891)
I think "custom field functions" in Fluent can help you in this regard.
No need to write a udf
Regards

Hi!Thank u for your reply.
but it is time dependent parabolic velocity, how to use custom field functions to solve it. can u explain it with more details?
Thank u!


All times are GMT -4. The time now is 06:14.