|
[Sponsors] |
December 16, 2022, 23:57 |
Fluent crashes when I tried to run my udf
|
#1 |
New Member
Join Date: Jun 2022
Posts: 27
Rep Power: 4 |
Hi guys, I received the following message when I run my udf code.
"999999: mpt_accept: error: accpet failed: No error. " Here is my code: #include "udf.h" #include "sg.h" DEFINE_PROFILE(wall_temperature,t,i) { real A[ND_ND]; real ds, q, k, A_by_es; face_t f; cell_t c0; Thread *t0; real es[ND_ND]; real dr0[ND_ND]; q=500; k=0.6; begin_f_loop(f,t) { c0 = F_C0(f,t); t0 = F_C0_THREAD(f,t); BOUNDARY_FACE_GEOMETRY(f,t,A,ds,es,A_by_es,dr0); F_PROFILE(f,t0,i)=-q/k*ds + C_T(c0,t0); } end_f_loop(f,t) } I am not sure what is wrong with my code. I tried to specify user-defined memory but it did not work. Any help would be appreciated! Thank you |
|
December 19, 2022, 04:17 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
probably you made a typo
was Code:
F_PROFILE(f,t0,i) Code:
F_PROFILE(f,t,i)
__________________
best regards ****************************** press LIKE if this message was helpful |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to run multiple cycle pulsetile flow simulation in Ansys fluent using UDF code? | Md Al Amin Sheikh | Fluent UDF and Scheme Programming | 4 | January 28, 2020 12:55 |
Dumb Ansys Fluent can't compile UDF | ordinary | FLUENT | 1 | October 9, 2019 08:55 |
Compiling UDF in FLuent | ekha | FLUENT | 6 | July 3, 2019 04:02 |
Passing udf value to fluent | durg | Fluent UDF and Scheme Programming | 2 | February 11, 2019 13:55 |
Two questions on Fluent UDF | Steven | Fluent UDF and Scheme Programming | 7 | March 23, 2018 04:22 |