mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Rationalized heat release rate functions
Combined 'dQ()' and 'Sh()' into 'Qdot()' which returns the heat-release rate in the normal units [kg/m/s3] and used as the heat release rate source term in the energy equations, to set the field 'Qdot' in several combustion solvers and for the evaluation of the local time-step when running LTS.
This commit is contained in:
@ -135,7 +135,7 @@ Foam::AnisothermalPhaseModel<BasePhaseModel>::heEqn()
|
||||
he
|
||||
)
|
||||
==
|
||||
this->Sh()
|
||||
this->Qdot()
|
||||
);
|
||||
|
||||
// Add the appropriate pressure-work term
|
||||
|
||||
@ -65,7 +65,7 @@ Foam::InertPhaseModel<BasePhaseModel>::R
|
||||
|
||||
template<class BasePhaseModel>
|
||||
Foam::tmp<Foam::volScalarField>
|
||||
Foam::InertPhaseModel<BasePhaseModel>::Sh() const
|
||||
Foam::InertPhaseModel<BasePhaseModel>::Qdot() const
|
||||
{
|
||||
return tmp<volScalarField>
|
||||
(
|
||||
@ -73,7 +73,7 @@ Foam::InertPhaseModel<BasePhaseModel>::Sh() const
|
||||
(
|
||||
IOobject
|
||||
(
|
||||
IOobject::groupName("Sh", this->name()),
|
||||
IOobject::groupName("Qdot", this->name()),
|
||||
this->mesh().time().timeName(),
|
||||
this->mesh()
|
||||
),
|
||||
|
||||
@ -78,8 +78,8 @@ public:
|
||||
volScalarField& Yi
|
||||
) const;
|
||||
|
||||
//- Return the reaction heat source
|
||||
virtual tmp<volScalarField> Sh() const;
|
||||
//- Return the heat release rate
|
||||
virtual tmp<volScalarField> Qdot() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -105,9 +105,9 @@ Foam::ReactingPhaseModel<BasePhaseModel, ReactionType>::R
|
||||
|
||||
template<class BasePhaseModel, class ReactionType>
|
||||
Foam::tmp<Foam::volScalarField>
|
||||
Foam::ReactingPhaseModel<BasePhaseModel, ReactionType>::Sh() const
|
||||
Foam::ReactingPhaseModel<BasePhaseModel, ReactionType>::Qdot() const
|
||||
{
|
||||
return reaction_->Sh();
|
||||
return reaction_->Qdot();
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -87,8 +87,8 @@ public:
|
||||
volScalarField& Yi
|
||||
) const;
|
||||
|
||||
//- Return the reacton heat source
|
||||
virtual tmp<volScalarField> Sh() const;
|
||||
//- Return heat release rate
|
||||
virtual tmp<volScalarField> Qdot() const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user