CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

write code UDF Fluent solve kinetic reaction rate equation palm oil

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 13, 2017, 10:16
Default write code UDF Fluent solve kinetic reaction rate equation palm oil
  #1
New Member
 
cyril
Join Date: Feb 2017
Posts: 3
Rep Power: 9
zirkov is on a distinguished road
Hello everyone,

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)

#include "udf.h"

#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[0];
real mw1 = mole_weight[0];

if (FLUID_THREAD_P(t) && THREAD_VAR(t).fluid.porous)
*rate = K1*s1/pow((1.+K2*s1),2.0)/mw1;
else
*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.
Attached Files
File Type: pdf Kinetic equation reaction.pdf (95.4 KB, 66 views)
zirkov is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
using rate equation for volumetric reaction byronsmith FLUENT 4 April 14, 2019 12:28
Volumatric reaction rate UDF elmcmaster FLUENT 8 October 6, 2010 05:22
surface reaction rate with udf yellow-stuff FLUENT 4 January 29, 2010 12:53
Reaction Rate in UDF mahdi FLUENT 2 August 7, 2007 08:31
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 00:07


All times are GMT -4. The time now is 02:44.