1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 OpenCFD Ltd.
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::cyclicFvsPatchField
29 Foam::cyclicFvsPatchField
34 \*---------------------------------------------------------------------------*/
36 #ifndef cyclicFvsPatchField_H
37 #define cyclicFvsPatchField_H
39 #include "coupledFvsPatchField.H"
40 #include "cyclicFvPatch.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 /*---------------------------------------------------------------------------*\
48 Class cyclicFvsPatch Declaration
49 \*---------------------------------------------------------------------------*/
52 class cyclicFvsPatchField
54 public coupledFvsPatchField<Type>
58 //- Local reference cast into the cyclic patch
59 const cyclicFvPatch& cyclicPatch_;
64 //- Runtime type information
65 TypeName(cyclicFvPatch::typeName_());
70 //- Construct from patch and internal field
74 const DimensionedField<Type, surfaceMesh>&
77 //- Construct from patch, internal field and dictionary
81 const DimensionedField<Type, surfaceMesh>&,
85 //- Construct by mapping given cyclicFvsPatchField onto a new patch
88 const cyclicFvsPatchField<Type>&,
90 const DimensionedField<Type, surfaceMesh>&,
91 const fvPatchFieldMapper&
97 const cyclicFvsPatchField<Type>&
100 //- Construct and return a clone
101 virtual tmp<fvsPatchField<Type> > clone() const
103 return tmp<fvsPatchField<Type> >
105 new cyclicFvsPatchField<Type>(*this)
109 //- Construct as copy setting internal field reference
112 const cyclicFvsPatchField<Type>&,
113 const DimensionedField<Type, surfaceMesh>&
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 cyclicFvsPatchField<Type>(*this, iF)
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
132 } // End namespace Foam
134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137 # include "cyclicFvsPatchField.C"
140 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
144 // ************************************************************************* //