Loading...
Searching...
No Matches
CompressibleTurbulenceModel.C
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2013-2016 OpenFOAM Foundation
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
29
30// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
31
32template<class TransportModel>
35(
36 const word& type,
38 const volScalarField& rho,
39 const volVectorField& U,
43 const word& propertiesName
44)
45:
47 <
52 >
53 (
54 alpha,
55 rho,
56 U,
58 phi,
61 )
62{}
63
64
65// * * * * * * * * * * * * * * * * * Selectors * * * * * * * * * * * * * * * //
66
67template<class TransportModel>
70(
71 const volScalarField& rho,
72 const volVectorField& U,
74 const transportModel& transport,
75 const word& propertiesName
76)
77{
79 (
80 static_cast<CompressibleTurbulenceModel*>(
82 <
87 >::New
88 (
90 rho,
91 U,
92 phi,
93 phi,
94 transport,
95 propertiesName
96 ).ptr())
97 );
98}
99
100
101// ************************************************************************* //
Templated abstract base class for single-phase compressible turbulence models.
CompressibleTurbulenceModel(const word &type, const geometricOneField &alpha, const volScalarField &rho, const volVectorField &U, const surfaceScalarField &alphaRhoPhi, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName)
Construct.
static autoPtr< CompressibleTurbulenceModel > New(const volScalarField &rho, const volVectorField &U, const surfaceScalarField &phi, const transportModel &transport, const word &propertiesName=turbulenceModel::propertiesName)
Return a reference to the selected turbulence model.
Templated abstract base class for turbulence models.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
Abstract base class for turbulence models (RAS, LES and laminar).
const volScalarField & rho() const
Return the density field.
virtual tmp< surfaceScalarField > phi() const
Return the volumetric flux field.
A class representing the concept of a GeometricField of 1 used to avoid unnecessary manipulations for...
Base-class for all transport models used by the incompressible turbulence models.
const volVectorField & U() const
Access function to velocity field.
static const word propertiesName
Default name of the turbulence properties dictionary.
const surfaceScalarField & alphaRhoPhi() const
Access function to phase flux field.
A class for handling words, derived from Foam::string.
Definition word.H:66
U
Definition pEqn.H:72
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField