CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Treact_ reactingFoam OpenFOAM 6

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2020, 08:13
Default Treact_ reactingFoam OpenFOAM 6
  #1
Member
 
ssa
Join Date: Sep 2018
Posts: 93
Rep Power: 7
ssa_cfd is on a distinguished road
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
        )
    )
This is not in the previous openfoam versions.

Thanks,
Senthil.
ssa_cfd is offline   Reply With Quote

Old   September 22, 2020, 15:55
Default
  #2
Member
 
alexander thierfelder
Join Date: Dec 2019
Posts: 71
Rep Power: 6
superkelle is on a distinguished road
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_;
But also online search gives the result very fast: "treact openfoam" was enough .


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;
superkelle is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 03:01.