mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
thermophysicalModels::Reaction: Refactored to remove unnecessary solid reaction specific functions
This commit is contained in:
@ -6,6 +6,7 @@ EXE_INC = \
|
||||
-I$(LIB_SRC)/TurbulenceModels/compressible/lnInclude \
|
||||
-I$(LIB_SRC)/lagrangian/distributionModels/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/solidSpecie/lnInclude \
|
||||
-I$(LIB_SRC)/transportModels/compressible/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
|
||||
-I$(LIB_SRC)/thermophysicalModels/solidThermo/lnInclude \
|
||||
|
||||
@ -37,7 +37,13 @@ pyrolysisChemistryModel
|
||||
)
|
||||
:
|
||||
solidChemistryModel<CompType, SolidThermo>(thermo),
|
||||
pyrolisisGases_(this->reactions_[0].gasSpecies()),
|
||||
pyrolisisGases_
|
||||
(
|
||||
dynamic_cast<const SolidReaction<SolidThermo>&>
|
||||
(
|
||||
this->reactions_[0]
|
||||
).gasSpecies()
|
||||
),
|
||||
gasThermo_(pyrolisisGases_.size()),
|
||||
nGases_(pyrolisisGases_.size()),
|
||||
nSpecie_(this->Ys_.size() + nGases_),
|
||||
@ -193,7 +199,11 @@ pyrolysisChemistryModel<CompType, SolidThermo, GasThermo>::omega
|
||||
|
||||
forAll(this->reactions_, i)
|
||||
{
|
||||
const Reaction<SolidThermo>& R = this->reactions_[i];
|
||||
const SolidReaction<SolidThermo>& R =
|
||||
dynamic_cast<const SolidReaction<SolidThermo>&>
|
||||
(
|
||||
this->reactions_[i]
|
||||
);
|
||||
|
||||
scalar omegai = omega
|
||||
(
|
||||
|
||||
@ -806,30 +806,4 @@ const Foam::speciesTable& Foam::Reaction<ReactionThermo>::species() const
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo>
|
||||
const Foam::speciesTable& Foam::Reaction<ReactionThermo>::gasSpecies() const
|
||||
{
|
||||
NotImplemented;
|
||||
return NullObjectRef<speciesTable>();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo>
|
||||
const Foam::List<typename Foam::Reaction<ReactionThermo>::specieCoeffs>&
|
||||
Foam::Reaction<ReactionThermo>::glhs() const
|
||||
{
|
||||
NotImplemented;
|
||||
return NullObjectRef<List<specieCoeffs>>();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo>
|
||||
const Foam::List<typename Foam::Reaction<ReactionThermo>::specieCoeffs>&
|
||||
Foam::Reaction<ReactionThermo>::grhs() const
|
||||
{
|
||||
NotImplemented;
|
||||
return NullObjectRef<List<specieCoeffs>>();
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -249,18 +249,9 @@ public:
|
||||
//- Access to the components of the right hand side
|
||||
inline const List<specieCoeffs>& rhs() const;
|
||||
|
||||
//- Access to the gas components of the left hand side
|
||||
virtual const List<specieCoeffs>& grhs() const;
|
||||
|
||||
//- Access to the gas components of the right hand side
|
||||
virtual const List<specieCoeffs>& glhs() const;
|
||||
|
||||
//- Access to specie list
|
||||
const speciesTable& species() const;
|
||||
|
||||
//- Access to gas specie list
|
||||
virtual const speciesTable& gasSpecies() const;
|
||||
|
||||
//- Construct the left- and right-hand-side reaction coefficients
|
||||
void setLRhs
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user