Skip to content

Commit

Permalink
Removed second template parameter from YSLFM class
Browse files Browse the repository at this point in the history
  • Loading branch information
flameletFoam committed Sep 23, 2015
1 parent dec81eb commit 9ebf773
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 97 deletions.
36 changes: 18 additions & 18 deletions src/combustionModels/YSLFModel/YSLFModel.C
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ namespace combustionModels
{
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

template<class CombThermoType, class ThermoType>
YSLFModel<CombThermoType, ThermoType>::YSLFModel
template<class CombThermoType>
YSLFModel<CombThermoType>::YSLFModel
(
const word& modelType, const fvMesh& mesh
)
Expand Down Expand Up @@ -71,23 +71,23 @@ YSLFModel<CombThermoType, ThermoType>::YSLFModel

// * * * * * * * * * * * * * * * * Destructors * * * * * * * * * * * * * * * //

template<class CombThermoType, class ThermoType>
YSLFModel<CombThermoType, ThermoType>::~YSLFModel()
template<class CombThermoType>
YSLFModel<CombThermoType>::~YSLFModel()
{}

// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //

template<class CombThermoType, class ThermoType>
hashedWordList YSLFModel<CombThermoType, ThermoType>::tables()
template<class CombThermoType>
hashedWordList YSLFModel<CombThermoType>::tables()
{
hashedWordList tableNames = this->thermo().composition().species();
tableNames.append("he");

return tableNames;
}

template<class CombThermoType, class ThermoType>
void YSLFModel<CombThermoType, ThermoType>::correct()
template<class CombThermoType>
void YSLFModel<CombThermoType>::correct()
{
// limit the scalar dissipation rate to avoid instabilities at extinction
scalar chiLimiter = solver_.maxChi();
Expand Down Expand Up @@ -167,15 +167,15 @@ void YSLFModel<CombThermoType, ThermoType>::correct()
}
}

template<class CombThermoType, class ThermoType>
Switch YSLFModel<CombThermoType, ThermoType>::correctDensity()
template<class CombThermoType>
Switch YSLFModel<CombThermoType>::correctDensity()
{
return true;
}

template<class CombThermoType, class ThermoType>
template<class CombThermoType>
Foam::tmp<Foam::fvScalarMatrix>
YSLFModel<CombThermoType, ThermoType>::R
YSLFModel<CombThermoType>::R
(
volScalarField& Y
) const
Expand All @@ -184,9 +184,9 @@ YSLFModel<CombThermoType, ThermoType>::R
return tSu;
}

template<class CombThermoType, class ThermoType>
template<class CombThermoType>
Foam::tmp<Foam::volScalarField>
YSLFModel< CombThermoType, ThermoType>::Sh() const
YSLFModel< CombThermoType>::Sh() const
{
tmp<volScalarField> tSh
(
Expand All @@ -210,9 +210,9 @@ YSLFModel< CombThermoType, ThermoType>::Sh() const
return tSh;
}

template<class CombThermoType, class ThermoType>
template<class CombThermoType>
Foam::tmp<Foam::volScalarField>
YSLFModel< CombThermoType, ThermoType>::dQ() const
YSLFModel< CombThermoType>::dQ() const
{
tmp<volScalarField> tdQ
(
Expand All @@ -236,8 +236,8 @@ YSLFModel< CombThermoType, ThermoType>::dQ() const
return tdQ;
}

template<class CombThermoType, class ThermoType>
bool YSLFModel<CombThermoType, ThermoType>::read()
template<class CombThermoType>
bool YSLFModel<CombThermoType>::read()
{
if (CombThermoType::read())
{
Expand Down
2 changes: 1 addition & 1 deletion src/combustionModels/YSLFModel/YSLFModel.H
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ namespace combustionModels
Class YSLFModel Declaration
\*---------------------------------------------------------------------------*/

template<class CombThermoType, class ThermoType>
template<class CombThermoType>
class YSLFModel
:
public CombThermoType
Expand Down
3 changes: 1 addition & 2 deletions src/combustionModels/YSLFModel/YSLFModels.C
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,10 @@ namespace Foam
namespace combustionModels
{

makeCombustionTypesThermo
makeCombustionTypes
(
YSLFModel,
rhoThermoCombustion,
gasHThermoPhysics,
rhoCombustionModel
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

combustionModel YSLFModel<rhoThermoCombustion,gasHThermoPhysics>;
combustionModel YSLFModel<rhoThermoCombustion>;

active true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ FoamFile
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

combustionModel YSLFModel<rhoThermoCombustion,gasHThermoPhysics>;
combustionModel YSLFModel<rhoThermoCombustion>;

active true;

Expand Down
74 changes: 0 additions & 74 deletions tutorial/pilotedDiffusionFlame/ras/constant/polyMesh/boundary

This file was deleted.

0 comments on commit 9ebf773

Please sign in to comment.