uniformDiffusivity.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-2012 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
26Class
27 Foam::uniformDiffusivity
28
29Description
30 Uniform uniform finite volume mesh motion diffusivity.
31
32SourceFiles
33 uniformDiffusivity.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef uniformDiffusivity_H
38#define uniformDiffusivity_H
39
40#include "motionDiffusivity.H"
41#include "surfaceFields.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48/*---------------------------------------------------------------------------*\
49 Class uniformDiffusivity Declaration
50\*---------------------------------------------------------------------------*/
53:
55{
56
57protected:
58
59 // Protected data
62
63
64private:
65
66 // Private Member Functions
67
68 //- No copy construct
70
71 //- No copy assignment
72 void operator=(const uniformDiffusivity&) = delete;
73
74
75public:
76
77 //- Runtime type information
78 TypeName("uniform");
79
80
81 // Constructors
82
83 //- Construct for the given fvMesh and data Istream
84 uniformDiffusivity(const fvMesh& mesh, Istream& mdData);
85
86
87 //- Destructor
88 virtual ~uniformDiffusivity();
89
90
91 // Member Functions
92
93 //- Return diffusivity field
95 {
96 return faceDiffusivity_;
97 }
98
99 //- Do not correct the motion diffusivity
100 virtual void correct()
101 {}
102};
103
104
105// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106
107} // End namespace Foam
108
109// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110
111#endif
112
113// ************************************************************************* //
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:64
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:91
Abstract base class for cell-centre mesh motion diffusivity.
const fvMesh & mesh() const
Return reference to the mesh.
A class for managing temporary objects.
Definition: tmp.H:65
Uniform uniform finite volume mesh motion diffusivity.
surfaceScalarField faceDiffusivity_
virtual tmp< surfaceScalarField > operator()() const
Return diffusivity field.
virtual ~uniformDiffusivity()
Destructor.
virtual void correct()
Do not correct the motion diffusivity.
TypeName("uniform")
Runtime type information.
Namespace for OpenFOAM.
Foam::surfaceFields.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73