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 -------------------------------------------------------------------------------
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::uniformDiffusivity
28 
29 Description
30  Uniform uniform finite volume mesh motion diffusivity.
31 
32 SourceFiles
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 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class uniformDiffusivity Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
54  public motionDiffusivity
55 {
56 
57 protected:
58 
59  // Protected data
60 
62 
63 
64 private:
65 
66  // Private Member Functions
67 
68  //- No copy construct
69  uniformDiffusivity(const uniformDiffusivity&) = delete;
70 
71  //- No copy assignment
72  void operator=(const uniformDiffusivity&) = delete;
73 
74 
75 public:
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
94  virtual tmp<surfaceScalarField> operator()() const
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 // ************************************************************************* //
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::motionDiffusivity
Abstract base class for cell-centre mesh motion diffusivity.
Definition: motionDiffusivity.H:51
Foam::uniformDiffusivity::TypeName
TypeName("uniform")
Runtime type information.
Foam::uniformDiffusivity
Uniform uniform finite volume mesh motion diffusivity.
Definition: uniformDiffusivity.H:51
surfaceFields.H
Foam::surfaceFields.
Foam::motionDiffusivity::mesh
const fvMesh & mesh() const
Return reference to the mesh.
Definition: motionDiffusivity.H:102
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition: Istream.H:61
Foam::uniformDiffusivity::operator()
virtual tmp< surfaceScalarField > operator()() const
Return diffusivity field.
Definition: uniformDiffusivity.H:93
Foam::uniformDiffusivity::faceDiffusivity_
surfaceScalarField faceDiffusivity_
Definition: uniformDiffusivity.H:60
Foam::fvMesh
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:85
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::uniformDiffusivity::correct
virtual void correct()
Do not correct the motion diffusivity.
Definition: uniformDiffusivity.H:99
motionDiffusivity.H
Foam::GeometricField< scalar, fvsPatchField, surfaceMesh >
Foam::uniformDiffusivity::~uniformDiffusivity
virtual ~uniformDiffusivity()
Destructor.
Definition: uniformDiffusivity.C:73