|
[Sponsors] |
anyone having experience with THREAD_T0(t) ... |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 12, 2007, 06:20 |
anyone having experience with THREAD_T0(t) ...
|
#1 |
Guest
Posts: n/a
|
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 |
|
July 12, 2007, 12:14 |
Re: anyone having experience with THREAD_T0(t) ...
|
#2 |
Guest
Posts: n/a
|
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 |
|
July 13, 2007, 04:05 |
Re: anyone having experience with THREAD_T0(t) ...
|
#3 |
Guest
Posts: n/a
|
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 |
|
July 13, 2007, 12:22 |
Re: anyone having experience with THREAD_T0(t) ...
|
#4 |
Guest
Posts: n/a
|
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 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Tired of employers focus on commercial code experience | Steven P. | Lounge | 21 | May 14, 2014 10:43 |
Experience implementing vorticity confinement | tas38 | Main CFD Forum | 0 | August 18, 2010 15:00 |
My experience Installing Elmer (Open Source Multi physics programme) on Linux | Ahmed | Main CFD Forum | 3 | August 10, 2010 14:42 |
Experience with accordionEngineMesh class | chbenz | OpenFOAM Running, Solving & CFD | 2 | June 5, 2009 06:08 |
Site devoted to private experience of application | Dr. A.Ivanov | Phoenics | 6 | November 28, 2002 05:05 |