CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Error in compliling UDF

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

LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2019, 21:58
Default Error in compliling UDF
New Member
Join Date: Jun 2019
Location: Mumbai
Posts: 19
Rep Power: 3 is on a distinguished road
I am trying to compile the UDF code as given below...I want to interpolate the property of argon at desired temperature. But after interpreting it shows error at last line of table definition.
*=>Error: Invalid Type Conversion float-> array 2 of double*
Please help me out...

DEFINE_PROPERTY(Argon_density, c,t)


double T;

double table[24][2]={ //table of computed density data for Argon at 1bar {5500,8.86E-02},










int n;

double x[2],y[2],rho;


for(n = 0; n < TABLESIZE-1; n++){

if((T > table[n][0]) && (T <= table[n+1][0])){






return rho is offline   Reply With Quote

Old   August 21, 2019, 00:18
Senior Member
Join Date: Apr 2013
Posts: 1,239
Rep Power: 20
AlexanderZ will become famous soon enough
as far as I know standard libraries which are available in Fluent, are not suitable for 2D arrays
make 2 separated arrays
or make an object (which is tricky)

best regards
AlexanderZ is offline   Reply With Quote


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
udf for one dimensional linear motion based on force maccheese Fluent UDF and Scheme Programming 2 September 1, 2019 02:18
Save output of udf in another udf! JuanJoMex FLUENT 0 February 8, 2018 12:43
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01

All times are GMT -4. The time now is 11:17.