chemistry: Added preEvaluate and postEvaluate hooks to reactions
This commit is contained in:
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -107,7 +107,6 @@ void Foam::StandardChemistryModel<ThermoType>::omega
|
||||
scalarField& dcdt
|
||||
) const
|
||||
{
|
||||
|
||||
dcdt = Zero;
|
||||
|
||||
forAll(reactions_, i)
|
||||
@ -306,6 +305,8 @@ Foam::StandardChemistryModel<ThermoType>::tc() const
|
||||
|
||||
if (this->chemistry_)
|
||||
{
|
||||
reactionEvaluationScope scope(*this);
|
||||
|
||||
forAll(rho, celli)
|
||||
{
|
||||
const scalar rhoi = rho[celli];
|
||||
@ -358,6 +359,8 @@ Foam::StandardChemistryModel<ThermoType>::Qdot() const
|
||||
|
||||
if (this->chemistry_)
|
||||
{
|
||||
reactionEvaluationScope scope(*this);
|
||||
|
||||
scalarField& Qdot = tQdot.ref();
|
||||
|
||||
forAll(Y_, i)
|
||||
@ -400,6 +403,8 @@ Foam::StandardChemistryModel<ThermoType>::calculateRR
|
||||
const scalarField& T = this->thermo().T();
|
||||
const scalarField& p = this->thermo().p();
|
||||
|
||||
reactionEvaluationScope scope(*this);
|
||||
|
||||
scalar pf, cf, pr, cr;
|
||||
label lRef, rRef;
|
||||
|
||||
@ -458,6 +463,8 @@ void Foam::StandardChemistryModel<ThermoType>::calculate()
|
||||
const scalarField& T = this->thermo().T();
|
||||
const scalarField& p = this->thermo().p();
|
||||
|
||||
reactionEvaluationScope scope(*this);
|
||||
|
||||
forAll(rho, celli)
|
||||
{
|
||||
const scalar rhoi = rho[celli];
|
||||
@ -502,6 +509,8 @@ Foam::scalar Foam::StandardChemistryModel<ThermoType>::solve
|
||||
const scalarField& T = this->thermo().T();
|
||||
const scalarField& p = this->thermo().p();
|
||||
|
||||
reactionEvaluationScope scope(*this);
|
||||
|
||||
scalarField c0(nSpecie_);
|
||||
|
||||
forAll(rho, celli)
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -71,6 +71,40 @@ class StandardChemistryModel
|
||||
|
||||
protected:
|
||||
|
||||
// Protected classes
|
||||
|
||||
//- Class to define scope of reaction evaluation. Runs pre-evaluate
|
||||
// hook on all reactions on construction and post-evaluate on
|
||||
// destruction.
|
||||
class reactionEvaluationScope
|
||||
{
|
||||
const StandardChemistryModel<ThermoType>& chemistry_;
|
||||
|
||||
public:
|
||||
|
||||
reactionEvaluationScope
|
||||
(
|
||||
const StandardChemistryModel<ThermoType>& chemistry
|
||||
)
|
||||
:
|
||||
chemistry_(chemistry)
|
||||
{
|
||||
forAll(chemistry_.reactions_, i)
|
||||
{
|
||||
chemistry_.reactions_[i].preEvaluate();
|
||||
}
|
||||
}
|
||||
|
||||
~reactionEvaluationScope()
|
||||
{
|
||||
forAll(chemistry_.reactions_, i)
|
||||
{
|
||||
chemistry_.reactions_[i].postEvaluate();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
// Protected data
|
||||
|
||||
//- Reference to the field of specie mass fractions
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2019-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -127,6 +127,12 @@ public:
|
||||
return "fluxLimitedLangmuirHinshelwood";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2019-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -206,6 +206,16 @@ fluxLimitedLangmuirHinshelwoodReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void
|
||||
Foam::fluxLimitedLangmuirHinshelwoodReactionRate::preEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline void
|
||||
Foam::fluxLimitedLangmuirHinshelwoodReactionRate::postEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::scalar
|
||||
Foam::fluxLimitedLangmuirHinshelwoodReactionRate::operator()
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2019-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2019-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -92,6 +92,12 @@ public:
|
||||
return "surfaceArrhenius";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
//- Evaluate the rate
|
||||
inline scalar operator()
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2019-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -43,6 +43,18 @@ inline Foam::surfaceArrheniusReactionRate::surfaceArrheniusReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::surfaceArrheniusReactionRate::preEvaluate() const
|
||||
{
|
||||
ArrheniusReactionRate::preEvaluate();
|
||||
}
|
||||
|
||||
|
||||
inline void Foam::surfaceArrheniusReactionRate::postEvaluate() const
|
||||
{
|
||||
ArrheniusReactionRate::postEvaluate();
|
||||
}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::surfaceArrheniusReactionRate::operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -84,6 +84,22 @@ IrreversibleReaction
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
void
|
||||
Foam::IrreversibleReaction<ReactionThermo, ReactionRate>::preEvaluate() const
|
||||
{
|
||||
k_.preEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
void
|
||||
Foam::IrreversibleReaction<ReactionThermo, ReactionRate>::postEvaluate() const
|
||||
{
|
||||
k_.postEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
Foam::scalar Foam::IrreversibleReaction<ReactionThermo, ReactionRate>::kf
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -128,6 +128,15 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
// Hooks
|
||||
|
||||
//- Pre-evaluation hook
|
||||
virtual void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
virtual void postEvaluate() const;
|
||||
|
||||
|
||||
// IrreversibleReaction rate coefficients
|
||||
|
||||
//- Forward rate constant
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -89,6 +89,24 @@ NonEquilibriumReversibleReaction
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
void Foam::NonEquilibriumReversibleReaction<ReactionThermo, ReactionRate>::
|
||||
preEvaluate() const
|
||||
{
|
||||
fk_.preEvaluate();
|
||||
rk_.preEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
void Foam::NonEquilibriumReversibleReaction<ReactionThermo, ReactionRate>::
|
||||
postEvaluate() const
|
||||
{
|
||||
fk_.postEvaluate();
|
||||
rk_.postEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
Foam::scalar
|
||||
Foam::NonEquilibriumReversibleReaction<ReactionThermo, ReactionRate>::kf
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -143,6 +143,15 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
// Hooks
|
||||
|
||||
//- Pre-evaluation hook
|
||||
virtual void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
virtual void postEvaluate() const;
|
||||
|
||||
|
||||
// NonEquilibriumReversibleReaction rate coefficients
|
||||
|
||||
//- Forward rate constant
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -213,6 +213,15 @@ public:
|
||||
inline scalar Thigh() const;
|
||||
|
||||
|
||||
// Hooks
|
||||
|
||||
//- Pre-evaluation hook
|
||||
virtual void preEvaluate() const = 0;
|
||||
|
||||
//- Post-evaluation hook
|
||||
virtual void postEvaluate() const = 0;
|
||||
|
||||
|
||||
// Reaction rate coefficients
|
||||
|
||||
//- Forward reaction rate
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2018-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -101,6 +101,16 @@ Foam::ReactionProxy<ReactionThermo>::clone
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class ReactionThermo>
|
||||
void Foam::ReactionProxy<ReactionThermo>::preEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
template<class ReactionThermo>
|
||||
void Foam::ReactionProxy<ReactionThermo>::postEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
template<class ReactionThermo>
|
||||
Foam::scalar Foam::ReactionProxy<ReactionThermo>::kf
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2018-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -100,6 +100,15 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
// Hooks
|
||||
|
||||
//- Pre-evaluation hook
|
||||
virtual void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
virtual void postEvaluate() const;
|
||||
|
||||
|
||||
// Reaction rate coefficients
|
||||
|
||||
//- Forward rate constant
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -84,6 +84,22 @@ ReversibleReaction
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
void
|
||||
Foam::ReversibleReaction<ReactionThermo, ReactionRate>::preEvaluate() const
|
||||
{
|
||||
k_.preEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
void
|
||||
Foam::ReversibleReaction<ReactionThermo, ReactionRate>::postEvaluate() const
|
||||
{
|
||||
k_.postEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionThermo, class ReactionRate>
|
||||
Foam::scalar Foam::ReversibleReaction<ReactionThermo, ReactionRate>::kf
|
||||
(
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -129,6 +129,15 @@ public:
|
||||
|
||||
// Member Functions
|
||||
|
||||
// Hooks
|
||||
|
||||
//- Pre-evaluation hook
|
||||
virtual void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
virtual void postEvaluate() const;
|
||||
|
||||
|
||||
// ReversibleReaction rate coefficients
|
||||
|
||||
//- Forward rate constant
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -93,6 +93,12 @@ public:
|
||||
return "Arrhenius";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -52,6 +52,14 @@ inline Foam::ArrheniusReactionRate::ArrheniusReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::ArrheniusReactionRate::preEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline void Foam::ArrheniusReactionRate::postEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::ArrheniusReactionRate::operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -103,6 +103,12 @@ public:
|
||||
+ "ChemicallyActivated";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -82,6 +82,30 @@ inline Foam::ChemicallyActivatedReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class ReactionRate, class ChemicallyActivationFunction>
|
||||
inline void Foam::ChemicallyActivatedReactionRate
|
||||
<
|
||||
ReactionRate,
|
||||
ChemicallyActivationFunction
|
||||
>::preEvaluate() const
|
||||
{
|
||||
k0_.preEvaluate();
|
||||
kInf_.preEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionRate, class ChemicallyActivationFunction>
|
||||
inline void Foam::ChemicallyActivatedReactionRate
|
||||
<
|
||||
ReactionRate,
|
||||
ChemicallyActivationFunction
|
||||
>::postEvaluate() const
|
||||
{
|
||||
k0_.postEvaluate();
|
||||
kInf_.postEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionRate, class ChemicallyActivationFunction>
|
||||
inline Foam::scalar Foam::ChemicallyActivatedReactionRate
|
||||
<
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -100,6 +100,12 @@ public:
|
||||
return ReactionRate::type() + FallOffFunction::type() + "FallOff";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -76,6 +76,24 @@ FallOffReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
template<class ReactionRate, class FallOffFunction>
|
||||
inline void
|
||||
Foam::FallOffReactionRate<ReactionRate, FallOffFunction>::preEvaluate() const
|
||||
{
|
||||
k0_.preEvaluate();
|
||||
kInf_.preEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionRate, class FallOffFunction>
|
||||
inline void
|
||||
Foam::FallOffReactionRate<ReactionRate, FallOffFunction>::postEvaluate() const
|
||||
{
|
||||
k0_.postEvaluate();
|
||||
kInf_.postEvaluate();
|
||||
}
|
||||
|
||||
|
||||
template<class ReactionRate, class FallOffFunction>
|
||||
inline Foam::scalar
|
||||
Foam::FallOffReactionRate<ReactionRate, FallOffFunction>::operator()
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -96,6 +96,12 @@ public:
|
||||
return "Janev";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -55,6 +55,14 @@ inline Foam::JanevReactionRate::JanevReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::JanevReactionRate::preEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline void Foam::JanevReactionRate::postEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::JanevReactionRate::operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -95,6 +95,12 @@ public:
|
||||
return "LandauTeller";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -58,6 +58,14 @@ inline Foam::LandauTellerReactionRate::LandauTellerReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::LandauTellerReactionRate::preEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline void Foam::LandauTellerReactionRate::postEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::LandauTellerReactionRate::operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -98,6 +98,12 @@ public:
|
||||
return "LangmuirHinshelwood";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -64,6 +64,14 @@ inline Foam::LangmuirHinshelwoodReactionRate::LangmuirHinshelwoodReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::LangmuirHinshelwoodReactionRate::preEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline void Foam::LangmuirHinshelwoodReactionRate::postEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::LangmuirHinshelwoodReactionRate::operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2018-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2018-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -100,6 +100,12 @@ public:
|
||||
return "MichaelisMenten";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2018-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2018-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -42,6 +42,14 @@ inline Foam::MichaelisMentenReactionRate::MichaelisMentenReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::MichaelisMentenReactionRate::preEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline void Foam::MichaelisMentenReactionRate::postEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::MichaelisMentenReactionRate::operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -96,6 +96,12 @@ public:
|
||||
return "powerSeries";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -55,6 +55,14 @@ inline Foam::powerSeriesReactionRate::powerSeriesReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::powerSeriesReactionRate::preEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline void Foam::powerSeriesReactionRate::postEvaluate() const
|
||||
{}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::powerSeriesReactionRate::operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2020 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -93,6 +93,12 @@ public:
|
||||
return "thirdBodyArrhenius";
|
||||
}
|
||||
|
||||
//- Pre-evaluation hook
|
||||
inline void preEvaluate() const;
|
||||
|
||||
//- Post-evaluation hook
|
||||
inline void postEvaluate() const;
|
||||
|
||||
inline scalar operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2011-2019 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2011-2021 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -72,6 +72,18 @@ inline Foam::thirdBodyArrheniusReactionRate::thirdBodyArrheniusReactionRate
|
||||
|
||||
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
|
||||
|
||||
inline void Foam::thirdBodyArrheniusReactionRate::preEvaluate() const
|
||||
{
|
||||
ArrheniusReactionRate::preEvaluate();
|
||||
}
|
||||
|
||||
|
||||
inline void Foam::thirdBodyArrheniusReactionRate::postEvaluate() const
|
||||
{
|
||||
ArrheniusReactionRate::postEvaluate();
|
||||
}
|
||||
|
||||
|
||||
inline Foam::scalar Foam::thirdBodyArrheniusReactionRate::operator()
|
||||
(
|
||||
const scalar p,
|
||||
|
||||
Reference in New Issue
Block a user