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:
Henry 2015-06-07 18:51:36 +01:00
parent 320b8708c2
commit 57d75a691f
2 changed files with 10 additions and 10 deletions

View File

@ -65,7 +65,7 @@ protected:
// Protected data
//- Reference to the turbulence model
compressible::turbulenceModel* turbulencePtr_;
compressibleTurbulenceModel* turbulencePtr_;
//- Reference to the mesh database
const fvMesh& mesh_;
@ -118,12 +118,12 @@ public:
virtual tmp<volScalarField> rho() const = 0;
//- Return access to turbulence
inline const compressible::turbulenceModel& turbulence() const;
inline const compressibleTurbulenceModel& turbulence() const;
//- Set turbulence
inline void setTurbulence
(
compressible::turbulenceModel& turbModel
compressibleTurbulenceModel& turbModel
);
//- Is combustion active?

View File

@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2015 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
@ -41,11 +41,11 @@ inline const Foam::surfaceScalarField& Foam::combustionModel::phi() const
{
FatalErrorIn
(
"const Foam::compressible::turbulenceModel& "
"const Foam::compressibleTurbulenceModel& "
"Foam::combustionModel::turbulence() const "
) << "turbulencePtr_ is empty. Please use "
<< "combustionModel::setTurbulence "
<< "(compressible::turbulenceModel& )"
<< "(compressibleTurbulenceModel& )"
<< abort(FatalError);
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
{
if (turbulencePtr_)
@ -64,11 +64,11 @@ Foam::combustionModel::turbulence() const
{
FatalErrorIn
(
"const Foam::compressible::turbulenceModel& "
"const Foam::compressibleTurbulenceModel& "
"Foam::combustionModel::turbulence() const "
) << "turbulencePtr_ is empty. Please use "
<< "combustionModel::setTurbulence "
<< "(compressible::turbulenceModel& )"
<< "(compressibleTurbulenceModel& )"
<< abort(FatalError);
return *turbulencePtr_;
@ -84,7 +84,7 @@ inline const Foam::Switch& Foam::combustionModel::active() const
inline void Foam::combustionModel::setTurbulence
(
compressible::turbulenceModel& turbModel
compressibleTurbulenceModel& turbModel
)
{
turbulencePtr_ = &turbModel;