1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 movingRotatingWallVelocityFvPatchVectorField
28 movingRotatingWallVelocityFvPatchVectorField
31 Hrvoje Jasak, Wikki Ltd. All rights reserved.
34 movingRotatingWallVelocityFvPatchVectorField.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef movingRotatingWallVelocityFvPatchVectorField_H
39 #define movingRotatingWallVelocityFvPatchVectorField_H
41 #include "fvPatchFields.H"
42 #include "fixedValueFvPatchFields.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 /*---------------------------------------------------------------------------*\
50 Class movingRotatingWallVelocityFvPatchVectorField Declaration
51 \*---------------------------------------------------------------------------*/
53 class movingRotatingWallVelocityFvPatchVectorField
55 public fixedValueFvPatchVectorField
59 //- Centre of rotation
65 //- Rotational speed in rpm
71 //- Runtime type information
72 TypeName("movingRotatingWallVelocity");
77 //- Construct from patch and internal field
78 movingRotatingWallVelocityFvPatchVectorField
81 const DimensionedField<vector, volMesh>&
84 //- Construct from components
85 movingRotatingWallVelocityFvPatchVectorField
88 const DimensionedField<vector, volMesh>&,
94 //- Construct from patch, internal field and dictionary
95 movingRotatingWallVelocityFvPatchVectorField
98 const DimensionedField<vector, volMesh>&,
102 //- Construct by mapping given
103 // movingRotatingWallVelocityFvPatchVectorField
105 movingRotatingWallVelocityFvPatchVectorField
107 const movingRotatingWallVelocityFvPatchVectorField&,
109 const DimensionedField<vector, volMesh>&,
110 const fvPatchFieldMapper&
113 //- Construct as copy
114 movingRotatingWallVelocityFvPatchVectorField
116 const movingRotatingWallVelocityFvPatchVectorField&
119 //- Construct and return a clone
120 virtual tmp<fvPatchVectorField> clone() const
122 return tmp<fvPatchVectorField>
124 new movingRotatingWallVelocityFvPatchVectorField(*this)
128 //- Construct as copy setting internal field reference
129 movingRotatingWallVelocityFvPatchVectorField
131 const movingRotatingWallVelocityFvPatchVectorField&,
132 const DimensionedField<vector, volMesh>&
135 //- Construct and return a clone setting internal field reference
136 virtual tmp<fvPatchVectorField> clone
138 const DimensionedField<vector, volMesh>& iF
141 return tmp<fvPatchVectorField>
143 new movingRotatingWallVelocityFvPatchVectorField(*this, iF)
153 //- Return centre of rotation
154 const point& centre() const
159 //- Return axis of rotation
160 const vector& axis() const
174 //- Return access to centre of rotation
180 //- Return access to axis of rotation
186 //- Return access to rpm
193 //- Update the coefficients associated with the patch field
194 virtual void updateCoeffs();
197 virtual void write(Ostream&) const;
201 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
203 } // End namespace Foam
205 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
209 // ************************************************************************* //