Fix tutorials: typo in tutorials/viscoelastic/viscoelasticFluidFoam/S-MDCPP/constant...
[OpenFOAM-1.6-ext.git] / src / fvMotionSolver / motionDiffusivity / uniform / uniformDiffusivity.H
bloba3d6d31729d5a64922aac0555c24ec6d16c5b458
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software; you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation; either version 2 of the License, or (at your
14     option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     Foam::uniformDiffusivity
28 Description
29     Uniform uniform finite volume mesh motion diffusivity.
31 SourceFiles
32     uniformDiffusivity.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef uniformDiffusivity_H
37 #define uniformDiffusivity_H
39 #include "motionDiffusivity.H"
40 #include "surfaceFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 /*---------------------------------------------------------------------------*\
48                            Class uniformDiffusivity Declaration
49 \*---------------------------------------------------------------------------*/
51 class uniformDiffusivity
53     public motionDiffusivity
56 protected:
58     // Protected data
60         surfaceScalarField faceDiffusivity_;
63 private:
65     // Private Member Functions
67         //- Disallow default bitwise copy construct
68         uniformDiffusivity(const uniformDiffusivity&);
70         //- Disallow default bitwise assignment
71         void operator=(const uniformDiffusivity&);
74 public:
76     //- Runtime type information
77     TypeName("uniform");
80     // Constructors
82         //- Construct for the given fvMotionSolver and data Istream
83         uniformDiffusivity
84         (
85             const fvMotionSolver& mSolver,
86             Istream& mdData
87         );
90     // Destructor
92         virtual ~uniformDiffusivity();
95     // Member Functions
97         //- Return diffusivity field
98         virtual tmp<surfaceScalarField> operator()() const
99         {
100             return faceDiffusivity_;
101         }
103         //- Do not correct the motion diffusivity
104         virtual void correct()
105         {}
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 } // End namespace Foam
113 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 #endif
117 // ************************************************************************* //