CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Fluent crashes when I tried to run my udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 16, 2022, 23:57
Default Fluent crashes when I tried to run my udf
  #1
New Member
 
Join Date: Jun 2022
Posts: 27
Rep Power: 4
Mars35 is on a distinguished road
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
Mars35 is offline   Reply With Quote

Old   December 19, 2022, 04:17
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
probably you made a typo
was
Code:
F_PROFILE(f,t0,i)
tobe
Code:
F_PROFILE(f,t,i)
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 11:44.