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

having problem in writing a UDF for specific heat in fluent 14.0

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 27, 2013, 05:16
Default having problem in writing a UDF for specific heat in fluent 14.0
  #1
New Member
 
vivekanand
Join Date: Jun 2013
Posts: 1
Rep Power: 0
nands_bullwalker is on a distinguished road
dear sir
m having difficulty in writing code for specific heat as a udf for fluent the code i wrote is shown below
DEFINE_SPECIFIC_HEAT(my_user_cp, c,t)
{
real cp;
real temp = C_T(c,t);
cp = 1.1105*pow(10,-5)*pow(temp,3) - 0.0031078*pow(temp,2) - 1.478*temp + 4631.9;
return cp;
}

the problem is, when m hooking into fluent ....an error is coming "invalid type conversion: float -> pointer to char."
so m unable to solve my problem

so please suggest me the way to get through this hurdle n also if its not the write way of hooking the udf or the code is wrong then please tell me the exact way of coding .... note that m using ANSYS 14.0

i will b thankful to u
nands_bullwalker is offline   Reply With Quote

Old   June 29, 2013, 10:32
Default
  #2
Member
 
Christopher Hershey
Join Date: Feb 2012
Location: East Lansing, Michigan
Posts: 41
Rep Power: 6
Hershey is on a distinguished road
Do you have the directive:

#include "udf.h"

at the top of your UDF above the DEFINE_SPECIFIC_HEAT Macro?
Hershey is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 32 May 8, 2015 06:05
problem with loading udf in fluent 6.3 James Fluent UDF and Scheme Programming 6 January 22, 2015 06:51
Question about heat transfer coefficient setting for CFX Anna Tian CFX 1 June 16, 2013 06:28
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 07:24
PROBLEM in UDF on parallel fluent mode rakadit Fluent UDF and Scheme Programming 0 July 13, 2012 06:51


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