Fix tutorials: typo in tutorials/viscoelastic/viscoelasticFluidFoam/S-MDCPP/constant...
[OpenFOAM-1.6-ext.git] / src / fvMotionSolver / pointPatchFields / derived / angularOscillatingVelocity / angularOscillatingVelocityPointPatchVectorField.H
blob8f90f17ceee4d52fb59da1ab350e196606394281
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     angularOscillatingVelocityPointPatchVectorField
28 Description
30 SourceFiles
31     angularOscillatingVelocityPointPatchVectorField.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef angularOscillatingVelocityPointPatchVectorField_H
36 #define angularOscillatingVelocityPointPatchVectorField_H
38 #include "fixedValuePointPatchFields.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
42 namespace Foam
45 /*---------------------------------------------------------------------------*\
46         Class angularOscillatingVelocityPointPatchVectorField Declaration
47 \*---------------------------------------------------------------------------*/
49 class angularOscillatingVelocityPointPatchVectorField
51     public FixedValuePointPatchField
52     <
53         pointPatchField,
54         pointMesh,
55         pointPatch,
56         DummyMatrix,
57         vector
58     >
60     // Private data
62         vector axis_;
63         vector origin_;
64         scalar angle0_;
65         scalar amplitude_;
66         scalar omega_;
68         pointField p0_;
71 public:
73     //- Runtime type information
74     TypeName("angularOscillatingVelocity");
77     // Constructors
79         //- Construct from patch and internal field
80         angularOscillatingVelocityPointPatchVectorField
81         (
82             const pointPatch&,
83             const DimensionedField<vector, pointMesh>&
84         );
86         //- Construct from patch, internal field and dictionary
87         angularOscillatingVelocityPointPatchVectorField
88         (
89             const pointPatch&,
90             const DimensionedField<vector, pointMesh>&,
91             const dictionary&
92         );
94         //- Construct by mapping given patchField<vector> onto a new patch
95         angularOscillatingVelocityPointPatchVectorField
96         (
97             const angularOscillatingVelocityPointPatchVectorField&,
98             const pointPatch&,
99             const DimensionedField<vector, pointMesh>&,
100             const PointPatchFieldMapper&
101         );
103         //- Construct and return a clone
104         virtual autoPtr<pointPatchField<vector> > clone() const
105         {
106             return autoPtr<pointPatchField<vector> >
107             (
108                 new angularOscillatingVelocityPointPatchVectorField(*this)
109             );
110         }
112         //- Construct as copy setting internal field reference
113         angularOscillatingVelocityPointPatchVectorField
114         (
115             const angularOscillatingVelocityPointPatchVectorField&,
116             const DimensionedField<vector, pointMesh>&
117         );
119         //- Construct and return a clone setting internal field reference
120         virtual autoPtr<pointPatchField<vector> > clone
121         (
122             const DimensionedField<vector, pointMesh>& iF
123         ) const
124         {
125             return autoPtr<pointPatchField<vector> >
126             (
127                 new angularOscillatingVelocityPointPatchVectorField(*this, iF)
128             );
129         }
132     // Member functions
134         // Evaluation functions
136             //- Update the coefficients associated with the patch field
137             virtual void updateCoeffs();
140         //- Write
141         virtual void write(Ostream&) const;
145 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147 } // End namespace Foam
149 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
151 #endif
153 // ************************************************************************* //