1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2008 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 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 Foam::angularOscillatingVelocityPointPatchVectorField
29 Foam::angularOscillatingVelocityPointPatchVectorField
32 angularOscillatingVelocityPointPatchVectorField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef angularOscillatingVelocityPointPatchVectorField_H
37 #define angularOscillatingVelocityPointPatchVectorField_H
39 #include "fixedValuePointPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class angularOscillatingVelocityPointPatchVectorField Declaration
48 \*---------------------------------------------------------------------------*/
50 class angularOscillatingVelocityPointPatchVectorField
52 public fixedValuePointPatchField<vector>
67 //- Runtime type information
68 TypeName("angularOscillatingVelocity");
73 //- Construct from patch and internal field
74 angularOscillatingVelocityPointPatchVectorField
77 const DimensionedField<vector, pointMesh>&
80 //- Construct from patch, internal field and dictionary
81 angularOscillatingVelocityPointPatchVectorField
84 const DimensionedField<vector, pointMesh>&,
88 //- Construct by mapping given patchField<vector> onto a new patch
89 angularOscillatingVelocityPointPatchVectorField
91 const angularOscillatingVelocityPointPatchVectorField&,
93 const DimensionedField<vector, pointMesh>&,
94 const pointPatchFieldMapper&
97 //- Construct and return a clone
98 virtual autoPtr<pointPatchField<vector> > clone() const
100 return autoPtr<pointPatchField<vector> >
102 new angularOscillatingVelocityPointPatchVectorField
109 //- Construct as copy setting internal field reference
110 angularOscillatingVelocityPointPatchVectorField
112 const angularOscillatingVelocityPointPatchVectorField&,
113 const DimensionedField<vector, pointMesh>&
116 //- Construct and return a clone setting internal field reference
117 virtual autoPtr<pointPatchField<vector> > clone
119 const DimensionedField<vector, pointMesh>& iF
122 return autoPtr<pointPatchField<vector> >
124 new angularOscillatingVelocityPointPatchVectorField
135 // Evaluation functions
137 //- Update the coefficients associated with the patch field
138 virtual void updateCoeffs();
142 virtual void write(Ostream&) const;
146 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
148 } // End namespace Foam
150 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
154 // ************************************************************************* //