CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   Help: user defined function (http://www.cfd-online.com/Forums/fluent/28031-help-user-defined-function.html)

alice November 20, 2000 03:37

Help: user defined function
 
Hi,

I'm using user defined function as boundary condition at velocity inlet. I try to define a periodic velocity profile such as: v=V*(1+Asinwt) where t=n*dt and dt is the step time value, n the iteration number (sum(n)=total number of iterations).

Can anyone of you tell me what are the pointers for this variables in Fluent5.3?

Thanks for help.

Alice

Greg Perkins November 20, 2000 19:00

Re: Help: user defined function
 
time = RP_Get_Real("flow-time") is current time in seconds

niter = (nres == 0) ? (0) : ((int) count2[nres - 1]); returns current iteration number in niter.

Regards

Greg


alice November 21, 2000 02:50

Re: Help: user defined function
 
Thanks for help.

Alice

Dan Williams December 13, 2000 00:10

Re: Help: user defined function
 
Unbelievable. You actually have to use a user defined function and recompile the code to do this?? Bizzare. Get a copy of CFX5.

Dan.


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