Programing a UDF
Hi everyone!
I´m a begineer using UDF´s. I´d like to create one UDF related with methane combustion (CH4 + 2O2-->CO2 + 2H2O). The reaction mechanism is (-R_CH4)=k1*YCH4^0.72*e(k2/T) [mol/s·m3], where K1 and K2 are constants, T is temperature and YCH4 is the molar fraction of methane. I´d like to use the DEFINE_SOURCE macro because is the one I´ve used before but I don´t know how to translate the reaction to a programing language!! Thank you in advance Best regards |
Re: Programing a UDF
Have you looked at the example in the UDF manual?
|
Re: Programing a UDF
try DEFINE_VR_RATE
|
Re: Programing a UDF
Thanks for the replies.
I´ll try DEFINE_VR_RATE because it seems easier to work with Best regards |
All times are GMT -4. The time now is 06:16. |