|
[Sponsors] |
January 29, 2008, 04:15 |
Programing a UDF
|
#1 |
Guest
Posts: n/a
|
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 |
|
January 29, 2008, 12:34 |
Re: Programing a UDF
|
#2 |
Guest
Posts: n/a
|
Have you looked at the example in the UDF manual?
|
|
January 30, 2008, 18:31 |
Re: Programing a UDF
|
#3 |
Guest
Posts: n/a
|
try DEFINE_VR_RATE
|
|
January 31, 2008, 03:27 |
Re: Programing a UDF
|
#4 |
Guest
Posts: n/a
|
Thanks for the replies.
I´ll try DEFINE_VR_RATE because it seems easier to work with Best regards |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 07:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 22:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 21:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 04:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 04:01 |