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

DEFINE_SR_RATE: Override only specific reactions

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

Like Tree1Likes
  • 1 Post By CFDJonas

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 16, 2018, 12:20
Default DEFINE_SR_RATE: Override only specific reactions
  #1
New Member
 
Join Date: May 2018
Posts: 29
Rep Power: 7
CFDJonas is on a distinguished road
Hello again everybody!

I'm here with another problem. I have several surface reactions (finite-rates) defined in my mixture. Now I want to add 2 reactions to this "mechanism" but with a more complex kinetic rate equation. So I thought I could do this by adding both reactions to the finite_rates with dummy values and then override them by using the UDF Macro DEFINE_SR_RATE. But this seems to be a problem as this macro somehow overwrites every reaction a little bit. Even when I compile an empty UDF (see below) and hook it, there seems to be a change in the reactions and my simulation does not deliver the same results with the UDF unhooked. My thought would've been that, only the *rr I override in the UDF are actually overwritten, so an empty UDF would just use the default values used in finite-rates.

Code:
DEFINE_SR_RATE(test_srrate, f, fthread, r, mw, yi, rr)
{

}
Can somebody explain me this behaviour? And if there is any possbility tell me how I can overwrite the rate of one specific reaction in finite-rates.

Thank you!
Silence017 likes this.
CFDJonas is offline   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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 21:43
mass flow in is not equal to mass flow out saii CFX 12 March 19, 2018 05:21
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 13:32
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
Two-Phase Buoyant Flow Issue Miguel Baritto CFX 4 August 31, 2006 12:02


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