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

Urgent UDF Problem ....

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   May 28, 2013, 18:40
Exclamation Urgent UDF Problem ....
  #1
New Member
 
angelicapeygo
Join Date: May 2013
Posts: 7
Rep Power: 12
angelicapeygo is on a distinguished road
Friends,
I have a proble with my UDF. There is no problem about compilation and interpreting but I can not apply my udf to the boundaries. I get error message:

Error: cx-set-real-entry: wta[2] (float)
Error Object : ((constant .1) (profile """""")

Could you please help me about the case?
my UDF is like that:




#include "udf.h"
#define Tm 938
Domain *d;
DEFINE_PROFILE(wall_temp, thread, nv)
{
real T2solid=0.;
real T2liquid=0.;
real temp=0.;
real tmax=0.;
real tmin=0.;
real y=0.;
Thread *t;
cell_t c;
/* Loop over all cell threads in the domain */
thread_loop_c(t,d)
{

/* Compute max, min, volume-averaged temperature */

/* Loop over all cells */
begin_c_loop(c,t)
{
temp = C_T(c,t); /* get cell temperature */

if (temp < tmin || tmin == 0.) tmin = temp;
if (temp > tmax || tmax == 0.) tmax = temp;


}
end_c_loop(c,t)
printf("\n Tmin = %g Tmax = %g",tmin,tmax);
T2solid=Tm+100.0*y ;
T2liquid=Tm+40.0*y ;
begin_c_loop(c,t)
{
temp = C_T(c,t);
}
end_c_loop(c,t)
}
}

thanks alot....
angelicapeygo is offline   Reply With Quote

 


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 Problem ozgur Fluent UDF and Scheme Programming 18 January 17, 2016 14:40
Pressure profile UDF for unsteady-state problem? Mohsen Keshavarzian FLUENT 2 August 20, 2008 04:22
parallel UDF problem kerem FLUENT 2 June 20, 2006 06:56
Switch problem! using 2 custom udf laws at the same time HP FLUENT 0 September 15, 2004 09:48
UDF variables F1, y / problem with UDF Fabian FLUENT 6 June 2, 2003 10:22


All times are GMT -4. The time now is 09:34.