|
[Sponsors] |
September 13, 2011, 13:41 |
a problem with mw[][]
|
#1 |
New Member
Join Date: Nov 2010
Posts: 19
Rep Power: 16 |
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 |
|
September 13, 2011, 14:17 |
|
#2 |
New Member
Join Date: Nov 2010
Posts: 19
Rep Power: 16 |
OMG i found the stupid mistak that I have
I must write %f instead of %d |
|
|
|
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 |