|
[Sponsors] |
May 8, 2014, 06:50 |
Error DEFINE_PROPERTY UDF
|
#1 |
New Member
cdbov
Join Date: May 2014
Posts: 1
Rep Power: 0 |
Hi,
I have written a UDF for defining the granular viscosity of the secondary phase of a multiphase fluid: #include "udf.h" #define PI 3.14159265 #define vof_smax 0.65 #define vof_sfric 0.5 #define ess 0.9 #define d_s 0.024353175 DEFINE_PROPERTY(granular_viscosity,c,t) { real collisonal_visc, kinetic_visc, frictional_visc, bulk_visc, granular_visc; real g0, I2d, Idd, P_s, P_fric, nablavel_s; real temp_s, vof_s, visc_g, rho_s, dudx, dvdy, dwdz, repose_angle; Domain *domain; domain=Get_Domain(3); temp_s = C_T(c,t); vof_s = C_VOF(c,t); visc_g = C_MU_EFF(c,t); rho_s = C_R(c,t); dudx = C_DUDX(c,t); dvdy = C_DVDY(c,t); dwdz = C_DWDZ(c,t); repose_angle = 30; nablavel_s = dudx+dvdy+dwdz; g0 = pow((1-(vof_s/vof_smax)),(-2.5*vof_smax)); kinetic_visc = (sqrt(PI*temp_s)*(d_s*rho_s/(24*vof_s*g0))*(((5+2*vof_s*g0*(1+ess)*(3*ess-1)))/((1+ess)*(3-ess))))/((1+(45*visc_g/(6*vof_s*g0*d_s*rho_s*sqrt(temp_s/PI)*(1+ess)*(3*ess-1))))); collisonal_visc = 4/5*vof_s*rho_s*g0*(1+ess)*(kinetic_visc/rho_s+d_s*sqrt(temp_s/PI)); granular_visc = kinetic_visc+collisonal_visc; return granular_visc; } I compiled and loaded it with Fluent 15 but when I try to run a simulation I have an error: Node 0: Process 1856: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 1: Process 2552: Received signal SIGSEGV. ================================================== ============================ MPI Application rank 0 exited before MPI_Finalize() with status 2 The fl process could not be started. If I debug it, at the watch window appears the following error: CXX0017: Error: symbol "C_T" not found. I am a beginner in writting UDFs and I donīt know if this problem is because of the code or a problem with Fluent because it seems that it doesnīt recognize the Macros for Cell Flow Variables, like the one for temperature. If someone could give me any advice it would be very nice. Thanks in advance |
|
September 4, 2014, 10:45 |
|
#2 |
Senior Member
B_Kia
Join Date: May 2014
Location: Ir
Posts: 123
Rep Power: 11 |
Hi ,
Could u solve your problem ? i encounter it (( i installed MPI but didn't work in one forum i read this is beacuse of a bug in fluent 15.0 but i don't know how to solve , any idea will be appreciated , thanks this is what happens : ================================================== ============================ Node 0: Process 5080: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 1: Process 1908: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 2: Process 1372: Received signal SIGSEGV. ================================================== ============================ ================================================== ============================ Node 3: Process 3584: Received signal SIGSEGV. ================================================== ============================ MPI Application rank 0 exited before MPI_Finalize() with status 2 The fl process could not be started. |
|
January 16, 2015, 14:26 |
|
#3 |
Member
Join Date: Dec 2014
Posts: 38
Rep Power: 11 |
Try to run your calculation in serial mode, it is much easier to find where the problem is. If it runs, it means there is a problem with parallelization.
|
|
January 19, 2015, 10:35 |
|
#4 |
Senior Member
B_Kia
Join Date: May 2014
Location: Ir
Posts: 123
Rep Power: 11 |
||
January 20, 2015, 05:37 |
|
#5 |
New Member
John Yu
Join Date: Dec 2014
Posts: 26
Rep Power: 11 |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Source Term UDF VS Porous Media Model | pchoopanya | Fluent UDF and Scheme Programming | 1 | August 28, 2013 06:12 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |