


{"id":48495,"date":"2020-09-28T18:02:14","date_gmt":"2020-09-28T18:02:14","guid":{"rendered":"\/forum\/forums\/topic\/node-0-process-25932-received-signal-sigsegv-fluent-udf-c_udmi\/"},"modified":"2020-09-28T18:02:14","modified_gmt":"2020-09-28T18:02:14","slug":"node-0-process-25932-received-signal-sigsegv-fluent-udf-c_udmi","status":"closed","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/node-0-process-25932-received-signal-sigsegv-fluent-udf-c_udmi\/","title":{"rendered":"Node 0: Process 25932: Received signal SIGSEGV\/Fluent\/udf\/c_udmi"},"content":{"rendered":"<p>Hi all,nI&#8217;m running a simple multiphase simulation of a tank. I use mixture model and standard k-e. nothing else. In the model, I need to take the second phase out if it hit the bottom floor with a certain velocity, similar to degassing boundary condition, by using udf. I used DEFINE_ADJUST to calculate the mass source and used DEFINE_SOURCE to add the source term. nI am receiving this error message everytime I hit the calculation button: Node 0: Process 25932: Received signal SIGSEGVnI have several check points here:nThe udf compiled and loaded properly nI set the UDM location to 1 before I build and load the udfnI also tried initializing the system by calculating it without udf first, as suggested on the forum, it didn&#8217;t helpnThe model runs well without udfnI tried to hook up the my_adjust only, it gave me the same error, it seems like it has something to do with the DEFINE_ADJUST part onlynI tried both steady-state and transient, the results are the samenI also tried to interpret the udf instead of compiling, it didn&#8217;t helpnI made sure that the zone ID are correctnCan someone please help me?n#include udf.hnnDEFINE_ADJUST(my_adjust1, d)n{ntThread *t, **pt;ntface_t f;ntcell_t c;nntt = Lookup_Thread(d, 9);nttbegin_c_loop(c, t)nt{nttC_UDMI(c,t,0)=0.0;nttpt=THREAD_SUB_THREADS(t);nttif (C_V(c, pt[1]) < 0.0)ntttC_UDMI(c,t,0) = -1.368*C_R(c, pt[1])*C_VOF(c, pt[1])*C_V(c, pt[1]);nt}ntend_c_loop(c, t)nn}nnDEFINE_SOURCE(bot_source1, c, t, dS, eqn)n{ntThread *super_t = THREAD_SUPER_THREAD(t);ntreturn (-1.0*C_UDMI(c,super_t,0));n}n\n<\/p>\n","protected":false},"template":"","class_list":["post-48495","topic","type-topic","status-closed","hentry","topic-tag-fluent","topic-tag-sigsegv","topic-tag-udf","topic-tag-udm","topic-tag-udmi"],"aioseo_notices":[],"acf":[],"custom_fields":[{"0":{"_bbp_old_topic_id":["20719"],"_bbp_old_topic_author_name_id":["Anonymous"],"_bbp_old_is_topic_anonymous_id":["false"],"_bbp_old_closed_status_id":["publish"],"_bbp_author_ip":["?3\tw"],"_bbp_old_sticky_status_id":["normal"],"_bbp_likes_count":["0"],"_btv_view_count":["456"],"_bbp_subscription":["241955"],"_bbp_topic_status":["unanswered"],"_bbp_status":["publish"],"_bbp_topic_id":["48495"],"_bbp_forum_id":["27792"],"_bbp_engagement":["25","167478"],"_bbp_voice_count":["2"],"_bbp_reply_count":["3"],"_bbp_last_reply_id":["129596"],"_bbp_last_active_id":["129596"],"_bbp_last_active_time":["2020-10-13 01:46:55"]},"test":"danmei"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/48495","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/48495\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=48495"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}