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

DEFINE_VR_RATE issue

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 13, 2012, 10:20
Default DEFINE_VR_RATE issue
  #1
New Member
 
Roberto
Join Date: Oct 2011
Location: Italy
Posts: 17
Rep Power: 14
Robbb is on a distinguished road
Hello everyone!
I wrote this UDF to define a reaction rate:

#include "udf.h"
DEFINE_VR_RATE(user_rate, c, t, r, mole_weight, species_mf, rr)
{
real s1 = species_mf[0];
real mw1 = mole_weight[0];
*rr=(2.303/12.6)*s1*mw1;
}


which seems to work.
Now I need to insert a -temperature dependent- value of D (which is constant in this udf and is 12.6 ). The dependence is D=12.6/ 10^((T-121)/10)
How can I insert it?
Robbb is offline   Reply With Quote

Old   January 14, 2012, 19:42
Default
  #2
Senior Member
 
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16
ComputerGuy is on a distinguished road
Please see my reply in this thread:http://www.cfd-online.com/Forums/flu...botulinum.html


Quote:
Originally Posted by Robbb View Post
Hello everyone!
I wrote this UDF to define a reaction rate:

#include "udf.h"
DEFINE_VR_RATE(user_rate, c, t, r, mole_weight, species_mf, rr)
{
real s1 = species_mf[0];
real mw1 = mole_weight[0];
*rr=(2.303/12.6)*s1*mw1;
}


which seems to work.
Now I need to insert a -temperature dependent- value of D (which is constant in this udf and is 12.6 ). The dependence is D=12.6/ 10^((T-121)/10)
How can I insert it?
ComputerGuy 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
Issue installation OpenFOAM - libopen-rte.so.0 Voyage_gui OpenFOAM 1 August 12, 2011 03:46
Meshing related issue in Flow EFD appu FloEFD, FloWorks & FloTHERM 1 May 22, 2011 08:27
Subsurface Creation Issue cfdengineer STAR-CD 1 April 9, 2010 18:36
Issue 4 of adapco-online Sreenadh Jonnavithula Main CFD Forum 8 January 5, 2001 13:40
Issue 4 of adapco-online Sreenadh Jonnavithula Siemens 0 December 21, 2000 13:41


All times are GMT -4. The time now is 19:15.