Transferred copyright to the OpenFOAM Foundation
[OpenFOAM-2.0.x.git] / src / finiteVolume / fields / fvPatchFields / constraint / nonuniformTransformCyclic / nonuniformTransformCyclicFvPatchField.H
blob5d4468045d392d3873ac2af60a74fc07e26ceff9
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
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
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
19     for more details.
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/>.
24 Class
25     Foam::nonuniformTransformCyclicFvPatchField
27 Description
28     Foam::nonuniformTransformCyclicFvPatchField
30 SourceFiles
31     nonuniformTransformCyclicFvPatchField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef nonuniformTransformCyclicFvPatchField_H
36 #define nonuniformTransformCyclicFvPatchField_H
38 #include "cyclicFvPatchField.H"
39 #include "nonuniformTransformCyclicFvPatch.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 namespace Foam
46 /*---------------------------------------------------------------------------*\
47               Class nonuniformTransformCyclicFvPatch Declaration
48 \*---------------------------------------------------------------------------*/
50 template<class Type>
51 class nonuniformTransformCyclicFvPatchField
53     public cyclicFvPatchField<Type>
55     // Private data
57 public:
59     //- Runtime type information
60     TypeName(nonuniformTransformCyclicFvPatch::typeName_());
63     // Constructors
65         //- Construct from patch and internal field
66         nonuniformTransformCyclicFvPatchField
67         (
68             const fvPatch&,
69             const DimensionedField<Type, volMesh>&
70         );
72         //- Construct from patch, internal field and dictionary
73         nonuniformTransformCyclicFvPatchField
74         (
75             const fvPatch&,
76             const DimensionedField<Type, volMesh>&,
77             const dictionary&
78         );
80         //- Construct by mapping given
81         //  nonuniformTransformCyclicFvPatchField onto a new patch
82         nonuniformTransformCyclicFvPatchField
83         (
84             const nonuniformTransformCyclicFvPatchField<Type>&,
85             const fvPatch&,
86             const DimensionedField<Type, volMesh>&,
87             const fvPatchFieldMapper&
88         );
90         //- Construct as copy
91         nonuniformTransformCyclicFvPatchField
92         (
93             const nonuniformTransformCyclicFvPatchField<Type>&
94         );
96         //- Construct and return a clone
97         virtual tmp<fvPatchField<Type> > clone() const
98         {
99             return tmp<fvPatchField<Type> >
100             (
101                 new nonuniformTransformCyclicFvPatchField<Type>(*this)
102             );
103         }
105         //- Construct as copy setting internal field reference
106         nonuniformTransformCyclicFvPatchField
107         (
108             const nonuniformTransformCyclicFvPatchField<Type>&,
109             const DimensionedField<Type, volMesh>&
110         );
112         //- Construct and return a clone setting internal field reference
113         virtual tmp<fvPatchField<Type> > clone
114         (
115             const DimensionedField<Type, volMesh>& iF
116         ) const
117         {
118             return tmp<fvPatchField<Type> >
119             (
120                 new nonuniformTransformCyclicFvPatchField<Type>(*this, iF)
121             );
122         }
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace Foam
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
133 #ifdef NoRepository
134 #   include "nonuniformTransformCyclicFvPatchField.C"
135 #endif
137 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139 #endif
141 // ************************************************************************* //