CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   Diameter variation eulerian model (

alekso April 5, 2012 12:25

Diameter variation eulerian model
I'm tryng to write an udf for diameter-time dipendent laws. For example


where current_time is the flow time (in seconds). But seems it doesn't works

This is my UDF

#include "udf.h"


Thread **pt = THREAD_SUB_THREADS(t);
Thread *tp = pt[0]; //
Thread *ts = pt[1];
real diam;

real current_time = RP_Get_Real("flow-time");


return diam;

Is it possible to print every time step the diameter on the window to check if the udf works?

Thank you.

All times are GMT -4. The time now is 16:30.