CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   anyone having experience with THREAD_T0(t) ... (https://www.cfd-online.com/Forums/fluent/45361-anyone-having-experience-thread_t0-t.html)

Kumud July 12, 2007 06:20

anyone having experience with THREAD_T0(t) ...
 
Anyone having experience with THREAD_T0(t) please help me in solving this problem.

Everytime, I hook my UDF with this macro, the fluent give following error message: FLUENT received fatal signal (ACCESS_VIOLATION) 1. Note exact events leading to error. 2. Save case/data under new name. 3. Exit program and restart to continue. 4. Report error to your distributor. Error Object: ()

I am using the compile method for library building. My UDF is as mentioned below:

#include "udf.h" # define wall_id 3

DEFINE_EXECUTE_AT_END(my_domain) { face_t f;

cell_t c,c0;

Thread *t,*t0;

Domain *d;

real temp_adj=0;

real temp_grad=0;

real temp_wall=0;

d=Get_Domain(1);

t=Lookup_Thread(d,wall_id);

begin_f_loop(f,t)

{

t0=THREAD_T0(t);

c0=F_C0(f,t);

temp_adj=C_T(c0,t0);

printf("the cell temp is %f",temp_adj);

temp_wall=F_T(f,t);

temp_grad=C_T_G(c0,t0)[1];

}

printf("The temp gradient is %f", temp_grad);

end_f_loop(f,t)

}

Look forward to hear your suggetsions.

Regards Kumud


jasond July 12, 2007 12:14

Re: anyone having experience with THREAD_T0(t) ...
 
This is just a quick thought - have you set the "expert" option to keep the gradients? I know for velocity gradients you'll have problems using C_U_G without making sure the gradients are kept.

Good luck.

Jason

Kumud July 13, 2007 04:05

Re: anyone having experience with THREAD_T0(t) ...
 
Thanks a lot..

Its working well after I set the expert options.

Also do u have experience in working with Macros like

TEMPERAURE_WALL(t), HEAT_FLUX_WALL(t)

defined in f_wall.h

Regards Kumud

jasond July 13, 2007 12:22

Re: anyone having experience with THREAD_T0(t) ...
 
Not in particular, but it looks like they tell you if you have that wall condition or not. But that is just what it looks like, and it doesn't appear to be documented anywhere - I would try it out.

Jason


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