|
[Sponsors] |
DEFINE_SR_RATE: Override only specific reactions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 16, 2018, 13:20 |
DEFINE_SR_RATE: Override only specific reactions
|
#1 |
New Member
Join Date: May 2018
Posts: 29
Rep Power: 8 |
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) { } Thank you! |
|
|
|
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 22:43 |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Compression stoke is giving higher pressure than calculated | nickjuana | CFX | 62 | May 19, 2015 14:32 |
Constant velocity of the material | Sas | CFX | 15 | July 13, 2010 09:56 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |