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

Determining the mass transfer reaction?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2009, 09:36
Default Determining the mass transfer reaction?
  #1
New Member
 
Lindsay
Join Date: Aug 2009
Posts: 1
Rep Power: 0
Lindz is on a distinguished road
Hi,

Im writing a UDF for the mass transfer of four different species which are set in the mass transfer panel. However, they are very similar except for one value which varies for each reaction. Is there a way I can have one DEFINE_MASS_TRANSFER code which determines which mass transfer reaction it is being applied to or would I have to copy the code 4 times with different names and changed single values.

For example, in DEFINE_VR_RATE you could use the following:

if (!strcmp(r->name, "reaction-1"))
{
/* Reaction 1 */
}
else if (!strcmp(r->name, "reaction-2"))
{
/* Reaction 2 */
}
else
{
/* Message("Unknown Reaction\n"); */
}
There isnt a 'r' destination for the DEFINE_MASS_TRANSFER which represents current reaction.

Much thanks in advance,

Lindz
Lindz 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
Error message: Insufficient Catalogue Size Paresh Jain CFX 33 August 16, 2024 06:09
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 06:21
additional variable mass transfer in CFX5.6 john CFX 1 February 14, 2004 01:30
Sequential calculation of Temperature and mass tra J.W.Ryu FLUENT 7 June 18, 2002 08:12
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 01:07


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