1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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::oscillatingVelocityPointPatchVectorField
29 Foam::oscillatingVelocityPointPatchVectorField
32 oscillatingVelocityPointPatchVectorField.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef oscillatingVelocityPointPatchVectorField_H
37 #define oscillatingVelocityPointPatchVectorField_H
39 #include "fixedValuePointPatchField.H"
41 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 /*---------------------------------------------------------------------------*\
47 Class oscillatingVelocityPointPatchVectorField Declaration
48 \*---------------------------------------------------------------------------*/
50 class oscillatingVelocityPointPatchVectorField
52 public fixedValuePointPatchField<vector>
64 //- Runtime type information
65 TypeName("oscillatingVelocity");
70 //- Construct from patch and internal field
71 oscillatingVelocityPointPatchVectorField
74 const DimensionedField<vector, pointMesh>&
77 //- Construct from patch, internal field and dictionary
78 oscillatingVelocityPointPatchVectorField
81 const DimensionedField<vector, pointMesh>&,
85 //- Construct by mapping given patchField<vector> onto a new patch
86 oscillatingVelocityPointPatchVectorField
88 const oscillatingVelocityPointPatchVectorField&,
90 const DimensionedField<vector, pointMesh>&,
91 const pointPatchFieldMapper&
94 //- Construct and return a clone
95 virtual autoPtr<pointPatchField<vector> > clone() const
97 return autoPtr<pointPatchField<vector> >
99 new oscillatingVelocityPointPatchVectorField
106 //- Construct as copy setting internal field reference
107 oscillatingVelocityPointPatchVectorField
109 const oscillatingVelocityPointPatchVectorField&,
110 const DimensionedField<vector, pointMesh>&
113 //- Construct and return a clone setting internal field reference
114 virtual autoPtr<pointPatchField<vector> > clone
116 const DimensionedField<vector, pointMesh>& iF
119 return autoPtr<pointPatchField<vector> >
121 new oscillatingVelocityPointPatchVectorField
132 // Evaluation functions
134 //- Update the coefficients associated with the patch field
135 virtual void updateCoeffs();
139 virtual void write(Ostream&) const;
143 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
145 } // End namespace Foam
147 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 // ************************************************************************* //