CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   DEFINE_ON_DEMAND problem (

TMorgado January 25, 2013 12:56

1 Attachment(s)
Hi everybody

I want to change the temperature of slab inside a furnace in particular time step of a transient simulation, with a DEFINE_ON_DEMAND udf.
After the simulation is completed, I execute the UDF and finnally, procede the calculation for another period of time.
That is something wrong with this approach?

Thank you

TMorgado January 25, 2013 13:09

The UDF was compiled and hooked with success, but althought it is executed without a problem, the temperature of slab ( cell zone solid ) doesn´t change.
Maybe there is something wrong with the UDF, but I can't figure out what could it be.

this is my UDF

#include "udf.h"
#include "mem.h"


Domain *d=Get_Domain(1);
int zone_ID=121, Temp=400, cont;
cell_t c;
Thread *t=Lookup_Thread(d,zone_ID);




All times are GMT -4. The time now is 04:41.