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 angularOscillatingVelocityPointPatchVectorField
31 angularOscillatingVelocityPointPatchVectorField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef angularOscillatingVelocityPointPatchVectorField_H
36 #define angularOscillatingVelocityPointPatchVectorField_H
38 #include "fixedValuePointPatchFields.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class angularOscillatingVelocityPointPatchVectorField Declaration
47 \*---------------------------------------------------------------------------*/
49 class angularOscillatingVelocityPointPatchVectorField
51 public FixedValuePointPatchField
73 //- Runtime type information
74 TypeName("angularOscillatingVelocity");
79 //- Construct from patch and internal field
80 angularOscillatingVelocityPointPatchVectorField
83 const DimensionedField<vector, pointMesh>&
86 //- Construct from patch, internal field and dictionary
87 angularOscillatingVelocityPointPatchVectorField
90 const DimensionedField<vector, pointMesh>&,
94 //- Construct by mapping given patchField<vector> onto a new patch
95 angularOscillatingVelocityPointPatchVectorField
97 const angularOscillatingVelocityPointPatchVectorField&,
99 const DimensionedField<vector, pointMesh>&,
100 const PointPatchFieldMapper&
103 //- Construct and return a clone
104 virtual autoPtr<pointPatchField<vector> > clone() const
106 return autoPtr<pointPatchField<vector> >
108 new angularOscillatingVelocityPointPatchVectorField(*this)
112 //- Construct as copy setting internal field reference
113 angularOscillatingVelocityPointPatchVectorField
115 const angularOscillatingVelocityPointPatchVectorField&,
116 const DimensionedField<vector, pointMesh>&
119 //- Construct and return a clone setting internal field reference
120 virtual autoPtr<pointPatchField<vector> > clone
122 const DimensionedField<vector, pointMesh>& iF
125 return autoPtr<pointPatchField<vector> >
127 new angularOscillatingVelocityPointPatchVectorField(*this, iF)
134 // Evaluation functions
136 //- Update the coefficients associated with the patch field
137 virtual void updateCoeffs();
141 virtual void write(Ostream&) const;
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 } // End namespace Foam
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
153 // ************************************************************************* //