singlePhaseTransportModel.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-2016 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::singlePhaseTransportModel
28 
29 Description
30  A simple single-phase transport model based on viscosityModel.
31 
32  Used by the incompressible single-phase solvers like simpleFoam,
33  pimpleFoam etc.
34 
35 SourceFiles
36  singlePhaseTransportModel.C
37 
38 \*---------------------------------------------------------------------------*/
39 
40 #ifndef singlePhaseTransportModel_H
41 #define singlePhaseTransportModel_H
42 
44 #include "IOdictionary.H"
45 #include "autoPtr.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 
52 class viscosityModel;
53 
54 /*---------------------------------------------------------------------------*\
55  Class singlePhaseTransportModel Declaration
56 \*---------------------------------------------------------------------------*/
57 
59 :
60  public IOdictionary,
61  public transportModel
62 {
63  // Private Data
64 
65  autoPtr<viscosityModel> viscosityModelPtr_;
66 
67 
68  // Private Member Functions
69 
70  //- No copy construct
72 
73  //- No copy assignment
74  void operator=(const singlePhaseTransportModel&) = delete;
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName("singlePhaseTransportModel");
81 
82 
83  // Constructors
84 
85  //- Construct from components
87  (
88  const volVectorField& U,
89  const surfaceScalarField& phi
90  );
91 
92 
93  //- Destructor
95 
96 
97  // Member Functions
98 
99  //- Return the laminar viscosity
100  virtual tmp<volScalarField> nu() const;
101 
102  //- Return the laminar viscosity for patch
103  virtual tmp<scalarField> nu(const label patchi) const;
104 
105  //- Correct the laminar viscosity
106  virtual void correct();
107 
108  //- Read transportProperties dictionary
109  virtual bool read();
110 };
111 
112 
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 
115 } // End namespace Foam
116 
117 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 
119 #endif
120 
121 // ************************************************************************* //
Foam::IOdictionary
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Definition: IOdictionary.H:54
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::singlePhaseTransportModel
A simple single-phase transport model based on viscosityModel.
Definition: singlePhaseTransportModel.H:57
Foam::singlePhaseTransportModel::read
virtual bool read()
Read transportProperties dictionary.
Definition: singlePhaseTransportModel.C:91
phi
surfaceScalarField & phi
Definition: setRegionFluidFields.H:8
transportModel.H
Foam::singlePhaseTransportModel::TypeName
TypeName("singlePhaseTransportModel")
Runtime type information.
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::transportModel
Base-class for all transport models used by the incompressible turbulence models.
Definition: transportModel.H:53
IOdictionary.H
Foam::autoPtr
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition: HashPtrTable.H:53
U
U
Definition: pEqn.H:72
Foam::singlePhaseTransportModel::nu
virtual tmp< volScalarField > nu() const
Return the laminar viscosity.
Definition: singlePhaseTransportModel.C:72
Foam::singlePhaseTransportModel::~singlePhaseTransportModel
virtual ~singlePhaseTransportModel()
Destructor.
Definition: singlePhaseTransportModel.C:65
Foam::singlePhaseTransportModel::correct
virtual void correct()
Correct the laminar viscosity.
Definition: singlePhaseTransportModel.C:85
Foam::GeometricField< vector, fvPatchField, volMesh >
autoPtr.H