|
[Sponsors] |
October 29, 2020, 06:39 |
UDF error in Fluent
|
#1 |
New Member
Vikash Vashisth
Join Date: Oct 2020
Posts: 2
Rep Power: 0 |
The following error has been pop-up while compiling the UDF for population balance modeling
# Generating udf_names.c because of makefile pdf.obj udf_names.c udf_names.c(8): error C2065: 'break_up_pdf_par': undeclared identifier udf_names.c(8): warning C4312: 'type cast': conversion from 'int' to 'void (*)(void)' of greater size udf_names.c(8): error C2065: 'UDF_TYPE_PB_BREAKUP_RATE_PDF': undeclared identifier udf_names.c(8): error C2099: initializer is not a constant The UDF code is /************************************************** ********************** UDF that computes the particle breakage frequency ************************************************** ***********************/ #include "udf.h" #include "sg_pb.h" #include "sg_mphase.h" DEFINE_PB_BREAKUP_RATE_FREQ(break_up_pdf_par, cell, thread, d_1) { real epsi, alpha, f1, f2, rho_d; real C1 = 0.00481, C2 = 0.08, sigma = 0.07; epsi = 0.5; alpha = 0.12; rho_d = 1000.; f1 = pow(epsi, 1./3.)/((1.+epsi)*pow(d_1, 2./3.)); f2 = -(C2*sigma*(1.+epsi)*(1.+epsi))/(rho_d*pow(epsi,2./3.)*pow(d_1, 5./3.)); return C1*f1*exp(f2); } Please help Last edited by vikasche.engg@gmail.com; October 29, 2020 at 08:36. |
|
October 29, 2020, 08:14 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
well, there is a list of problems... fix them
if you have no idea how, share your code, so people here will try to help you
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
pbm model udf, udf compilation |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem running fluent with udf on batch | tobi b. | Fluent UDF and Scheme Programming | 3 | April 14, 2016 14:54 |
implementing UDF for fluent in workbench for running multiple simulations | faizan_habib7 | Fluent UDF and Scheme Programming | 0 | March 18, 2016 23:29 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
fluent UDF external library lapack problem | Rick | FLUENT | 0 | May 7, 2008 11:16 |
UDF problem caused by various version of Fluent | Yurong | FLUENT | 3 | January 15, 2006 11:57 |