CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

error using C_VOF(c,t) in udf in fluet

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 6, 2017, 02:54
Default error using C_VOF(c,t) in udf in fluet
  #1
New Member
 
ali
Join Date: Jun 2016
Posts: 10
Rep Power: 9
abdoli is on a distinguished road
hi friends
i am using udf in fluent 15 to find volume of fluid of secondary phase in liquid-gas flow for adjacent wall cells. fluent compiles udf but when hooking, i received this error.
Error: received a fatal signal (Segmentation fault).
Error Object: #f
the udf is as below:

#include "udf.h"
#include "sg.h"
#include "metric.h"
DEFINE_PROFILE(contact_angle_BC, t, i)
{
real x[ND_ND], c1x, c1y, CVOF, ContLVel[100];
int d;
face_t f;
Thread *t0;
cell_t c;
cell_t c0;
d=0;
begin_f_loop(f,t)
{
c0 = F_C0(f,t);
t0 = THREAD_T0(t);
ContLVel[d]=C_V(c0,t0);
C_CENTROID(x,c0,t0);
c1x=x[0];
c1y=x[1];
CVOF=C_VOF(c0,t0);
printf("x1 = %g y1 = %g Vel = %g VOF = %g\n", c1x, c1y, ContLVel[d], CVOF);
d=d+1;
}
end_f_loop(f,t)
}
i would be glad if someone help me with this problem.
abdoli 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
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
Parallelize UDF? Which kind of UDF? Lilly FLUENT 5 March 25, 2014 02:05
Help! Delete the UDM codes in the UDF Messi Fluent UDF and Scheme Programming 2 January 28, 2014 09:01
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 01:34.