laminar.H
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) 2020-2021 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
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 Class
27  Foam::regionModels::areaSurfaceFilmModels::laminar
28 
29 Description
30  Film laminar turbulence model.
31 
32 SourceFiles
33  laminar.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef regionFaModels_surfaceFilmModels_laminar_H
38 #define regionFaModels_surfaceFilmModels_laminar_H
39 
40 #include "filmTurbulenceModel.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 namespace regionModels
47 {
48 namespace areaSurfaceFilmModels
49 {
50 
51 /*---------------------------------------------------------------------------*\
52  Class laminar Declaration
53 \*---------------------------------------------------------------------------*/
54 
55 class laminar
56 :
57  public filmTurbulenceModel
58 {
59  // Private Member Functions
60 
61  //- No copy construct
62  laminar(const laminar&) = delete;
63 
64  //- No copy assignment
65  void operator=(const laminar&) = delete;
66 
67 
68 public:
69 
70  //- Runtime type information
71  TypeName("laminar");
72 
73 
74  // Constructors
75 
76  //- Construct from surface film model
78 
79 
80  //- Destructor
81  virtual ~laminar() = default;
82 
83 
84  // Member Functions
85 
86  // Turbulence
87 
88  //- Wall friction
90 
91  //- Return the film turbulence viscosity
92  virtual tmp<areaScalarField> mut() const;
93 
94  //- Return the source for the film momentum equation
95  virtual tmp<faVectorMatrix> Su(areaVectorField& U) const;
96 
97 
98  // Evaluation
99 
100  //- Correct/update the model
101  virtual void correct();
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace areaSurfaceFilmModels
108 } // End namespace regionModels
109 } // End namespace Foam
110 
111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 
113 #endif
114 
115 // ************************************************************************* //
dictionary dict
tmp< faVectorMatrix > wallFriction(areaVectorField &U) const
Wall friction.
Definition: laminar.C:82
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
TypeName("laminar")
Runtime type information.
virtual void correct()
Correct/update the model.
Definition: laminar.C:72
virtual tmp< faVectorMatrix > Su(areaVectorField &U) const
Return the source for the film momentum equation.
Definition: laminar.C:76
U
Definition: pEqn.H:72
virtual tmp< areaScalarField > mut() const
Return the film turbulence viscosity.
Definition: laminar.C:52
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Namespace for OpenFOAM.
Film laminar turbulence model.
Definition: laminar.H:50