|
[Sponsors] |
Access the composition of species in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 9, 2022, 21:39 |
Access the composition of species in OpenFOAM
|
#1 |
New Member
Join Date: Jan 2015
Posts: 22
Rep Power: 11 |
I need to determine the number of carbon and hydrogen atoms of certain species in reactingFoam. I am using hePsiThermo as thermoType.
I looked at the documentation, and I noticed that it can be accessed through chemistry.specieComp() used in DAC.C here. However, when I use it in my code as Code:
const List<List<specieElement>>& specieComposition = chemistry.specieComp(); Code:
./sootTest.H:44:20: error: ‘class Foam::BasicChemistryModel<Foam::psiReactionThermo>’ has no member named ‘specieComp’ 44 | chemistry.specieComp(); Code:
autoPtr<psiReactionThermo> pThermo(psiReactionThermo::New(mesh)); psiReactionThermo& thermo = pThermo(); thermo.validate(args.executable(), "h", "e"); autoPtr<BasicChemistryModel<psiReactionThermo>> pChemistry ( BasicChemistryModel<psiReactionThermo>::New(thermo) ); BasicChemistryModel<psiReactionThermo>& chemistry = pChemistry(); |
|
Tags |
reactingfoam; chemistry ;, thermo data |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
species formation rate in OpenFOAM | run | OpenFOAM Post-Processing | 4 | May 13, 2021 08:54 |
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days | joegi.geo | OpenFOAM Announcements from Other Sources | 0 | October 1, 2016 20:20 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
Modified OpenFOAM Forum Structure and New Mailing-List | pete | Site News & Announcements | 0 | June 29, 2009 06:56 |
direct access to species | greg | Main CFD Forum | 3 | July 15, 2006 05:37 |