-
-
October 18, 2018 at 7:48 pm
Weiqiang Liu
SubscriberHello, everyone,
I am trying to simulate surface reaction with a micro-combustor by importing chemkin mechanisms into fluent. however, I met two problems.
First, I need to know the species ID of some particular species. Since I have both gas phase species and surface site species. I wonder what is the sequence of species in the species mixture panel, gas phase species first or site species first?
Second, I want to use UDF to define the surface reaction rate of some surface reactions. Since I have 50 surface reactions to define, I want to use a 'for' structure to loop over all the reactions I want to define according to their ID. How can I do that in ANSYS fluent?
Thanks very much!
weiqiang
-
October 18, 2018 at 8:22 pm
DrAmine
Ansys EmployeeCan you check the customization manual after DEFINE_SR_RATE if it does answer your question? The gas species are always listed first the others later telling you the site density.
-
October 18, 2018 at 8:54 pm
Weiqiang Liu
Subscriberthanks very much.
So the gas phase species first and then site species. The customization manual after DEFINE_SR_RATE only tells me how to define surface reaction one by one. Like ‘if (STREQ(r->name,”reaction-1&rdquo
) *rr=100’
this tells me how to define reaction rate according to reaction name. But how can I define reaction rate by reaction ID. By doing so, I can just use a ‘for’ struction to loop over all reactions very easily. Otherwise, I have to define the reaction rate one by one.
best.
weiqiang
-
October 18, 2018 at 8:55 pm
Weiqiang Liu
Subscriber
Can you check the customization manual after DEFINE_SR_RATE if it does answer your question? The gas species are always listed first the others later telling you the site density.
thanks very much.
So the gas phase species first and then site species. The customization manual after DEFINE_SR_RATE only tells me how to define surface reaction one by one. Like ‘if (STREQ(r->name,”reaction-1&rdquo
) *rr=100’
this tells me how to define reaction rate according to reaction name. But how can I define reaction rate by reaction ID. By doing so, I can just use a ‘for’ struction to loop over all reactions very easily. Otherwise, I have to define the reaction rate one by one.
best.
weiqiang
-
October 19, 2018 at 5:31 am
DrAmine
Ansys EmployeeReactions can be identified by their name through the r->name statement and I think this might help here:
if (!strcmp(r->name, "reaction-1"))
{
.... /* r->name is identical to "reaction-1" ... */
}
I am not aware about accessing the reaction's ID's as it is not a part of the reaction structure.
-
October 19, 2018 at 12:56 pm
Weiqiang Liu
SubscriberThanks very much!
another question, I defined some surface reactions in material panel and I loaded my surface rate UDF normally. Then do I need to hook the UDF or something to make my UDF effective? or I just need to run the model directly.
Best.
Amine
-
October 19, 2018 at 2:49 pm
DrAmine
Ansys EmployeeYou need to hook the UDF as described under DEFINE_SR_RATE. If everything is complied and loaded properly then just run the case.
-
October 19, 2018 at 4:14 pm
Weiqiang Liu
SubscriberYes, everything is compiled and loaded properly. So I just need to run the case without any other manipulation?
I mean DEFINE_SR_RATE is no like DEFINE PROFILE ,by which I need to hook in inlet BC panel .
for DEFINE_SR_RATE, I just need to build and load?
thanks so much!
weiqiang
-
October 19, 2018 at 4:25 pm
DrAmine
Ansys EmployeeYou need to hook it under user defined function hooks.
-
October 19, 2018 at 4:44 pm
Weiqiang Liu
SubscriberThanks very much. I am totally a new user of ANSYS fluent. Thanks for your patience !!!!
-
October 19, 2018 at 4:59 pm
DrAmine
Ansys EmployeeYou are welcome. I recommend that you carry out some Tutorials to get familiar with a lot of Fluent panels. The tutorials are available within the online Help.
-
October 19, 2018 at 10:06 pm
Weiqiang Liu
SubscriberThat’s very nice of you!! I’ll go through the tutorials.
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2564
-
2078
-
1289
-
1106
-
459
© 2023 Copyright ANSYS, Inc. All rights reserved.