1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
7 -------------------------------------------------------------------------------
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
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
26 Foam::emptyFvPatchField
29 Foam::emptyFvPatchField
34 \*---------------------------------------------------------------------------*/
36 #ifndef emptyFvPatchField_H
37 #define emptyFvPatchField_H
39 #include "fvPatchField.H"
40 #include "emptyFvPatch.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class emptyFvPatch Declaration
49 \*---------------------------------------------------------------------------*/
52 class emptyFvPatchField
54 public fvPatchField<Type>
59 //- Runtime type information
60 TypeName(emptyFvPatch::typeName_());
65 //- Construct from patch and internal field
69 const DimensionedField<Type, volMesh>&
72 //- Construct from patch, internal field and dictionary
76 const DimensionedField<Type, volMesh>&,
80 //- Construct by mapping given emptyFvPatchField onto a new patch
83 const emptyFvPatchField<Type>&,
85 const DimensionedField<Type, volMesh>&,
86 const fvPatchFieldMapper&
92 const emptyFvPatchField<Type>&
95 //- Construct and return a clone
96 virtual tmp<fvPatchField<Type> > clone() const
98 return tmp<fvPatchField<Type> >
100 new emptyFvPatchField<Type>(*this)
104 //- Construct as copy setting internal field reference
107 const emptyFvPatchField<Type>&,
108 const DimensionedField<Type, volMesh>&
111 //- Construct and return a clone setting internal field reference
112 virtual tmp<fvPatchField<Type> > clone
114 const DimensionedField<Type, volMesh>& iF
117 return tmp<fvPatchField<Type> >
119 new emptyFvPatchField<Type>(*this, iF)
128 //- Map (and resize as needed) from self given a mapping object
131 const fvPatchFieldMapper&
135 //- Reverse map the given fvPatchField onto this fvPatchField
138 const fvPatchField<Type>&,
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
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
156 const tmp<scalarField>&
159 return tmp<Field<Type> >(new Field<Type>(0));
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
166 const tmp<scalarField>&
169 return tmp<Field<Type> >(new Field<Type>(0));
172 //- Return the matrix diagonal coefficients corresponding to the
173 // evaluation of the gradient of this patchField
174 tmp<Field<Type> > gradientInternalCoeffs() const
176 return tmp<Field<Type> >(new Field<Type>(0));
179 //- Return the matrix source coefficients corresponding to the
180 // evaluation of the gradient of this patchField
181 tmp<Field<Type> > gradientBoundaryCoeffs() const
183 return tmp<Field<Type> >(new Field<Type>(0));
188 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
190 } // End namespace Foam
192 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
195 # include "emptyFvPatchField.C"
198 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
202 // ************************************************************************* //