TurbulenceModels: Separate template functions into .C files
This commit is contained in:
parent
c78d695494
commit
3792d0a9b1
4 changed files with 135 additions and 26 deletions
|
|
@ -0,0 +1,60 @@
|
|||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
|
||||
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "turbulentFluidThermoModel.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
namespace compressible
|
||||
{
|
||||
template<class BasicCompressibleTurbulenceModel>
|
||||
autoPtr<BasicCompressibleTurbulenceModel> New
|
||||
(
|
||||
const volScalarField& rho,
|
||||
const volVectorField& U,
|
||||
const surfaceScalarField& phi,
|
||||
const typename BasicCompressibleTurbulenceModel::transportModel&
|
||||
transport,
|
||||
const word& propertiesName
|
||||
)
|
||||
{
|
||||
return BasicCompressibleTurbulenceModel::New
|
||||
(
|
||||
geometricOneField(),
|
||||
rho,
|
||||
U,
|
||||
phi,
|
||||
phi,
|
||||
transport,
|
||||
propertiesName
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
@ -35,6 +35,7 @@ Description
|
|||
based on the standard laminar transport package.
|
||||
|
||||
SourceFiles
|
||||
turbulentFluidThermoModel.C
|
||||
turbulentFluidThermoModels.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
|
@ -70,23 +71,17 @@ namespace Foam
|
|||
const typename BasicCompressibleTurbulenceModel::transportModel&
|
||||
transport,
|
||||
const word& propertiesName = turbulenceModel::propertiesName
|
||||
)
|
||||
{
|
||||
return BasicCompressibleTurbulenceModel::New
|
||||
(
|
||||
geometricOneField(),
|
||||
rho,
|
||||
U,
|
||||
phi,
|
||||
phi,
|
||||
transport,
|
||||
propertiesName
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifdef NoRepository
|
||||
# include "turbulentFluidThermoModel.C"
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -0,0 +1,59 @@
|
|||
/*---------------------------------------------------------------------------*\
|
||||
========= |
|
||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||
\\ / O peration |
|
||||
\\ / A nd | Copyright (C) 2015 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
This file is part of OpenFOAM.
|
||||
|
||||
OpenFOAM is free software: you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
||||
for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
||||
#include "turbulentTransportModel.H"
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
namespace Foam
|
||||
{
|
||||
namespace incompressible
|
||||
{
|
||||
template<class BasicCompressibleTurbulenceModel>
|
||||
autoPtr<BasicCompressibleTurbulenceModel> New
|
||||
(
|
||||
const volVectorField& U,
|
||||
const surfaceScalarField& phi,
|
||||
const typename BasicCompressibleTurbulenceModel::transportModel&
|
||||
transport,
|
||||
const word& propertiesName
|
||||
)
|
||||
{
|
||||
return BasicCompressibleTurbulenceModel::New
|
||||
(
|
||||
geometricOneField(),
|
||||
geometricOneField(),
|
||||
U,
|
||||
phi,
|
||||
phi,
|
||||
transport,
|
||||
propertiesName
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
|
|
@ -35,6 +35,7 @@ Description
|
|||
based on the standard laminar transport package.
|
||||
|
||||
SourceFiles
|
||||
turbulentTransportModel.C
|
||||
turbulentTransportModels.C
|
||||
|
||||
\*---------------------------------------------------------------------------*/
|
||||
|
|
@ -66,23 +67,17 @@ namespace Foam
|
|||
const typename BasicCompressibleTurbulenceModel::transportModel&
|
||||
transport,
|
||||
const word& propertiesName = turbulenceModel::propertiesName
|
||||
)
|
||||
{
|
||||
return BasicCompressibleTurbulenceModel::New
|
||||
(
|
||||
geometricOneField(),
|
||||
geometricOneField(),
|
||||
U,
|
||||
phi,
|
||||
phi,
|
||||
transport,
|
||||
propertiesName
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#ifdef NoRepository
|
||||
# include "turbulentTransportModel.C"
|
||||
#endif
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue