1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-6 H. Jasak All rights reserved
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
29 Generalized grid interface patch field.
32 Hrvoje Jasak, Wikki Ltd. All rights reserved
37 \*---------------------------------------------------------------------------*/
39 #ifndef ggiFvsPatchField_H
40 #define ggiFvsPatchField_H
42 #include "coupledFvsPatchField.H"
43 #include "ggiFvPatch.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class ggiFvsPatchField Declaration
52 \*---------------------------------------------------------------------------*/
55 class ggiFvsPatchField
57 public coupledFvsPatchField<Type>
61 //- Local reference cast into the ggi patch
62 const ggiFvPatch& ggiPatch_;
67 //- Runtime type information
68 TypeName(ggiFvPatch::typeName_());
73 //- Construct from patch and internal field
77 const DimensionedField<Type, surfaceMesh>&
80 //- Construct from patch, internal field and dictionary
84 const DimensionedField<Type, surfaceMesh>&,
88 //- Construct by mapping given ggiFvsPatchField onto a new patch
91 const ggiFvsPatchField<Type>&,
93 const DimensionedField<Type, surfaceMesh>&,
94 const fvPatchFieldMapper&
97 //- Construct as copy setting internal field reference
100 const ggiFvsPatchField<Type>&,
101 const DimensionedField<Type, surfaceMesh>&
104 //- Construct and return a clone
105 virtual tmp<fvsPatchField<Type> > clone() const
107 return tmp<fvsPatchField<Type> >
109 new ggiFvsPatchField<Type>(*this)
113 //- Construct and return a clone setting internal field reference
114 virtual tmp<fvsPatchField<Type> > clone
116 const DimensionedField<Type, surfaceMesh>& iF
119 return tmp<fvsPatchField<Type> >
121 new ggiFvsPatchField<Type>(*this, iF)
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace Foam
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 # include "ggiFvsPatchField.C"
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 // ************************************************************************* //