mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
combustionModel: Change the base turbulenceModel to compressibleTurbulenceModel
to allow combustionModel to be used with more general forms of multi-phase
This commit is contained in:
@ -65,7 +65,7 @@ protected:
|
|||||||
// Protected data
|
// Protected data
|
||||||
|
|
||||||
//- Reference to the turbulence model
|
//- Reference to the turbulence model
|
||||||
compressible::turbulenceModel* turbulencePtr_;
|
compressibleTurbulenceModel* turbulencePtr_;
|
||||||
|
|
||||||
//- Reference to the mesh database
|
//- Reference to the mesh database
|
||||||
const fvMesh& mesh_;
|
const fvMesh& mesh_;
|
||||||
@ -118,12 +118,12 @@ public:
|
|||||||
virtual tmp<volScalarField> rho() const = 0;
|
virtual tmp<volScalarField> rho() const = 0;
|
||||||
|
|
||||||
//- Return access to turbulence
|
//- Return access to turbulence
|
||||||
inline const compressible::turbulenceModel& turbulence() const;
|
inline const compressibleTurbulenceModel& turbulence() const;
|
||||||
|
|
||||||
//- Set turbulence
|
//- Set turbulence
|
||||||
inline void setTurbulence
|
inline void setTurbulence
|
||||||
(
|
(
|
||||||
compressible::turbulenceModel& turbModel
|
compressibleTurbulenceModel& turbModel
|
||||||
);
|
);
|
||||||
|
|
||||||
//- Is combustion active?
|
//- Is combustion active?
|
||||||
|
|||||||
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -41,11 +41,11 @@ inline const Foam::surfaceScalarField& Foam::combustionModel::phi() const
|
|||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
(
|
(
|
||||||
"const Foam::compressible::turbulenceModel& "
|
"const Foam::compressibleTurbulenceModel& "
|
||||||
"Foam::combustionModel::turbulence() const "
|
"Foam::combustionModel::turbulence() const "
|
||||||
) << "turbulencePtr_ is empty. Please use "
|
) << "turbulencePtr_ is empty. Please use "
|
||||||
<< "combustionModel::setTurbulence "
|
<< "combustionModel::setTurbulence "
|
||||||
<< "(compressible::turbulenceModel& )"
|
<< "(compressibleTurbulenceModel& )"
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
|
|
||||||
return turbulencePtr_->phi();
|
return turbulencePtr_->phi();
|
||||||
@ -53,7 +53,7 @@ inline const Foam::surfaceScalarField& Foam::combustionModel::phi() const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline const Foam::compressible::turbulenceModel&
|
inline const Foam::compressibleTurbulenceModel&
|
||||||
Foam::combustionModel::turbulence() const
|
Foam::combustionModel::turbulence() const
|
||||||
{
|
{
|
||||||
if (turbulencePtr_)
|
if (turbulencePtr_)
|
||||||
@ -64,11 +64,11 @@ Foam::combustionModel::turbulence() const
|
|||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
(
|
(
|
||||||
"const Foam::compressible::turbulenceModel& "
|
"const Foam::compressibleTurbulenceModel& "
|
||||||
"Foam::combustionModel::turbulence() const "
|
"Foam::combustionModel::turbulence() const "
|
||||||
) << "turbulencePtr_ is empty. Please use "
|
) << "turbulencePtr_ is empty. Please use "
|
||||||
<< "combustionModel::setTurbulence "
|
<< "combustionModel::setTurbulence "
|
||||||
<< "(compressible::turbulenceModel& )"
|
<< "(compressibleTurbulenceModel& )"
|
||||||
<< abort(FatalError);
|
<< abort(FatalError);
|
||||||
|
|
||||||
return *turbulencePtr_;
|
return *turbulencePtr_;
|
||||||
@ -84,7 +84,7 @@ inline const Foam::Switch& Foam::combustionModel::active() const
|
|||||||
|
|
||||||
inline void Foam::combustionModel::setTurbulence
|
inline void Foam::combustionModel::setTurbulence
|
||||||
(
|
(
|
||||||
compressible::turbulenceModel& turbModel
|
compressibleTurbulenceModel& turbModel
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
turbulencePtr_ = &turbModel;
|
turbulencePtr_ = &turbModel;
|
||||||
|
|||||||
Reference in New Issue
Block a user