|
[Sponsors] |
having problem in writing a UDF for specific heat in fluent 14.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 27, 2013, 06:16 |
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 |
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 |
|
June 29, 2013, 11:32 |
|
#2 |
Member
Christopher Hershey
Join Date: Feb 2012
Location: East Lansing, Michigan
Posts: 41
Rep Power: 14 |
Do you have the directive:
#include "udf.h" at the top of your UDF above the DEFINE_SPECIFIC_HEAT Macro? |
|
|
|
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 |