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

Access the composition of species in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 9, 2022, 21:39
Default Access the composition of species in OpenFOAM
  #1
New Member
 
Join Date: Jan 2015
Posts: 22
Rep Power: 11
adib_mohammad is on a distinguished road
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();
compiler throw an erorr saying that

Code:
./sootTest.H:44:20: error: ‘class Foam::BasicChemistryModel<Foam::psiReactionThermo>’ has no member named ‘specieComp’
   44 |          chemistry.specieComp();
This is the definition of the chemistry in my solver.

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();
adib_mohammad is offline   Reply With Quote

Reply

Tags
reactingfoam; chemistry ;, thermo data


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


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