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

Yi problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 11, 2012, 04:08
Default Yi problem
  #1
Member
 
rose
Join Date: Dec 2010
Posts: 30
Rep Power: 15
rubis is on a distinguished road
hi all,
please i have a problem in my udf ;
#include "udf.h"
DEFINE_PROPERTY(conc,c,t)
{
real R = C_R(c,t);
real YI = C_YI(c,t,1)
C_UDMI(c,t,0) = YI*(R*1000);
return
}

is interpreted sucessfully, but after running for1 one iteration it is giving Access_violation error. but juste when i add the YI without YI the udf runing normaly.

thank
best regards
rubis is offline   Reply With Quote

Old   January 14, 2012, 20:50
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
Rubis,

You're not returning any values from the function. The define property macro specifies a material/fluid property, and expects a return value.

ComputerGuy

Quote:
Originally Posted by rubis View Post
hi all,
please i have a problem in my udf ;
#include "udf.h"
DEFINE_PROPERTY(conc,c,t)
{
real R = C_R(c,t);
real YI = C_YI(c,t,1)
C_UDMI(c,t,0) = YI*(R*1000);
return
}

is interpreted sucessfully, but after running for1 one iteration it is giving Access_violation error. but juste when i add the YI without YI the udf runing normaly.

thank
best regards
ComputerGuy 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
UDF compiling problem Wouter Fluent UDF and Scheme Programming 6 June 6, 2012 04:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 05:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 06:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 19:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 14:52


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