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

Searching for Domain in Define VR

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2000, 22:30
Default Searching for Domain in Define VR
  #1
Arthur Valais
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) }

  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 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


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