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

a problem with mw[][]

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 13, 2011, 13:41
Default a problem with mw[][]
  #1
New Member
 
Join Date: Nov 2010
Posts: 19
Rep Power: 16
m.beh is on a distinguished road
Hi everybody
I am trying to write a reaction udf.
I got some error so I try to solve them meanwhile I try ti know what mw[][] give me. in help of fluent says that mw[][] is a matrix that give the molecular weights so I wrote this udf:
DEFINE_HET_RXN_RATE(user_Co, c, t, hr, mw, yi, rr, rr_t)
{
Message0(" %d %d %d ",mw[1][0],mw[0][0],mw[2][0]);
*rr = 1 ;
}
and run it for 1 itrate for a very simple problem of air and water and I did not change any fluent data base so I get this results:
-1073741824 1077737291 536870912
and this numbers are not water or air monocular weight do you have any idea about my work and can you tell me what is mw[][] give me?
thank you
m.beh is offline   Reply With Quote

Old   September 13, 2011, 14:17
Default
  #2
New Member
 
Join Date: Nov 2010
Posts: 19
Rep Power: 16
m.beh is on a distinguished road
OMG i found the stupid mistak that I have
I must write %f instead of %d
m.beh 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 05:43
Gambit - meshing over airfoil wrapping (?) problem JFDC FLUENT 1 July 11, 2011 06:59
natural convection problem for a CHT problem Se-Hee CFX 2 June 10, 2007 07:29
Adiabatic and Rotating wall (Convection problem) ParodDav CFX 5 April 29, 2007 20:13
Is this problem well posed? Thomas P. Abraham Main CFD Forum 5 September 8, 1999 15:52


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