initial commit for version 1.5.x patch release
[OpenFOAM-1.5.x.git] / src / fvMotionSolver / motionDiffusivity / file / fileDiffusivity.H
blobc2a2dc97a48c2c7b2a027225bfad908545a1abff
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2008 OpenCFD Ltd.
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::fileDiffusivity
28 Description
29     Motion diffusivity read from given file name.
31 SourceFiles
32     fileDiffusivity.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef fileDiffusivity_H
37 #define fileDiffusivity_H
39 #include "motionDiffusivity.H"
40 #include "surfaceFields.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 /*---------------------------------------------------------------------------*\
48                            Class fileDiffusivity Declaration
49 \*---------------------------------------------------------------------------*/
51 class fileDiffusivity
53     public motionDiffusivity
56 protected:
58     // Protected data
60         surfaceScalarField faceDiffusivity_;
63 private:
65     // Private Member Functions
67         //- Disallow default bitwise copy construct
68         fileDiffusivity(const fileDiffusivity&);
70         //- Disallow default bitwise assignment
71         void operator=(const fileDiffusivity&);
74 public:
76     //- Runtime type information
77     TypeName("file");
80     // Constructors
82         //- Construct for the given fvMotionSolver and data Istream
83         fileDiffusivity
84         (
85             const fvMotionSolver& mSolver,
86             Istream& mdData
87         );
90     // Destructor
92         virtual ~fileDiffusivity();
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 // ************************************************************************* //