vighnesh
Subscriber

Hi abenhadj,


Can u please elaborate.i need to run entire udf for 30degree first then for 40 degree moving on till 70degree. how can i hook it to this UDF. Have done some modification below hope you have some good suggestion. 


 


#include "udf.h"


DEFINE_PROFILE(velocity_magnitude,t,temp)


{


real velocity;


real the_current_time;


face_t f;


For(real temp=30; temp<=70;temp+=10)


{


the_current_time = CURRENT_TIME;


if ((the_current_time>=0) && (the_current_time<100))


{


velocity=0.03;


}


.


.


.


.


.


if ((the_current_time>=3900) && (the_current_time<4000))


{


velocity=1.21;


}


}


begin_f_loop(f,t)


{


F_PROFILE(f,t,temp) = velocity;


}


end_f_loop(f,t)


}