1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 4.0
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 angularOscillatingVelocityPointPatchVectorField
30 angularOscillatingVelocityPointPatchVectorField.C
32 \*---------------------------------------------------------------------------*/
34 #ifndef angularOscillatingVelocityPointPatchVectorField_H
35 #define angularOscillatingVelocityPointPatchVectorField_H
37 #include "fixedValuePointPatchFields.H"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 /*---------------------------------------------------------------------------*\
45 Class angularOscillatingVelocityPointPatchVectorField Declaration
46 \*---------------------------------------------------------------------------*/
48 class angularOscillatingVelocityPointPatchVectorField
50 public FixedValuePointPatchField
72 //- Runtime type information
73 TypeName("angularOscillatingVelocity");
78 //- Construct from patch and internal field
79 angularOscillatingVelocityPointPatchVectorField
82 const DimensionedField<vector, pointMesh>&
85 //- Construct from patch, internal field and dictionary
86 angularOscillatingVelocityPointPatchVectorField
89 const DimensionedField<vector, pointMesh>&,
93 //- Construct by mapping given patchField<vector> onto a new patch
94 angularOscillatingVelocityPointPatchVectorField
96 const angularOscillatingVelocityPointPatchVectorField&,
98 const DimensionedField<vector, pointMesh>&,
99 const PointPatchFieldMapper&
102 //- Construct and return a clone
103 virtual autoPtr<pointPatchField<vector> > clone() const
105 return autoPtr<pointPatchField<vector> >
107 new angularOscillatingVelocityPointPatchVectorField(*this)
111 //- Construct as copy setting internal field reference
112 angularOscillatingVelocityPointPatchVectorField
114 const angularOscillatingVelocityPointPatchVectorField&,
115 const DimensionedField<vector, pointMesh>&
118 //- Construct and return a clone setting internal field reference
119 virtual autoPtr<pointPatchField<vector> > clone
121 const DimensionedField<vector, pointMesh>& iF
124 return autoPtr<pointPatchField<vector> >
126 new angularOscillatingVelocityPointPatchVectorField(*this, iF)
135 //- Map (and resize as needed) from self given a mapping object
138 const PointPatchFieldMapper&
141 //- Reverse map the given pointPatchField onto this pointPatchField
144 const PointPatchField
145 <pointPatchField, pointMesh, pointPatch, DummyMatrix, vector>&,
149 // Evaluation functions
151 //- Update the coefficients associated with the patch field
152 virtual void updateCoeffs();
156 virtual void write(Ostream&) const;
160 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
162 } // End namespace Foam
164 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
168 // ************************************************************************* //