initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / finiteVolume / fields / fvPatchFields / constraint / empty / emptyFvPatchField.H
blob34766ab8f08015caff433a60149544bfa548f2d3
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 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::emptyFvPatchField
28 Description
29     Foam::emptyFvPatchField
31 SourceFiles
32     emptyFvPatchField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef emptyFvPatchField_H
37 #define emptyFvPatchField_H
39 #include "fvPatchField.H"
40 #include "emptyFvPatch.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 /*---------------------------------------------------------------------------*\
48                          Class emptyFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
51 template<class Type>
52 class emptyFvPatchField
54     public fvPatchField<Type>
57 public:
59     //- Runtime type information
60     TypeName(emptyFvPatch::typeName_());
63     // Constructors
65         //- Construct from patch and internal field
66         emptyFvPatchField
67         (
68             const fvPatch&,
69             const DimensionedField<Type, volMesh>&
70         );
72         //- Construct from patch, internal field and dictionary
73         emptyFvPatchField
74         (
75             const fvPatch&,
76             const DimensionedField<Type, volMesh>&,
77             const dictionary&
78         );
80         //- Construct by mapping given emptyFvPatchField onto a new patch
81         emptyFvPatchField
82         (
83             const emptyFvPatchField<Type>&,
84             const fvPatch&,
85             const DimensionedField<Type, volMesh>&,
86             const fvPatchFieldMapper&
87         );
89         //- Construct as copy
90         emptyFvPatchField
91         (
92             const emptyFvPatchField<Type>&
93         );
95         //- Construct and return a clone
96         virtual tmp<fvPatchField<Type> > clone() const
97         {
98             return tmp<fvPatchField<Type> >
99             (
100                 new emptyFvPatchField<Type>(*this)
101             );
102         }
104         //- Construct as copy setting internal field reference
105         emptyFvPatchField
106         (
107             const emptyFvPatchField<Type>&,
108             const DimensionedField<Type, volMesh>&
109         );
111         //- Construct and return a clone setting internal field reference
112         virtual tmp<fvPatchField<Type> > clone
113         (
114             const DimensionedField<Type, volMesh>& iF
115         ) const
116         {
117             return tmp<fvPatchField<Type> >
118             (
119                 new emptyFvPatchField<Type>(*this, iF)
120             );
121         }
124     // Member functions
126         // Mapping functions
128             //- Map (and resize as needed) from self given a mapping object
129             virtual void autoMap
130             (
131                 const fvPatchFieldMapper&
132             )
133             {}
135             //- Reverse map the given fvPatchField onto this fvPatchField
136             virtual void rmap
137             (
138                 const fvPatchField<Type>&,
139                 const labelList&
140             )
141             {}
144         // Evaluation functions
146             //- Update the coefficients associated with the patch field
147             //  This only checks to see the case is actually 1D or 2D
148             //  for which this boundary condition is valid
149             void updateCoeffs();
152             //- Return the matrix diagonal coefficients corresponding to the
153             //  evaluation of the value of this patchField with given weights
154             virtual tmp<Field<Type> > valueInternalCoeffs
155             (
156                 const tmp<scalarField>&
157             ) const
158             {
159                 return tmp<Field<Type> >(new Field<Type>(0));
160             }
162             //- Return the matrix source coefficients corresponding to the
163             //  evaluation of the value of this patchField with given weights
164             virtual tmp<Field<Type> > valueBoundaryCoeffs
165             (
166                 const tmp<scalarField>&
167             ) const
168             {
169                 return tmp<Field<Type> >(new Field<Type>(0));
170             }
172             //- Return the matrix diagonal coefficients corresponding to the
173             //  evaluation of the gradient of this patchField
174             tmp<Field<Type> > gradientInternalCoeffs() const
175             {
176                 return tmp<Field<Type> >(new Field<Type>(0));
177             }
179             //- Return the matrix source coefficients corresponding to the
180             //  evaluation of the gradient of this patchField
181             tmp<Field<Type> > gradientBoundaryCoeffs() const
182             {
183                 return tmp<Field<Type> >(new Field<Type>(0));
184             }
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190 } // End namespace Foam
192 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
194 #ifdef NoRepository
195 #   include "emptyFvPatchField.C"
196 #endif
198 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
200 #endif
202 // ************************************************************************* //