transportModel.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) 2011-2013 OpenFOAM Foundation
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::transportModel
28 
29 Description
30  Base-class for all transport models used by the incompressible turbulence
31  models.
32 
33 SourceFiles
34  transportModel.C
35 
36 \*---------------------------------------------------------------------------*/
37 
38 #ifndef transportModel_H
39 #define transportModel_H
40 
41 #include "primitiveFieldsFwd.H"
42 #include "volFieldsFwd.H"
43 #include "surfaceFieldsFwd.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class transportModel Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class transportModel
55 {
56  // Private Member Functions
57 
58  //- No copy construct
59  transportModel(const transportModel&) = delete;
60 
61  //- No copy assignment
62  void operator=(const transportModel&) = delete;
63 
64 
65 public:
66 
67  //- Runtime type information
68  TypeName("transportModel");
69 
70 
71  // Constructors
72 
73  //- Construct from components
75  ();
76 
77 
78  //- Destructor
79  virtual ~transportModel();
80 
81 
82  // Member Functions
83 
84  //- Return the laminar viscosity
85  virtual tmp<volScalarField> nu() const = 0;
86 
87  //- Return the laminar viscosity for patch
88  virtual tmp<scalarField> nu(const label patchi) const = 0;
89 
90  //- Correct the laminar viscosity
91  virtual void correct() = 0;
92 
93  //- Read transportProperties dictionary
94  virtual bool read() = 0;
95 };
96 
97 
98 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99 
100 } // End namespace Foam
101 
102 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103 
104 #endif
105 
106 // ************************************************************************* //
Forwards and collection of common volume field types.
transportModel()
Construct from components.
Forward declarations of the specialisations of Field<T> for scalar, vector and tensor.
virtual void correct()=0
Correct the laminar viscosity.
TypeName("transportModel")
Runtime type information.
virtual ~transportModel()
Destructor.
virtual tmp< volScalarField > nu() const =0
Return the laminar viscosity.
Base-class for all transport models used by the incompressible turbulence models. ...
virtual bool read()=0
Read transportProperties dictionary.
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Namespace for OpenFOAM.