Skip to content
Snippets Groups Projects
Commit ce27420e authored by Henry's avatar Henry
Browse files

combustionModel: Change the base turbulenceModel to compressibleTurbulenceModel

to allow combustionModel to be used with more general forms of multi-phase
parent 0a6814ee
Branches
Tags
No related merge requests found
......@@ -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?
......
......@@ -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;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment