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

Error: udf received a fatal signal(segmentation fault)

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 7, 2017, 09:56
Default Error: udf received a fatal signal(segmentation fault)
  #1
New Member
 
Bob
Join Date: Dec 2016
Posts: 3
Rep Power: 9
BIANBOSHEN is on a distinguished road
Dear all,
when I try to use the following udf code to define droplet diameter, the 'error: udf received a fatal signal(segmentation fault)' is appeared.
DEFINE_PROPERTY(droplet_diam, c, mix_th)
{
real bubble_diam;
real max_size,min_size;
real vg;
real Reg;
Thread *pri_th, *sec_th;
pri_th = THREAD_SUB_THREAD(mix_th,0);
sec_th = THREAD_SUB_THREAD(mix_th,1);
max_size=1e-1;
min_size=1e-6;
vg=sqrt(pow(C_U(c,pri_th),2)+pow(C_V(c,pri_th),2)+ pow(C_W(c,pri_th),2));// vapor_v
Reg=C_R(c,pri_th)*vg*0.008/C_MU_EFF(c,pri_th);// Reynolds number
bubble_diam=0.00796*0.026/C_R(c,pri_th)/pow(C_VOF(c,pri_th)*vg,2)*pow(Reg,2/3)*pow(C_R(c,pri_th)/C_R(c,sec_th),-1/3)*pow(C_MU_EFF(c,pri_th)/C_MU_EFF(c,sec_th),2/3);
if (bubble_diam > max_size)
{
bubble_diam = max_size;
}
else if (bubble_diam < min_size)
{
bubble_diam = min_size;
}

return bubble_diam;
}
BIANBOSHEN is offline   Reply With Quote

 


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
fluentError: received a fatal signal (Segmentation fault). thomaszhangjing Fluent UDF and Scheme Programming 11 January 13, 2021 09:37
Fluent udf Error: received a fatal signal (Segmentation fault) syble FLUENT 3 December 9, 2016 16:28
Wave Tank Numerical Beach Error: received a fatal signal (Segmentation fault) Shyam Kaushik Fluent Multiphase 0 November 15, 2016 13:59
received a fatal signal(segmentation fault) kihoon1214 Fluent UDF and Scheme Programming 1 April 28, 2016 08:26
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 15:16


All times are GMT -4. The time now is 16:09.