BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / OpenFOAM / fields / pointPatchFields / derived / timeVaryingUniformFixedValue / timeVaryingUniformFixedValuePointPatchField.H
blob1698c3d776b26c78523f586f438e89d9dbf7b8bf
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 2011 OpenFOAM Foundation
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
13     the Free Software Foundation, either version 3 of the License, or
14     (at your 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, see <http://www.gnu.org/licenses/>.
24 Class
25     Foam::timeVaryingUniformFixedValuePointPatchField
27 Description
28     A time-varying form of a uniform fixed value boundary condition.
30 See Also
31     Foam::timeVaryingUniformFixedValueFvField
33 SourceFiles
34     timeVaryingUniformFixedValuePointPatchField.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef timeVaryingUniformFixedValuePointPatchField_H
39 #define timeVaryingUniformFixedValuePointPatchField_H
41 #include "fixedValuePointPatchField.H"
42 #include "interpolationTable.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 namespace Foam
49 /*---------------------------------------------------------------------------*\
50         Class timeVaryingUniformFixedValuePointPatchField Declaration
51 \*---------------------------------------------------------------------------*/
53 template<class Type>
54 class timeVaryingUniformFixedValuePointPatchField
56     public fixedValuePointPatchField<Type>
58     // Private data
60         //- the time series being used, including the bounding treatment
61         interpolationTable<Type> timeSeries_;
64 public:
66     //- Runtime type information
67     TypeName("timeVaryingUniformFixedValue");
70     // Constructors
72         //- Construct from patch and internal field
73         timeVaryingUniformFixedValuePointPatchField
74         (
75             const pointPatch&,
76             const DimensionedField<Type, pointMesh>&
77         );
79         //- Construct from patch, internal field and dictionary
80         timeVaryingUniformFixedValuePointPatchField
81         (
82             const pointPatch&,
83             const DimensionedField<Type, pointMesh>&,
84             const dictionary&
85         );
87         //- Construct by mapping given patch field onto a new patch
88         timeVaryingUniformFixedValuePointPatchField
89         (
90             const timeVaryingUniformFixedValuePointPatchField<Type>&,
91             const pointPatch&,
92             const DimensionedField<Type, pointMesh>&,
93             const pointPatchFieldMapper&
94         );
96         //- Construct as copy
97         timeVaryingUniformFixedValuePointPatchField
98         (
99             const timeVaryingUniformFixedValuePointPatchField<Type>&
100         );
102         //- Construct and return a clone
103         virtual autoPtr<pointPatchField<Type> > clone() const
104         {
105             return autoPtr<pointPatchField<Type> >
106             (
107                 new timeVaryingUniformFixedValuePointPatchField<Type>(*this)
108             );
109         }
111         //- Construct as copy setting internal field reference
112         timeVaryingUniformFixedValuePointPatchField
113         (
114             const timeVaryingUniformFixedValuePointPatchField<Type>&,
115             const DimensionedField<Type, pointMesh>&
116         );
118         //- Construct and return a clone setting internal field reference
119         virtual autoPtr<pointPatchField<Type> > clone
120         (
121             const DimensionedField<Type, pointMesh>& iF
122         ) const
123         {
124             return autoPtr<pointPatchField<Type> >
125             (
126                 new timeVaryingUniformFixedValuePointPatchField<Type>(*this, iF)
127             );
128         }
131     // Member functions
133         // Access
135             //- Return the time series used
136             const interpolationTable<Type>& timeSeries() const
137             {
138                 return timeSeries_;
139             }
142         // Evaluation functions
144             //- Update the coefficients associated with the patch field
145             virtual void updateCoeffs();
148         //- Write
149         virtual void write(Ostream&) const;
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace Foam
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
159 #ifdef NoRepository
160 #   include "timeVaryingUniformFixedValuePointPatchField.C"
161 #endif
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
165 #endif
167 // ************************************************************************* //