|
[Sponsors] |
September 22, 2020, 08:13 |
Treact_ reactingFoam OpenFOAM 6
|
#1 |
Member
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7 |
Hi all,
In the chemistrymodel library, there is a value called Treact. How does openfoam calculate this value or does it read the value from somewhere.? In chemistryModel/chemistryModel/StandardChemistryModel/StandardChemistryModel.C Code:
Treact_ ( BasicChemistryModel<ReactionThermo>::template lookupOrDefault<scalar> ( "Treact", 0 ) ) Thanks, Senthil. |
|
September 22, 2020, 15:55 |
|
#2 |
Member
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 6 |
Often an explanation is given in the .H files. In this case:
StandardChemistryModel.H Code:
//- Temperature below which the reaction rates are assumed 0 scalar Treact_; So in your version 6 "Treact" is looked up somewhere or if it is not defined at the lookup destination it is set to zero. So no reaction for temps below "Treact" and if not defined, this value is set to zero. Edit: I did not find a tut with it but it should just be possible to put the value into 'chemistryProperties'-dict in constant. For example: Code:
Treact 273.15; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Map of the OpenFOAM Forum - Understanding where to post your questions! | wyldckat | OpenFOAM | 10 | September 2, 2021 05:29 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 15:54 |
OpenFOAM v3.0+ ?? | SBusch | OpenFOAM | 22 | December 26, 2016 14:24 |
OpenFOAM Training Jan-Apr 2017, Virtual, London, Houston, Berlin | cfd.direct | OpenFOAM Announcements from Other Sources | 0 | September 21, 2016 11:50 |
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 | wyldckat | OpenFOAM Announcements from Other Sources | 3 | September 8, 2010 06:25 |