1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 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
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::angularOscillatingVelocityPointPatchVectorField
28 Foam::angularOscillatingVelocityPointPatchVectorField
31 angularOscillatingVelocityPointPatchVectorField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef angularOscillatingVelocityPointPatchVectorField_H
36 #define angularOscillatingVelocityPointPatchVectorField_H
38 #include "fixedValuePointPatchField.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class angularOscillatingVelocityPointPatchVectorField Declaration
47 \*---------------------------------------------------------------------------*/
49 class angularOscillatingVelocityPointPatchVectorField
51 public fixedValuePointPatchField<vector>
66 //- Runtime type information
67 TypeName("angularOscillatingVelocity");
72 //- Construct from patch and internal field
73 angularOscillatingVelocityPointPatchVectorField
76 const DimensionedField<vector, pointMesh>&
79 //- Construct from patch, internal field and dictionary
80 angularOscillatingVelocityPointPatchVectorField
83 const DimensionedField<vector, pointMesh>&,
87 //- Construct by mapping given patchField<vector> onto a new patch
88 angularOscillatingVelocityPointPatchVectorField
90 const angularOscillatingVelocityPointPatchVectorField&,
92 const DimensionedField<vector, pointMesh>&,
93 const pointPatchFieldMapper&
96 //- Construct and return a clone
97 virtual autoPtr<pointPatchField<vector> > clone() const
99 return autoPtr<pointPatchField<vector> >
101 new angularOscillatingVelocityPointPatchVectorField
108 //- Construct as copy setting internal field reference
109 angularOscillatingVelocityPointPatchVectorField
111 const angularOscillatingVelocityPointPatchVectorField&,
112 const DimensionedField<vector, pointMesh>&
115 //- Construct and return a clone setting internal field reference
116 virtual autoPtr<pointPatchField<vector> > clone
118 const DimensionedField<vector, pointMesh>& iF
121 return autoPtr<pointPatchField<vector> >
123 new angularOscillatingVelocityPointPatchVectorField
136 //- Map (and resize as needed) from self given a mapping object
139 const pointPatchFieldMapper&
142 //- Reverse map the given pointPatchField onto this pointPatchField
145 const pointPatchField<vector>&,
150 // Evaluation functions
152 //- Update the coefficients associated with the patch field
153 virtual void updateCoeffs();
157 virtual void write(Ostream&) const;
161 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
163 } // End namespace Foam
165 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
169 // ************************************************************************* //