OpenFOAM: API Guide
v2112
The open source CFD toolbox
LESeddyViscosity.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-2017 OpenFOAM Foundation
9
Copyright (C) 2016-2021 OpenCFD Ltd.
10
-------------------------------------------------------------------------------
11
License
12
This file is part of OpenFOAM.
13
14
OpenFOAM is free software: you can redistribute it and/or modify it
15
under the terms of the GNU General Public License as published by
16
the Free Software Foundation, either version 3 of the License, or
17
(at your option) any later version.
18
19
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22
for more details.
23
24
You should have received a copy of the GNU General Public License
25
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27
\*---------------------------------------------------------------------------*/
28
29
#include "
LESeddyViscosity.H
"
30
31
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32
33
namespace
Foam
34
{
35
namespace
LESModels
36
{
37
38
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
39
40
template
<
class
BasicTurbulenceModel>
41
LESeddyViscosity<BasicTurbulenceModel>::LESeddyViscosity
42
(
43
const
word
&
type
,
44
const
alphaField
&
alpha
,
45
const
rhoField
&
rho
,
46
const
volVectorField
&
U
,
47
const
surfaceScalarField
& alphaRhoPhi,
48
const
surfaceScalarField
&
phi
,
49
const
transportModel
& transport,
50
const
word
& propertiesName
51
)
52
:
53
eddyViscosity<LESModel<BasicTurbulenceModel>
>
54
(
55
type
,
56
alpha
,
57
rho
,
58
U
,
59
alphaRhoPhi,
60
phi
,
61
transport,
62
propertiesName
63
)
64
{}
65
66
67
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
68
69
template
<
class
BasicTurbulenceModel>
70
bool
LESeddyViscosity<BasicTurbulenceModel>::read
()
71
{
72
if
(
eddyViscosity
<
LESModel<BasicTurbulenceModel>
>::
read
())
73
{
74
return
true
;
75
}
76
77
return
false
;
78
}
79
80
81
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
82
83
}
// End namespace LESModels
84
}
// End namespace Foam
85
86
// ************************************************************************* //
Foam::word
A class for handling words, derived from Foam::string.
Definition:
word.H:65
Foam::constant::atomic::alpha
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Definition:
readThermalProperties.H:212
LESeddyViscosity.H
Foam::read
bool read(const char *buf, int32_t &val)
Same as readInt32.
Definition:
int32.H:108
Foam::LESModels::LESeddyViscosity::read
virtual bool read()
Read model coefficients if they have changed.
Definition:
LESeddyViscosity.C:70
Foam::LESModels::LESeddyViscosity::transportModel
BasicTurbulenceModel::transportModel transportModel
Definition:
LESeddyViscosity.H:75
rho
rho
Definition:
readInitialConditions.H:88
phi
surfaceScalarField & phi
Definition:
setRegionFluidFields.H:8
Foam
Namespace for OpenFOAM.
Definition:
atmBoundaryLayer.C:33
Foam::LESModels::LESeddyViscosity::rhoField
BasicTurbulenceModel::rhoField rhoField
Definition:
LESeddyViscosity.H:74
U
U
Definition:
pEqn.H:72
Foam::type
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
Definition:
MSwindows.C:590
Foam::eddyViscosity
Eddy viscosity turbulence model base class.
Definition:
eddyViscosity.H:55
Foam::LESModel
Templated abstract base class for LES SGS models.
Definition:
LESModel.H:59
Foam::GeometricField< vector, fvPatchField, volMesh >
Foam::LESModels::LESeddyViscosity::alphaField
BasicTurbulenceModel::alphaField alphaField
Definition:
LESeddyViscosity.H:73
src
TurbulenceModels
turbulenceModels
LES
LESeddyViscosity
LESeddyViscosity.C
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.