1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 movingRotatingWallVelocityFvPatchVectorField
29 movingRotatingWallVelocityFvPatchVectorField
32 Hrvoje Jasak, Wikki Ltd. All rights reserved.
35 movingRotatingWallVelocityFvPatchVectorField.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef movingRotatingWallVelocityFvPatchVectorField_H
40 #define movingRotatingWallVelocityFvPatchVectorField_H
42 #include "fvPatchFields.H"
43 #include "fixedValueFvPatchFields.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class movingRotatingWallVelocityFvPatchVectorField Declaration
52 \*---------------------------------------------------------------------------*/
54 class movingRotatingWallVelocityFvPatchVectorField
56 public fixedValueFvPatchVectorField
60 //- Centre of rotation
66 //- Rotational speed in rpm
72 //- Runtime type information
73 TypeName("movingRotatingWallVelocity");
78 //- Construct from patch and internal field
79 movingRotatingWallVelocityFvPatchVectorField
82 const DimensionedField<vector, volMesh>&
85 //- Construct from components
86 movingRotatingWallVelocityFvPatchVectorField
89 const DimensionedField<vector, volMesh>&,
95 //- Construct from patch, internal field and dictionary
96 movingRotatingWallVelocityFvPatchVectorField
99 const DimensionedField<vector, volMesh>&,
103 //- Construct by mapping given
104 // movingRotatingWallVelocityFvPatchVectorField
106 movingRotatingWallVelocityFvPatchVectorField
108 const movingRotatingWallVelocityFvPatchVectorField&,
110 const DimensionedField<vector, volMesh>&,
111 const fvPatchFieldMapper&
114 //- Construct as copy
115 movingRotatingWallVelocityFvPatchVectorField
117 const movingRotatingWallVelocityFvPatchVectorField&
120 //- Construct and return a clone
121 virtual tmp<fvPatchVectorField> clone() const
123 return tmp<fvPatchVectorField>
125 new movingRotatingWallVelocityFvPatchVectorField(*this)
129 //- Construct as copy setting internal field reference
130 movingRotatingWallVelocityFvPatchVectorField
132 const movingRotatingWallVelocityFvPatchVectorField&,
133 const DimensionedField<vector, volMesh>&
136 //- Construct and return a clone setting internal field reference
137 virtual tmp<fvPatchVectorField> clone
139 const DimensionedField<vector, volMesh>& iF
142 return tmp<fvPatchVectorField>
144 new movingRotatingWallVelocityFvPatchVectorField(*this, iF)
154 //- Return centre of rotation
155 const point& centre() const
160 //- Return axis of rotation
161 const vector& axis() const
175 //- Return access to centre of rotation
181 //- Return access to axis of rotation
187 //- Return access to rpm
194 //- Update the coefficients associated with the patch field
195 virtual void updateCoeffs();
198 virtual void write(Ostream&) const;
202 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
204 } // End namespace Foam
206 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
210 // ************************************************************************* //