|
[Sponsors] |
January 13, 2012, 11:20 |
DEFINE_VR_RATE issue
|
#1 |
New Member
Roberto
Join Date: Oct 2011
Location: Italy
Posts: 17
Rep Power: 15 |
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? |
|
January 14, 2012, 20:42 |
|
#2 | |
Senior Member
Real Name :)
Join Date: Jan 2010
Location: United States
Posts: 192
Rep Power: 16 |
Please see my reply in this thread:http://www.cfd-online.com/Forums/flu...botulinum.html
Quote:
|
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issue installation OpenFOAM - libopen-rte.so.0 | Voyage_gui | OpenFOAM | 1 | August 12, 2011 04:46 |
Meshing related issue in Flow EFD | appu | FloEFD, FloWorks & FloTHERM | 1 | May 22, 2011 09:27 |
Subsurface Creation Issue | cfdengineer | STAR-CD | 1 | April 9, 2010 19:36 |
Issue 4 of adapco-online | Sreenadh Jonnavithula | Main CFD Forum | 8 | January 5, 2001 14:40 |
Issue 4 of adapco-online | Sreenadh Jonnavithula | Siemens | 0 | December 21, 2000 14:41 |