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

UDF error in Fluent

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2020, 06:39
Default UDF error in Fluent
  #1
New Member
 
Vikash Vashisth
Join Date: Oct 2020
Posts: 2
Rep Power: 0
vikasche.engg@gmail.com is on a distinguished road
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.
vikasche.engg@gmail.com is offline   Reply With Quote

Old   October 29, 2020, 08:14
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 1,848
Rep Power: 29
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
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
AlexanderZ is offline   Reply With Quote

Reply

Tags
pbm model udf, udf compilation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 15:05.