CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   Question about C_UDMI use (

NPat February 17, 2013 18:09

Question about C_UDMI use
Hi friends,

I've had some questions about the use of C_UDMI for UDF coding. I've tried to interpret the following codes in FLUENT (two separate files):

#include "udf.h"

DEFINE_ADJUST(teste, domain)
Thread *t;
cell_t c;

thread_loop_c(t, domain)
begin_c_loop_all(c, t)
C_UDMI(c,t,0) = 1.;
end_c_loop_all(c, t)

#include "udf.h"

DEFINE_MASS_TRANSFER(mass_exchange_3, cell, thread, from_index,from_species_index, to_index, to_species_index)
real m_lg;
m_lg = C_UDMI(cell, thread, 0);
return (m_lg);

I don't have any problem interpreting this functions, but when I ran it in FLUENT I checked the mass transfer rate and I got 0.0. Moreover, in post processing the value of C_UDMI is also 0.0. There is any problem whith these codes?

Please, help me with this issue...

NPat February 17, 2013 19:10


I already solved this problem. Thank you!


All times are GMT -4. The time now is 23:30.