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

UDF unit and FLUENT output

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By byronsmith

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 14, 2010, 22:52
Default UDF unit and FLUENT output
  #1
New Member
 
ALAM
Join Date: Sep 2010
Posts: 7
Rep Power: 15
saifulraju is on a distinguished road
Hello,
I am using UDF for particle reaction rate. But the difficulty is the consistence of unit. In my UDF(given below) equation the unit is per second. But the FLUENT gives the unit kgmol/m2-s after convergence. Could you please tell how can I get the same unit in FLUENT solution. Is it possile to plot rate of reaction versus time?

/* UDF of specifying the surface reaction rate of a particle */
#include "udf.h"
#define A3 1.36e6
#define E3 1.38e8
#define n3 0.68
#define shi 2.0

DEFINE_PR_RATE(user_pr_rate,c,t,r,mw,pp,p,sf,dif_i ,cat_i,rr)
{
real ash_mass = P_INIT_MASS(p)*(1.-DPM_CHAR_FRACTION(p)-DPM_VOLATILE_FRACTION(p));
real one_minus_conv = MAX(0.,(P_MASS(p) -ash_mass) / P_INIT_MASS(p)/ DPM_CHAR_FRACTION(p));
if (!strcmp(r->name, "reaction-3"))
{
real kp3 = A3*exp(-E3/UNIVERSAL_GAS_CONSTANT/P_T(p));
real kd3 = 2.303*log(one_minus_conv);
real ke3 = sqrt(1-shi*kd3);
*rr=-kp3*one_minus_conv*ke3;
}
}


With thanks,
Alam

Last edited by saifulraju; September 22, 2010 at 06:58.
saifulraju is offline   Reply With Quote

Old   September 15, 2010, 02:31
Default
  #2
Member
 
Byron Smith R J
Join Date: Mar 2009
Location: India
Posts: 46
Rep Power: 17
byronsmith is on a distinguished road
hai
The rate of surface reaction should be fed in kmol/m2 s only. whatever you give through ur udf will be computed and expressed by fluent in its unit only. so convert the unit kg/s into kmol/m2 s in hte udf and try the solution
byronsmith is offline   Reply With Quote

Old   September 15, 2010, 11:52
Default
  #3
New Member
 
ALAM
Join Date: Sep 2010
Posts: 7
Rep Power: 15
saifulraju is on a distinguished road
Hi,
Thank you. But if the rate of reaction has the unit (per second), it is not possible to convert in kgmol/m2-s.
So what will I do in this case?
saifulraju is offline   Reply With Quote

Old   September 16, 2010, 00:35
Default
  #4
Member
 
Byron Smith R J
Join Date: Mar 2009
Location: India
Posts: 46
Rep Power: 17
byronsmith is on a distinguished road
hai
you can manupulate the unit 1/s by multiplying the rate obtained by density, divide by surface area per unit volume and molecular weight (1/s x kg/m3 xm3/m2 x kmol/kg = kmol/m2 s. hope this helps
Jianqi Shen likes this.
byronsmith is offline   Reply With Quote

Old   September 21, 2010, 22:22
Default time vs rate of reaction
  #5
New Member
 
ALAM
Join Date: Sep 2010
Posts: 7
Rep Power: 15
saifulraju is on a distinguished road
Dear Byron Smith R J,
Thanks. I got the point.
Could you please tell me how can I get the numerical data for plotting time versus rate of reaction.
saifulraju is offline   Reply With Quote

Reply


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
UDF about reaction in fluent5.4 Mark FLUENT 5 May 1, 2014 17:39
unit conversion of pre-exponential factor A of chemkin mechanism in Fluent newbie FLUENT 5 November 14, 2010 05:44
absolute pressure unit in Fluent? shuqin FLUENT 0 May 23, 2006 08:44
unit of fluent yinyue FLUENT 0 November 3, 2004 08:57
Some problems about UDF in fluent5.4 Mark FLUENT 2 August 14, 2001 08:03


All times are GMT -4. The time now is 08:53.