Fix tutorials: coupled/conjugateHeatFoam/conjugateCavity: fix Allrun file
[OpenFOAM-1.6-ext.git] / src / finiteVolume / fields / fvsPatchFields / constraint / cyclicGgi / cyclicGgiFvsPatchField.H
blobb5b80d409cdfbe2d7d481a227a5679bd3da2e9ec
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
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     cyclicGgiFvsPatchField
28 Description
29     Non-matching cyclic generalized grid interface patch field.
31 Author
32     Martin Beaudoin, Hydro-Quebec, (2008)
34 Contributor
35     Hrvoje Jasak, Wikki Ltd.
37 SourceFiles
38     cyclicGgiFvsPatchField.C
40 \*---------------------------------------------------------------------------*/
42 #ifndef cyclicGgiFvsPatchField_H
43 #define cyclicGgiFvsPatchField_H
45 #include "coupledFvsPatchField.H"
46 #include "cyclicGgiFvPatch.H"
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 namespace Foam
53 /*---------------------------------------------------------------------------*\
54                       Class cyclicGgiFvsPatchField Declaration
55 \*---------------------------------------------------------------------------*/
57 template<class Type>
58 class cyclicGgiFvsPatchField
60     public coupledFvsPatchField<Type>
62     // Private data
64         //- Local reference cast into the cyclicGgi patch
65         const cyclicGgiFvPatch& cyclicGgiPatch_;
68 public:
70     //- Runtime type information
71     TypeName(cyclicGgiFvPatch::typeName_());
74     // Constructors
76         //- Construct from patch and internal field
77         cyclicGgiFvsPatchField
78         (
79             const fvPatch&,
80             const DimensionedField<Type, surfaceMesh>&
81         );
83         //- Construct from patch, internal field and dictionary
84         cyclicGgiFvsPatchField
85         (
86             const fvPatch&,
87             const DimensionedField<Type, surfaceMesh>&,
88             const dictionary&
89         );
91         //- Construct by mapping given cyclicGgiFvsPatchField onto a new patch
92         cyclicGgiFvsPatchField
93         (
94             const cyclicGgiFvsPatchField<Type>&,
95             const fvPatch&,
96             const DimensionedField<Type, surfaceMesh>&,
97             const fvPatchFieldMapper&
98         );
100         //- Construct as copy setting internal field reference
101         cyclicGgiFvsPatchField
102         (
103             const cyclicGgiFvsPatchField<Type>&,
104             const DimensionedField<Type, surfaceMesh>&
105         );
107         //- Construct and return a clone
108         virtual tmp<fvsPatchField<Type> > clone() const
109         {
110             return tmp<fvsPatchField<Type> >
111             (
112                 new cyclicGgiFvsPatchField<Type>(*this)
113             );
114         }
116         //- Construct and return a clone setting internal field reference
117         virtual tmp<fvsPatchField<Type> > clone
118         (
119             const DimensionedField<Type, surfaceMesh>& iF
120         ) const
121         {
122             return tmp<fvsPatchField<Type> >
123             (
124                 new cyclicGgiFvsPatchField<Type>(*this, iF)
125             );
126         }
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 } // End namespace Foam
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 #ifdef NoRepository
137 #   include "cyclicGgiFvsPatchField.C"
138 #endif
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
142 #endif
144 // ************************************************************************* //