thermophysicalModels: Corrected the name of solidReaction -> SolidReaction

for consistency with the rest of the reaction system
This commit is contained in:
Henry Weller
2018-06-15 15:23:12 +01:00
parent 4dc35c6810
commit 14a50c7d62
5 changed files with 42 additions and 43 deletions

View File

@ -24,7 +24,7 @@ License
\*---------------------------------------------------------------------------*/
#include "pyrolysisChemistryModel.H"
#include "solidReaction.H"
#include "SolidReaction.H"
#include "basicThermo.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
@ -156,7 +156,7 @@ pyrolysisChemistryModel
Info<< indent << "Number of gases = " << nGases_ << nl;
forAll(this->reactions_, i)
{
Info<< dynamic_cast<const solidReaction<SolidThermo>& >
Info<< dynamic_cast<const SolidReaction<SolidThermo>& >
(
this->reactions_[i]
) << nl;

View File

@ -23,14 +23,13 @@ License
\*---------------------------------------------------------------------------*/
#include "solidReaction.H"
#include "SolidReaction.H"
#include "DynamicList.H"
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
template<class ReactionThermo>
Foam::solidReaction<ReactionThermo>::solidReaction
Foam::SolidReaction<ReactionThermo>::SolidReaction
(
const Reaction<ReactionThermo>& reaction,
const speciesTable& pyrolisisGases,
@ -46,9 +45,9 @@ Foam::solidReaction<ReactionThermo>::solidReaction
template<class ReactionThermo>
Foam::solidReaction<ReactionThermo>::solidReaction
Foam::SolidReaction<ReactionThermo>::SolidReaction
(
const solidReaction<ReactionThermo>& r,
const SolidReaction<ReactionThermo>& r,
const speciesTable& pyrolisisGases
)
:
@ -60,7 +59,7 @@ Foam::solidReaction<ReactionThermo>::solidReaction
template<class ReactionThermo>
Foam::solidReaction<ReactionThermo>::solidReaction
Foam::SolidReaction<ReactionThermo>::SolidReaction
(
const speciesTable& species,
const HashPtrTable<ReactionThermo>& thermoDatabase,
@ -85,8 +84,8 @@ Foam::solidReaction<ReactionThermo>::solidReaction
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
template<class ReactionThermo>
const Foam::List<typename Foam::solidReaction<ReactionThermo>::specieCoeffs>&
Foam::solidReaction<ReactionThermo>::glhs() const
const Foam::List<typename Foam::SolidReaction<ReactionThermo>::specieCoeffs>&
Foam::SolidReaction<ReactionThermo>::glhs() const
{
return glhs_;
}
@ -94,14 +93,14 @@ Foam::solidReaction<ReactionThermo>::glhs() const
template<class ReactionThermo>
const Foam::List<typename Foam::Reaction<ReactionThermo>::specieCoeffs>&
Foam::solidReaction<ReactionThermo>::grhs() const
Foam::SolidReaction<ReactionThermo>::grhs() const
{
return grhs_;
}
template<class ReactionThermo>
const Foam::speciesTable& Foam::solidReaction<ReactionThermo>::
const Foam::speciesTable& Foam::SolidReaction<ReactionThermo>::
gasSpecies() const
{
return pyrolisisGases_;
@ -109,7 +108,7 @@ gasSpecies() const
template<class ReactionThermo>
void Foam::solidReaction<ReactionThermo>::write(Ostream& os) const
void Foam::SolidReaction<ReactionThermo>::write(Ostream& os) const
{
OStringStream reaction;
os.writeKeyword("reaction") << solidReactionStr(reaction)
@ -118,7 +117,7 @@ void Foam::solidReaction<ReactionThermo>::write(Ostream& os) const
template<class ReactionThermo>
Foam::string Foam::solidReaction<ReactionThermo>::solidReactionStr
Foam::string Foam::SolidReaction<ReactionThermo>::solidReactionStr
(
OStringStream& reaction
) const
@ -142,7 +141,7 @@ Foam::string Foam::solidReaction<ReactionThermo>::solidReactionStr
template<class ReactionThermo>
void Foam::solidReaction<ReactionThermo>::solidReactionStrLeft
void Foam::SolidReaction<ReactionThermo>::solidReactionStrLeft
(
OStringStream& reaction
) const
@ -167,7 +166,7 @@ void Foam::solidReaction<ReactionThermo>::solidReactionStrLeft
template<class ReactionThermo>
void Foam::solidReaction<ReactionThermo>::solidReactionStrRight
void Foam::SolidReaction<ReactionThermo>::solidReactionStrRight
(
OStringStream& reaction
) const

View File

@ -22,20 +22,20 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Class
Foam::solidReaction
Foam::SolidReaction
Description
Read solid reactions of the type S1 = S2 + G1
SourceFiles
solidReactionI.H
solidReaction.C
SolidReactionI.H
SolidReaction.C
\*---------------------------------------------------------------------------*/
#ifndef solidReaction_H
#define solidReaction_H
#ifndef SolidReaction_H
#define SolidReaction_H
#include "speciesTable.H"
#include "Reaction.H"
@ -47,17 +47,17 @@ namespace Foam
// Forward declaration of friend functions and operators
template<class ReactionThermo>
class solidReaction;
class SolidReaction;
template<class ReactionThermo>
inline Ostream& operator<<(Ostream&, const solidReaction<ReactionThermo>&);
inline Ostream& operator<<(Ostream&, const SolidReaction<ReactionThermo>&);
/*---------------------------------------------------------------------------*\
Class solidReaction Declaration
Class SolidReaction Declaration
\*---------------------------------------------------------------------------*/
template<class ReactionThermo>
class solidReaction
class SolidReaction
:
public Reaction<ReactionThermo>
{
@ -91,7 +91,7 @@ private:
void solidReactionStrRight(OStringStream&) const;
//- Disallow default bitwise assignment
void operator=(const solidReaction&);
void operator=(const SolidReaction&);
public:
@ -103,7 +103,7 @@ public:
// Constructors
//- Construct from components
solidReaction
SolidReaction
(
const Reaction<ReactionThermo>& reaction,
const speciesTable& pyrolisisGases,
@ -113,15 +113,15 @@ public:
//- Construct as copy given new speciesTable
solidReaction
SolidReaction
(
const solidReaction<ReactionThermo>&,
const SolidReaction<ReactionThermo>&,
const speciesTable& pyrolisisGases
);
//- Construct from dictionary
solidReaction
SolidReaction
(
const speciesTable& species,
const HashPtrTable<ReactionThermo>& thermoDatabase,
@ -130,7 +130,7 @@ public:
//- Destructor
virtual ~solidReaction()
virtual ~SolidReaction()
{}
@ -157,7 +157,7 @@ public:
friend Ostream& operator<< <ReactionThermo>
(
Ostream&,
const solidReaction<ReactionThermo>&
const SolidReaction<ReactionThermo>&
);
};
@ -168,12 +168,12 @@ public:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "solidReactionI.H"
#include "SolidReactionI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#ifdef NoRepository
#include "solidReaction.C"
#include "SolidReaction.C"
#endif
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -23,7 +23,7 @@ License
\*---------------------------------------------------------------------------*/
#include "solidReaction.H"
#include "SolidReaction.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -36,7 +36,7 @@ template<class ReactionThermo>
inline Ostream& operator<<
(
Ostream& os,
const solidReaction<ReactionThermo>& r
const SolidReaction<ReactionThermo>& r
)
{
OStringStream reaction;

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2017 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2018 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -32,7 +32,7 @@ Description
#ifndef makeSolidReaction_H
#define makeSolidReaction_H
#include "solidReaction.H"
#include "SolidReaction.H"
#include "IrreversibleReaction.H"
#include "Reaction.H"
@ -47,16 +47,16 @@ namespace Foam
#define makeSolidReaction(ReactionType, Thermo, ReactionRate) \
\
typedef solidReaction<Thermo> solidReaction##Thermo; \
typedef SolidReaction<Thermo> SolidReaction##Thermo; \
\
typedef Reaction<Thermo> Reaction##Thermo; \
\
typedef ReactionType<solidReaction, Thermo, ReactionRate> \
typedef ReactionType<SolidReaction, Thermo, ReactionRate> \
ReactionType##Thermo##ReactionRate; \
\
defineTemplateRunTimeSelectionTable(Reaction##Thermo, dictionary); \
\
defineTemplateTypeNameAndDebug(solidReaction##Thermo, 0); \
defineTemplateTypeNameAndDebug(SolidReaction##Thermo, 0); \
defineTemplateTypeNameAndDebug(Reaction##Thermo, 0); \
\
template<> \
@ -64,7 +64,7 @@ namespace Foam
( \
ReactionType::typeName_() \
+ ReactionRate::type() \
+ solidReaction##Thermo::typeName_() \
+ SolidReaction##Thermo::typeName_() \
); \
\
addToRunTimeSelectionTable \