CFD Online Discussion Forums

CFD Online Discussion Forums (
-   FLUENT (
-   -   anyone having experience with THREAD_T0(t) ... (

Kumud July 12, 2007 05: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;








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




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



Look forward to hear your suggetsions.

Regards Kumud

jasond July 12, 2007 11: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.


Kumud July 13, 2007 03: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


defined in f_wall.h

Regards Kumud

jasond July 13, 2007 11: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.


All times are GMT -4. The time now is 15:28.