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 cyclicGgiFvsPatchField
29 Non-matching cyclic generalized grid interface patch field.
32 Martin Beaudoin, Hydro-Quebec, (2008)
35 Hrvoje Jasak, Wikki Ltd.
38 cyclicGgiFvsPatchField.C
40 \*---------------------------------------------------------------------------*/
42 #ifndef cyclicGgiFvsPatchField_H
43 #define cyclicGgiFvsPatchField_H
45 #include "coupledFvsPatchField.H"
46 #include "cyclicGgiFvPatch.H"
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
53 /*---------------------------------------------------------------------------*\
54 Class cyclicGgiFvsPatchField Declaration
55 \*---------------------------------------------------------------------------*/
58 class cyclicGgiFvsPatchField
60 public coupledFvsPatchField<Type>
64 //- Local reference cast into the cyclicGgi patch
65 const cyclicGgiFvPatch& cyclicGgiPatch_;
70 //- Runtime type information
71 TypeName(cyclicGgiFvPatch::typeName_());
76 //- Construct from patch and internal field
77 cyclicGgiFvsPatchField
80 const DimensionedField<Type, surfaceMesh>&
83 //- Construct from patch, internal field and dictionary
84 cyclicGgiFvsPatchField
87 const DimensionedField<Type, surfaceMesh>&,
91 //- Construct by mapping given cyclicGgiFvsPatchField onto a new patch
92 cyclicGgiFvsPatchField
94 const cyclicGgiFvsPatchField<Type>&,
96 const DimensionedField<Type, surfaceMesh>&,
97 const fvPatchFieldMapper&
100 //- Construct as copy setting internal field reference
101 cyclicGgiFvsPatchField
103 const cyclicGgiFvsPatchField<Type>&,
104 const DimensionedField<Type, surfaceMesh>&
107 //- Construct and return a clone
108 virtual tmp<fvsPatchField<Type> > clone() const
110 return tmp<fvsPatchField<Type> >
112 new cyclicGgiFvsPatchField<Type>(*this)
116 //- Construct and return a clone setting internal field reference
117 virtual tmp<fvsPatchField<Type> > clone
119 const DimensionedField<Type, surfaceMesh>& iF
122 return tmp<fvsPatchField<Type> >
124 new cyclicGgiFvsPatchField<Type>(*this, iF)
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 } // End namespace Foam
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 # include "cyclicGgiFvsPatchField.C"
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 // ************************************************************************* //