Public Member Functions | Private Types | Private Member Functions | Private Attributes | Friends
solidReaction Class Reference

Read solid reactions of the type S1 = S2 + G1. More...

Collaboration diagram for solidReaction:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("SolidReaction")
 Runtime type information. More...
 
 solidReaction (const Reaction< ReactionThermo > &reaction, const speciesTable &pyrolisisGases, const List< specieCoeffs > &glhs, const List< specieCoeffs > &grhs)
 Construct from components. More...
 
 solidReaction (const solidReaction< ReactionThermo > &, const speciesTable &pyrolisisGases)
 Construct as copy given new speciesTable. More...
 
 solidReaction (const speciesTable &pyrolisisGases, const HashPtrTable< ReactionThermo > &thermoDatabase, Istream &is)
 Construct from Istream. More...
 
 solidReaction (const speciesTable &species, const HashPtrTable< ReactionThermo > &thermoDatabase, const dictionary &dict)
 Construct from dictionary. More...
 
virtual autoPtr< Reaction< ReactionThermo > > clone () const
 Construct and return a clone. More...
 
virtual autoPtr< Reaction< ReactionThermo > > clone (const speciesTable &species) const
 Construct and return a clone with new speciesTable. More...
 
virtual ~solidReaction ()
 Destructor. More...
 
virtual const List< specieCoeffs > & grhs () const
 
virtual const List< specieCoeffs > & glhs () const
 
virtual const speciesTablegasSpecies () const
 
virtual void write (Ostream &) const
 Write. More...
 

Private Types

typedef Reaction< ReactionThermo >::specieCoeffs specieCoeffs
 

Private Member Functions

string solidReactionStr (OStringStream &) const
 Return string representation of reaction. More...
 
void solidReactionStrLeft (OStringStream &) const
 Return string representation of the left of the reaction. More...
 
void solidReactionStrRight (OStringStream &) const
 Return string representation of the right of the reaction. More...
 
void operator= (const solidReaction &)
 Disallow default bitwise assignment. More...
 

Private Attributes

speciesTable pyrolisisGases_
 List of gas species present in reaction system. More...
 
List< specieCoeffsglhs_
 Gas specie index for the left-hand-side of the reaction. More...
 
List< specieCoeffsgrhs_
 Gas specie index for the right-hand-side of the reaction. More...
 

Friends

Ostreamoperator (Ostream &, const solidReaction< ReactionThermo > &)
 

Detailed Description

Read solid reactions of the type S1 = S2 + G1.

Source files

Definition at line 49 of file solidReaction.H.

Member Typedef Documentation

◆ specieCoeffs

typedef Reaction<ReactionThermo>::specieCoeffs specieCoeffs
private

Definition at line 68 of file solidReaction.H.

Constructor & Destructor Documentation

◆ solidReaction() [1/4]

solidReaction ( const Reaction< ReactionThermo > &  reaction,
const speciesTable pyrolisisGases,
const List< specieCoeffs > &  glhs,
const List< specieCoeffs > &  grhs 
)

Construct from components.

Definition at line 34 of file solidReaction.C.

◆ solidReaction() [2/4]

solidReaction ( const solidReaction< ReactionThermo > &  ,
const speciesTable pyrolisisGases 
)

Construct as copy given new speciesTable.

◆ solidReaction() [3/4]

solidReaction ( const speciesTable pyrolisisGases,
const HashPtrTable< ReactionThermo > &  thermoDatabase,
Istream is 
)

Construct from Istream.

◆ solidReaction() [4/4]

solidReaction ( const speciesTable species,
const HashPtrTable< ReactionThermo > &  thermoDatabase,
const dictionary dict 
)

Construct from dictionary.

Definition at line 81 of file solidReaction.C.

References dict, and dictionary::lookup().

Here is the call graph for this function:

◆ ~solidReaction()

virtual ~solidReaction ( )
inlinevirtual

Destructor.

Definition at line 163 of file solidReaction.H.

Member Function Documentation

◆ solidReactionStr()

Foam::string solidReactionStr ( OStringStream reaction) const
private

Return string representation of reaction.

Definition at line 139 of file solidReaction.C.

References reaction().

Here is the call graph for this function:

◆ solidReactionStrLeft()

void solidReactionStrLeft ( OStringStream reaction) const
private

Return string representation of the left of the reaction.

Definition at line 163 of file solidReaction.C.

References Foam::mag(), reaction(), and List::size().

Here is the call graph for this function:

◆ solidReactionStrRight()

void solidReactionStrRight ( OStringStream reaction) const
private

Return string representation of the right of the reaction.

Definition at line 188 of file solidReaction.C.

References Foam::mag(), reaction(), and List::size().

Here is the call graph for this function:

◆ operator=()

void operator= ( const solidReaction )
private

Disallow default bitwise assignment.

◆ TypeName()

TypeName ( "SolidReaction"  )

Runtime type information.

◆ clone() [1/2]

virtual autoPtr<Reaction<ReactionThermo> > clone ( ) const
inlinevirtual

Construct and return a clone.

Definition at line 141 of file solidReaction.H.

◆ clone() [2/2]

virtual autoPtr<Reaction<ReactionThermo> > clone ( const speciesTable species) const
inlinevirtual

Construct and return a clone with new speciesTable.

Definition at line 151 of file solidReaction.H.

◆ grhs()

const Foam::List< typename Foam::Reaction< ReactionThermo >::specieCoeffs > & grhs ( ) const
virtual

Definition at line 114 of file solidReaction.C.

◆ glhs()

const Foam::List< typename Foam::solidReaction< ReactionThermo >::specieCoeffs > & glhs ( ) const
virtual

Definition at line 106 of file solidReaction.C.

◆ gasSpecies()

const Foam::speciesTable & gasSpecies ( ) const
virtual

Definition at line 122 of file solidReaction.C.

◆ write()

void write ( Ostream os) const
virtual

Write.

Definition at line 129 of file solidReaction.C.

References token::END_STATEMENT, Foam::nl, reaction(), and Ostream::writeKeyword().

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream ,
const solidReaction< ReactionThermo > &   
)
friend

Field Documentation

◆ pyrolisisGases_

speciesTable pyrolisisGases_
private

List of gas species present in reaction system.

Definition at line 71 of file solidReaction.H.

◆ glhs_

List<specieCoeffs> glhs_
private

Gas specie index for the left-hand-side of the reaction.

Definition at line 74 of file solidReaction.H.

◆ grhs_

List<specieCoeffs> grhs_
private

Gas specie index for the right-hand-side of the reaction.

Definition at line 77 of file solidReaction.H.


The documentation for this class was generated from the following files: