|
[Sponsors] |
write forward, reverse reaction coefficient, reaction rate in ChemFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 15, 2012, 10:07 |
write forward, reverse reaction coefficient, reaction rate in ChemFoam
|
#1 |
New Member
Terrence Nguyen
Join Date: Jan 2012
Posts: 13
Rep Power: 14 |
Hi Foamers,
I am using ChemFoam to check whether my chemical mechanism is good. Now I want to print out the forward, reverse reaction coefficient (kf, kr) as well as forward, reverse reaction rate for each reaction from my reaction mechanism for every chemical timestep. After that I can plot the kf, kr over the time. From the code I know it kf, kr are calculated in ODEChemistryModel.C in each iteration during calculating omega but I can't manage to print them out and save in a output file. If anyone has any idea about it, would be great to enlight me. Terrence. |
|
November 6, 2012, 02:48 |
|
#2 |
Member
Join Date: Nov 2010
Location: Tokyo / Japan
Posts: 40
Rep Power: 16 |
Hi Terrence,
I'm also digging in the source code of chemFoam & friends to solve my problem (http://www.cfd-online.com/Forums/ope...-solution.html) and I wonder if you have managed to print out the reaction coefficients and rates. |
|
November 6, 2012, 04:53 |
|
#3 |
New Member
Terrence Nguyen
Join Date: Jan 2012
Posts: 13
Rep Power: 14 |
just go to ODEchemistrysolver.C. There you can find the place where kf, kr as well as reaction rates are computed. Just use Info command to print them out and they will be printed out in your log file.
|
|
November 7, 2012, 04:33 |
|
#4 | |
Member
Join Date: Nov 2010
Location: Tokyo / Japan
Posts: 40
Rep Power: 16 |
Quote:
Actually, I tried to avoid editing ODEchemistryModel.C (I guess you were reffering to this file, right?) because I wanted to avoid defining my own lib and include this in chemFoam. Since there is no other option to get these values, I gave up and recompiled it into a mychemistryModel library. Took some time but now it's fine. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mesh file for flow over a circular cylinder | Ardalan | Main CFD Forum | 7 | December 15, 2020 14:06 |
[Helyx OS] Helyx-OS (GUI for SnappyHexMesh | elvis | OpenFOAM Community Contributions | 210 | January 30, 2017 19:57 |
Reaction rate under multi phases | kongl1986 | Fluent UDF and Scheme Programming | 3 | September 7, 2012 09:43 |
Who can write the binary diffusion coefficient ?? | Hsin-Ping | FLUENT | 1 | April 15, 2002 03:22 |
reaction rate as UDF variable | sivakumar | FLUENT | 4 | February 12, 2002 01:31 |