Data Structures | |
struct | specieElement |
species element More... | |
Public Types | |
enum | phase { solid, liquid, gas } |
![]() | |
typedef gasHThermoPhysics | thermoType |
The type of thermo package the reader was instantiated for. More... | |
Public Member Functions | |
TypeName ("chemkinReader") | |
Runtime type information. More... | |
chemkinReader (speciesTable &species, const fileName &CHEMKINFileName, const fileName &transportFileName, const fileName &thermoFileName=fileName::null, const bool newFormat=false) | |
Construct from CHEMKIN III file name. More... | |
chemkinReader (const dictionary &thermoDict, speciesTable &species) | |
Construct by getting the CHEMKIN III file name from dictionary. More... | |
virtual | ~chemkinReader () |
Destructor. More... | |
const wordList & | elementNames () const |
List of elements. More... | |
const HashTable< label > & | elementIndices () const |
Element indices. More... | |
const HashTable< scalar > & | isotopeAtomicWts () const |
Isotope molecular weights. More... | |
const speciesTable & | species () const |
Table of species. More... | |
const HashTable< phase > & | speciePhase () const |
Specie phase. More... | |
const HashPtrTable< gasHThermoPhysics > & | speciesThermo () const |
Table of the thermodynamic data given in the CHEMKIN file. More... | |
const HashTable< List< specieElement > > & | specieComposition () const |
Table of species composition. More... | |
const ReactionList< gasHThermoPhysics > & | reactions () const |
List of the reactions. More... | |
![]() | |
chemistryReader () | |
Construct null. More... | |
TypeName ("chemistryReader") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, chemistryReader, dictionary,(const dictionary &thermoDict, speciesTable &species),(thermoDict, species)) | |
virtual | ~chemistryReader () |
Destructor. More... | |
virtual const speciesTable & | species () const=0 |
Return access to the list of species. More... | |
virtual const HashPtrTable< gasHThermoPhysics > & | speciesThermo () const=0 |
Return access to the thermo packages. More... | |
virtual const ReactionList< gasHThermoPhysics > & | reactions () const=0 |
Return access to the list of reactions. More... | |
Private Member Functions | |
void | initReactionKeywordTable () |
int | lex () |
Flex lexer to read the CHEMKIN III file. More... | |
scalar | stringToScalar (const string &s) |
scalar | stringToScalar (const char *cstr) |
void | correctElementName (word &elementName) |
scalar | molecularWeight (const List< specieElement > &specieComposition) const |
void | finishElements (labelList ¤tAtoms) |
void | checkCoeffs (const scalarList &reactionCoeffs, const char *reationRateName, const label nCoeffs) const |
template<class ReactionRateType > | |
void | addReactionType (const reactionType rType, DynamicList< gasHReaction::specieCoeffs > &lhs, DynamicList< gasHReaction::specieCoeffs > &rhs, const ReactionRateType &rr) |
template<template< class, class > class PressureDependencyType> | |
void | addPressureDependentReaction (const reactionType rType, const fallOffFunctionType fofType, DynamicList< gasHReaction::specieCoeffs > &lhs, DynamicList< gasHReaction::specieCoeffs > &rhs, const scalarList &thirdBodyEfficiencies, const scalarList &k0Coeffs, const scalarList &kInfCoeffs, const HashTable< scalarList > &reactionCoeffsTable, const scalar Afactor0, const scalar AfactorInf, const scalar RR) |
void | addReaction (DynamicList< gasHReaction::specieCoeffs > &lhs, DynamicList< gasHReaction::specieCoeffs > &rhs, const scalarList &thirdBodyEfficiencies, const reactionType rType, const reactionRateType rrType, const fallOffFunctionType fofType, const scalarList &ArrheniusReactionCoeffs, HashTable< scalarList > &reactionCoeffsTable, const scalar RR) |
void | read (const fileName &CHEMKINFileName, const fileName &thermoFileName, const fileName &transportFileName) |
chemkinReader (const chemkinReader &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const chemkinReader &) |
Disallow default bitwise assignment. More... | |
Static Private Attributes | |
static int | yyBufSize |
static const char * | reactionTypeNames [4] |
static const char * | reactionRateTypeNames [8] |
static const char * | fallOffFunctionNames [4] |
Additional Inherited Members | |
![]() | |
static autoPtr< chemistryReader > | New (const dictionary &thermoDict, speciesTable &species) |
Select constructed from dictionary. More... | |
Definition at line 62 of file chemkinReader.H.
enum phase |
Enumerator | |
---|---|
solid | |
liquid | |
gas |
Definition at line 72 of file chemkinReader.H.
|
private |
Currently supported reaction types.
Definition at line 118 of file chemkinReader.H.
|
private |
Enumerator | |
---|---|
irreversible | |
reversible | |
nonEquilibriumReversible | |
unknownReactionType |
Definition at line 142 of file chemkinReader.H.
|
private |
Enumerator | |
---|---|
Arrhenius | |
thirdBodyArrhenius | |
unimolecularFallOff | |
chemicallyActivatedBimolecular | |
LandauTeller | |
Janev | |
powerSeries | |
unknownReactionRateType |
Definition at line 152 of file chemkinReader.H.
|
private |
Enumerator | |
---|---|
Lindemann | |
Troe | |
SRI | |
unknownFallOffFunctionType |
Definition at line 166 of file chemkinReader.H.
|
private |
Disallow default bitwise copy construct.
chemkinReader | ( | speciesTable & | species, |
const fileName & | CHEMKINFileName, | ||
const fileName & | transportFileName, | ||
const fileName & | thermoFileName = fileName::null , |
||
const bool | newFormat = false |
||
) |
Construct from CHEMKIN III file name.
Definition at line 829 of file chemkinReader.C.
References Foam::read().
chemkinReader | ( | const dictionary & | thermoDict, |
speciesTable & | species | ||
) |
Construct by getting the CHEMKIN III file name from dictionary.
Definition at line 849 of file chemkinReader.C.
References Foam::endl(), string::expand(), dictionary::found(), Foam::Info, fileName::isAbsolute(), dictionary::lookup(), dictionaryName::name(), fileName::null, fileName::path(), and Foam::read().
|
inlinevirtual |
Destructor.
Definition at line 341 of file chemkinReader.H.
|
private |
Definition at line 83 of file chemkinReader.C.
References chemkinReader::chemicallyActivatedBimolecularReactionType, chemkinReader::collisionCrossSection, chemkinReader::duplicateReactionType, chemkinReader::end, chemkinReader::energyLossReactionType, HashTable::insert(), chemkinReader::JanevReactionType, chemkinReader::LandauTellerReactionType, chemkinReader::nonEquilibriumReversibleReactionType, chemkinReader::plasmaMomentumTransfer, chemkinReader::powerSeriesReactionRateType, chemkinReader::radiationActivatedReactionType, chemkinReader::reactionKeywordTable_, chemkinReader::reverseLandauTellerReactionType, chemkinReader::speciesOrderForward, chemkinReader::speciesOrderReverse, chemkinReader::speciesTempReactionType, chemkinReader::SRIReactionType, chemkinReader::thirdBodyReactionType, chemkinReader::TroeReactionType, chemkinReader::unimolecularFallOffReactionType, and chemkinReader::UnitsOfReaction.
|
private |
Flex lexer to read the CHEMKIN III file.
|
inlineprivate |
Definition at line 225 of file chemkinReader.H.
References string::replaceAll(), and s().
Referenced by chemkinReader::stringToScalar().
|
inlineprivate |
Definition at line 234 of file chemkinReader.H.
References chemkinReader::stringToScalar().
|
inlineprivate |
Definition at line 239 of file chemkinReader.H.
|
private |
Definition at line 114 of file chemkinReader.C.
References Foam::atomicWeights, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, HashTable::found(), and Foam::nl.
|
private |
|
private |
Definition at line 148 of file chemkinReader.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, and List::size().
|
private |
Definition at line 169 of file chemkinReader.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and DynamicList::shrink().
|
private |
Definition at line 240 of file chemkinReader.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::nl, Foam::constant::thermodynamic::RR, List::setSize(), and List::size().
|
private |
Definition at line 412 of file chemkinReader.C.
References DynamicList::clear(), HashTable::clear(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, Foam::mag(), Foam::nl, Foam::pow(), Foam::constant::thermodynamic::RR, and DynamicList::shrink().
|
private |
Definition at line 775 of file chemkinReader.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and fileName::null.
|
private |
Disallow default bitwise assignment.
TypeName | ( | "chemkinReader" | ) |
Runtime type information.
|
inline |
List of elements.
Definition at line 348 of file chemkinReader.H.
References chemkinReader::elementNames_.
Element indices.
Definition at line 354 of file chemkinReader.H.
References chemkinReader::elementIndices_.
|
inline |
Isotope molecular weights.
Definition at line 360 of file chemkinReader.H.
References chemkinReader::isotopeAtomicWts_.
|
inline |
Table of species.
Definition at line 366 of file chemkinReader.H.
References chemkinReader::speciesTable_.
Specie phase.
Definition at line 372 of file chemkinReader.H.
References chemkinReader::speciePhase_.
|
inline |
Table of the thermodynamic data given in the CHEMKIN file.
Definition at line 378 of file chemkinReader.H.
References chemkinReader::speciesThermo_.
|
inline |
Table of species composition.
Definition at line 384 of file chemkinReader.H.
References chemkinReader::specieComposition_.
|
inline |
List of the reactions.
Definition at line 390 of file chemkinReader.H.
References chemkinReader::reactions_.
|
staticprivate |
Definition at line 111 of file chemkinReader.H.
|
private |
Definition at line 112 of file chemkinReader.H.
|
private |
Table of reaction type keywords.
Definition at line 115 of file chemkinReader.H.
Referenced by chemkinReader::initReactionKeywordTable().
|
staticprivate |
Definition at line 150 of file chemkinReader.H.
|
staticprivate |
Definition at line 164 of file chemkinReader.H.
|
staticprivate |
Definition at line 174 of file chemkinReader.H.
|
private |
List of elements.
Definition at line 181 of file chemkinReader.H.
Referenced by chemkinReader::elementNames().
Element indices.
Definition at line 184 of file chemkinReader.H.
Referenced by chemkinReader::elementIndices().
|
private |
Isotope molecular weights.
Definition at line 187 of file chemkinReader.H.
Referenced by chemkinReader::isotopeAtomicWts().
|
private |
List of species.
Definition at line 190 of file chemkinReader.H.
Specie indices.
Definition at line 193 of file chemkinReader.H.
|
private |
Table of species.
Definition at line 196 of file chemkinReader.H.
Referenced by chemkinReader::species().
Specie phase.
Definition at line 199 of file chemkinReader.H.
Referenced by chemkinReader::speciePhase().
|
private |
Table of the thermodynamic data given in the CHEMKIN file.
Definition at line 202 of file chemkinReader.H.
Referenced by chemkinReader::speciesThermo().
|
private |
Table of species composition.
Definition at line 205 of file chemkinReader.H.
Referenced by chemkinReader::specieComposition().
|
private |
List of the reactions.
Definition at line 208 of file chemkinReader.H.
Referenced by chemkinReader::reactions().
|
private |
Transport properties dictionary.
Definition at line 211 of file chemkinReader.H.
|
private |
Flag to indicate that file is in new format.
Definition at line 214 of file chemkinReader.H.
|
private |
Tolerance for element imbalance in a reaction.
Definition at line 217 of file chemkinReader.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.