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

Multiple reaction probem

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 1, 2016, 04:02
Post Multiple reaction probem
  #1
New Member
 
luong hung truyen
Join Date: Sep 2016
Posts: 6
Rep Power: 3
luonghungtruyen is on a distinguished road
Hi everyone,

I followed the guide from fluent to write the udf for multiple reactions.
When I interpreted the udf, the error "command not implemented" at the line ( if (!strcmp(r->name, "reaction-1")). The udf guide is attached below.

Is there anyone have the same problem like this?
Would you recommand me the method to solve this problem?

Thank you so much!

[
/************************************************** *******************
Multiple reaction UDF that specifies different reaction rates
for different volumetric chemical reactions
************************************************** ********************/
#include "udf.h"

DEFINE_VR_RATE(myrate,c,t,r,mw,yi,rr,rr_t)
{
/*If more than one reaction is defined, it is necessary to distinguish
between these using the names of the reactions. */
if (!strcmp(r->name, "reaction-1"))
{
/* Reaction 1 */
}
else if (!strcmp(r->name, "reaction-2"))
{
/* Reaction 2 */
}
else
{
/* Message("Unknown Reaction\n"); */
}
/* Message("Actual Reaction: %s\n",r->name); */

}
][/CODE]
luonghungtruyen is offline   Reply With Quote

Reply

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
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
Defining reaction rate with multiple surface reaction Fred Marias FLUENT 1 September 12, 2013 04:56
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
Segmentation fault in running alternateSteadyReactingFoam,why? NewKid OpenFOAM 18 January 20, 2011 17:55
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 00:07


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