|February 13, 2017, 11:34||
UDF code help solve reaction rate equation palm oil
Join Date: Feb 2017
Posts: 2Rep Power: 0
I am trying to write a UDF code to import it into Ansys Fluent.
Actually, the reason of writing a UDF code is that there is not in fluent data base palm oil namely Triglycerides for reactants and Alkanes for products.
So I have to write a UDF code.
Firstly, I have already a udf code (DEFINE_PROPERTY) for chemical properties for each triglycerides, each alkanes and some fatty acids like density, conductivity, specific heat capacity, viscosity ect..
I am here to help me how to write the reaction kinetic rate for each equation. I need to find the rate k1 to k8 reactions. For each reactant and each product, I don't have the concentration.
I have found a UDF example but I'd like to know if it's a good example to take for writing a UDF code with my case (palm oil)
#define K1 2.0e-2
#define K2 5.
DEFINE_VR_RATE(vol_reac_rate, c, t, r, mole_weight, species_mf, rate, rr_t)
real s1 = species_mf;
real mw1 = mole_weight;
if (FLUID_THREAD_P(t) && THREAD_VAR(t).fluid.porous)
*rate = K1*s1/pow((1.+K2*s1),2.0)/mw1;
*rate = 0.;
*rr_t = *rate;
I have sent in attachment a file with my kinetic equation reaction.
Is it possible to use the previous code UDF for my case, otherwise do you have any idea ?
Thank you for your help.
|Thread||Thread Starter||Forum||Replies||Last Post|
|How to add Arrhenius Reaction Rate to energy equation?||Zack||OpenFOAM Programming & Development||1||January 3, 2017 15:14|
|udf for multiple reaction rate||monababaei||Fluent UDF and Scheme Programming||2||December 1, 2016 04:19|
|Langmiur equation as a reaction rate in email@example.com||FLUENT||0||June 1, 2013 04:17|
|using rate equation for volumetric reaction||byronsmith||FLUENT||3||April 8, 2009 11:58|
|UDF rate equation||alp||FLUENT||3||November 8, 2007 13:39|