CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Special Topics > Mesh Generation & Pre-Processing

problem with UDF compile

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 24, 2016, 04:04
Default problem with UDF compile
  #1
New Member
 
Tamilnadu
Join Date: Oct 2016
Posts: 7
Rep Power: 10
sridhar palla is on a distinguished road
Hello everyone,

I'm trying to compile UDF in the fluent but at the time of compiling it is showing the following error to each UDF at assigning the function everytime.

UDF 1 for n = no * exp(-(R*T/(Alpha+(beta*T))^2)*ln(p_o/p)^2)

#include "udf.h"

DEFINE_ADJUST(ads,domain)
{
Thread *t;
real E,A,P;
cell_t c;

thread_loop_c (t,domain)
{
begin_c_loop (c,t)
{
real tem = C_T(c,t);

P=C_P(c,t)+RP_Get_Real("operating-pressure");
E=3080+18.9*tem;
A=8.314*tem*log(1.47E9/P);

C_UDSI(c, t, ads) = 71.6*(exp(-((A*A) / (E*E)))); error is in this line

}
end_c_loop (c,t)
}
}

error in compiling this file is
error C2296: '*' : illegal, left operand has type 'void (*)(Domain *)'

Can anyone please help me with this?
sridhar palla 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
Fluent 6.3.26 on Linux does not compile an UDF Entwistle Fluent UDF and Scheme Programming 1 March 4, 2014 15:49
Mesh UDF problem kornetka Fluent UDF and Scheme Programming 4 July 25, 2013 07:54
compile a udf or interpret it? ndabir Fluent UDF and Scheme Programming 1 July 14, 2012 03:49
Help! Compiled UDF problem 4 Wave tank tutorial Shane FLUENT 1 September 3, 2010 03:32
udf compile in parallel system tahereh FLUENT 1 December 9, 2008 10:48


All times are GMT -4. The time now is 02:32.