1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
13 the Free Software Foundation, either version 3 of the License, or
14 (at your 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, see <http://www.gnu.org/licenses/>.
25 Foam::nonuniformTransformCyclicFvPatchField
28 Foam::nonuniformTransformCyclicFvPatchField
31 nonuniformTransformCyclicFvPatchField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef nonuniformTransformCyclicFvPatchField_H
36 #define nonuniformTransformCyclicFvPatchField_H
38 #include "cyclicFvPatchField.H"
39 #include "nonuniformTransformCyclicFvPatch.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class nonuniformTransformCyclicFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
51 class nonuniformTransformCyclicFvPatchField
53 public cyclicFvPatchField<Type>
59 //- Runtime type information
60 TypeName(nonuniformTransformCyclicFvPatch::typeName_());
65 //- Construct from patch and internal field
66 nonuniformTransformCyclicFvPatchField
69 const DimensionedField<Type, volMesh>&
72 //- Construct from patch, internal field and dictionary
73 nonuniformTransformCyclicFvPatchField
76 const DimensionedField<Type, volMesh>&,
80 //- Construct by mapping given
81 // nonuniformTransformCyclicFvPatchField onto a new patch
82 nonuniformTransformCyclicFvPatchField
84 const nonuniformTransformCyclicFvPatchField<Type>&,
86 const DimensionedField<Type, volMesh>&,
87 const fvPatchFieldMapper&
91 nonuniformTransformCyclicFvPatchField
93 const nonuniformTransformCyclicFvPatchField<Type>&
96 //- Construct and return a clone
97 virtual tmp<fvPatchField<Type> > clone() const
99 return tmp<fvPatchField<Type> >
101 new nonuniformTransformCyclicFvPatchField<Type>(*this)
105 //- Construct as copy setting internal field reference
106 nonuniformTransformCyclicFvPatchField
108 const nonuniformTransformCyclicFvPatchField<Type>&,
109 const DimensionedField<Type, volMesh>&
112 //- Construct and return a clone setting internal field reference
113 virtual tmp<fvPatchField<Type> > clone
115 const DimensionedField<Type, volMesh>& iF
118 return tmp<fvPatchField<Type> >
120 new nonuniformTransformCyclicFvPatchField<Type>(*this, iF)
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace Foam
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
134 # include "nonuniformTransformCyclicFvPatchField.C"
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141 // ************************************************************************* //