|
[Sponsors] |
December 1, 2016, 04:02 |
Multiple reaction probem
|
#1 |
New Member
luong hung truyen
Join Date: Sep 2016
Posts: 10
Rep Power: 10 |
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] |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to set periodic boundary conditions | Ganesh | FLUENT | 15 | November 18, 2020 07:09 |
Defining reaction rate with multiple surface reaction | Fred Marias | FLUENT | 1 | September 12, 2013 05:56 |
OpenFOAM static build on Cray XT5 | asaijo | OpenFOAM Installation | 9 | April 6, 2011 13: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 01:07 |