CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   Adjust reaction rates (https://www.cfd-online.com/Forums/fluent/39796-adjust-reaction-rates.html)

Martin Skov Rasmussen February 23, 2006 10:37

Adjust reaction rates
 
I want to model a chemically reacting flow. The flow is laminar and involves 6 species in 4 reactions. The rate expressions I have at hand do, however, not comply with the modified Arrhenius expression applied in Fluent although "my" rate expressions only differ by a multiplication of an additional term (1-B).

r = k*T^n*exp(-Ea/RT)*(1-B)

Does anyonw know if it is possible to simply make an adjustment in UDF of the rate calculated by Fluent?

I have considdered to make the adjustment via the macro DEFINE_VR_RATE...

Any help?

RoM February 27, 2006 02:42

Re: Adjust reaction rates
 
Is (1-B)=const ? In this case you could include it in k.

RoM

Martin Skov Rasmussen February 27, 2006 06:07

Re: Adjust reaction rates
 
No, B is a function of species concentrations and thermodynamic properties, but I have all these data and properties at hand and can easily write this into a UDF...

RoM February 27, 2006 06:58

Re: Adjust reaction rates
 
In this case a DEFINE_VR_RATE udf would be the best option.

RoM

Martin Skov Rasmussen February 27, 2006 07:49

Re: Adjust reaction rates
 
I have tried this using an interpreted as well as compiled version and both fails to run. I recieve an error during the first iteration. Do you know if a turbulence model must be invoked in order for the UDF to work. Even the example IU have found in the UDF manual seems to fail when the flow is laminar...

HS February 27, 2006 10:11

Re: Adjust reaction rates
 
If not already doing so, try assigning values to both *rate and *rr_t (FLUENT will pick the limiting one as in the Eddy Viscosity model), i.e.

*rate = (whatever your formula is);

*rr_t = *rate;

Maybe this helps!

/Henrik


rom February 28, 2006 05:27

Re: Adjust reaction rates
 
Have you tried the soultion procedure outlined in the fluent manual? Try to start with a cold flow solution with no reactions and then gradually add the reactions one by one. If the system is numerical stiff it will then start to diverge and you need to use the stiff chemistry solver.

RoM


All times are GMT -4. The time now is 00:42.