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

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

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 27, 2013, 06:16
Default having problem in writing a UDF for specific heat in fluent 14.0
  #1
New Member
 
vivekanand
Join Date: Jun 2013
Posts: 6
Rep Power: 13
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, 11:32
Default
  #2
Member
 
Christopher Hershey
Join Date: Feb 2012
Location: East Lansing, Michigan
Posts: 41
Rep Power: 14
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


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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 40 March 18, 2018 07: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 07:28
Ansys Fluent 13.0 UDF compilation problem in Window XP (32 bit) Yogini Fluent UDF and Scheme Programming 7 October 3, 2012 08:24
PROBLEM in UDF on parallel fluent mode rakadit Fluent UDF and Scheme Programming 0 July 13, 2012 07:51


All times are GMT -4. The time now is 16:22.