CFD Online Logo CFD Online URL
Home > Forums > FLUENT

Searching for Domain in Define VR

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

LinkBack Thread Tools Display Modes
Old   January 12, 2000, 22:30
Default Searching for Domain in Define VR
Arthur Valais
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?


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) }

  Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing OF 1.6 on Mac OS X gschaider OpenFOAM Installation on Windows, Mac and other Unsupported Platforms 129 June 19, 2010 09:23
Missing math.h header Travis FLUENT 4 January 15, 2009 12:48
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 12:24
UDF FOR UNSTEADY TIME STEP mayur FLUENT 3 August 9, 2006 10:19

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