|
[Sponsors] |
How can I write Eddy-dissipation model in DEFINE_VR_RATE udf? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 20, 2017, 06:55 |
How can I write Eddy-dissipation model in DEFINE_VR_RATE udf?
|
#1 |
Senior Member
Sangwoo Kim
Join Date: Jul 2014
Location: Seoul, South Korea
Posts: 115
Rep Power: 12 |
Hi.
I have three reactions and want to use finite-rate model to two reactions and eddy-dissipation model to one reaction So I should use UDF, DEFINE_VR_RATE. In UDF manual, it gives an example about finite-rate model. But, there is no example about eddy-dissipation model. and I have no idea that how I implement the eddy-dissipation model. As you may know, DEFINE_VR_RATE macro returns only two values: rr for laminar and rr_t for turbulent. They may be used to calculate source and sink term of each species due to the reaction. But, the reaction rate of eddy-dissipation model is defined for "each species" in Theory Guide manual. What values should I return as a result of UDF in this case? Briefly, can anyone let me know how I write DEFINE_VR_RATE udf for implementing eddy-dissipation model? Thank you.
__________________
Best regards |
|
September 20, 2017, 09:39 |
|
#2 |
Senior Member
Sangwoo Kim
Join Date: Jul 2014
Location: Seoul, South Korea
Posts: 115
Rep Power: 12 |
The UDF manual says "Note that rr and rr_t are conversion rates in kmol/m3-s. These rates (rr and rr_t), when multiplied by the respective stoichiometric coefficients, yield the production/consumption rates of the individual chemical components"
First image that I attached is the definition of the reaction rate (in kg/m3-s) of Eddy-dissipation model. I guess rr_t is kind of 'universal' conversion rate that is applied to all species. According to the UDF manual, rr_t will be multiplied by the stoichiometric coefficients. So, the stoichiometric coefficients should not exist in the formula of rr_t And the conversion rate that is returned is in kmol/m3-s. So, molecular weight should not exist in the formula of rr_t Then, maybe I have to return the second image (minimum value, of course) as rr_t Am I understanding correctly?? I have only a few of experience of using UDF so any comments will be really helpful. Thank you
__________________
Best regards |
|
September 25, 2017, 23:49 |
|
#3 |
Senior Member
Sangwoo Kim
Join Date: Jul 2014
Location: Seoul, South Korea
Posts: 115
Rep Power: 12 |
leave this thread just for someone's information.
I checked several cases with my udf and concluded that my guess was correct. you can use the formula shown in the second image in order to model some chemical reaction with eddy dissipation model if you let the value from eddy dissipation to 'rr_t' in DEFINE_VR_RATE, and the value from finite rate to 'rr', then you can use finite-rate/eddy-dissipation model, using udf But my calculation and result were not checked by other people. So if my conclusion is actually wrong, please leave a comment.
__________________
Best regards |
|
February 25, 2020, 18:31 |
|
#4 |
New Member
Samot Cevardaz
Join Date: Jun 2017
Posts: 3
Rep Power: 9 |
Dear swtbkim,
could you kindly help me with the implementation of rr_t equations in a udf? Kind regards, Thank you |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
eddy dissipation model: combustion doesn't occur | roukaia | FLUENT | 2 | November 18, 2020 11:23 |
Implementation of Eddy Dissipation Combustion (EDC) Model in fireFoam | chenhu | OpenFOAM | 0 | July 4, 2017 06:04 |
Viscous dissipation UDF for multiphase DDPM (Divergence problem) | bhargavbharathan | FLUENT | 0 | November 30, 2016 13:23 |
writing and udf for eddy dissipation model | Srinivasa Rao | FLUENT | 0 | October 29, 2014 10:37 |
Eddy dissipation model | ioana | CFX | 1 | June 10, 2004 15:15 |