|
[Sponsors] |
January 12, 2000, 22:30 |
Searching for Domain in Define VR
|
#1 |
Guest
Posts: n/a
|
Has anyone used DEFINE_VR_RATE?
1. The following trivial example results in a non-zero reaction rate. What am I missing here? 2. Actually my problem is more complex. I want to set the reaction rate to be zero in all zones except ignitionZone (id: 9) If I try... Thread *ignitionThread = Lookup_Thread(domain,ignitionZone); it should work, however I have no way of finding the value *domain since it didn't come along with the function call. Any work-arounds? Cheers, Arthur Valais Trivial function attached... DEFINE_VR_RATE(zero_rate,cell,thread,r,mole_weight ,species_mf,rate,rr_t) { cell_t c; begin_c_loop_all (c,thread) { *rate = 0.; *rr_t = 0.; } end_c_loop_all (c,thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Installing OF 1.6 on Mac OS X | gschaider | OpenFOAM Installation | 129 | June 19, 2010 10:23 |
Missing math.h header | Travis | FLUENT | 4 | January 15, 2009 12:48 |
REAL GAS UDF | brian | FLUENT | 6 | September 11, 2006 09:23 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |
UDF FOR UNSTEADY TIME STEP | mayur | FLUENT | 3 | August 9, 2006 11:19 |