CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   Question about C_UDMI use (http://www.cfd-online.com/Forums/fluent-udf/113314-question-about-c_udmi-use.html)

NPat February 17, 2013 17: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 18:10

Friends,

I already solved this problem. Thank you!

Regards,
Natan


All times are GMT -4. The time now is 05:12.