1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 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
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
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/>.
25 Foam::timeVaryingUniformFixedValuePointPatchField
28 A time-varying form of a uniform fixed value boundary condition.
31 Foam::timeVaryingUniformFixedValueFvField
34 timeVaryingUniformFixedValuePointPatchField.C
36 \*---------------------------------------------------------------------------*/
38 #ifndef timeVaryingUniformFixedValuePointPatchField_H
39 #define timeVaryingUniformFixedValuePointPatchField_H
41 #include "fixedValuePointPatchField.H"
42 #include "interpolationTable.H"
44 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
49 /*---------------------------------------------------------------------------*\
50 Class timeVaryingUniformFixedValuePointPatchField Declaration
51 \*---------------------------------------------------------------------------*/
54 class timeVaryingUniformFixedValuePointPatchField
56 public fixedValuePointPatchField<Type>
60 //- the time series being used, including the bounding treatment
61 interpolationTable<Type> timeSeries_;
66 //- Runtime type information
67 TypeName("timeVaryingUniformFixedValue");
72 //- Construct from patch and internal field
73 timeVaryingUniformFixedValuePointPatchField
76 const DimensionedField<Type, pointMesh>&
79 //- Construct from patch, internal field and dictionary
80 timeVaryingUniformFixedValuePointPatchField
83 const DimensionedField<Type, pointMesh>&,
87 //- Construct by mapping given patch field onto a new patch
88 timeVaryingUniformFixedValuePointPatchField
90 const timeVaryingUniformFixedValuePointPatchField<Type>&,
92 const DimensionedField<Type, pointMesh>&,
93 const pointPatchFieldMapper&
97 timeVaryingUniformFixedValuePointPatchField
99 const timeVaryingUniformFixedValuePointPatchField<Type>&
102 //- Construct and return a clone
103 virtual autoPtr<pointPatchField<Type> > clone() const
105 return autoPtr<pointPatchField<Type> >
107 new timeVaryingUniformFixedValuePointPatchField<Type>(*this)
111 //- Construct as copy setting internal field reference
112 timeVaryingUniformFixedValuePointPatchField
114 const timeVaryingUniformFixedValuePointPatchField<Type>&,
115 const DimensionedField<Type, pointMesh>&
118 //- Construct and return a clone setting internal field reference
119 virtual autoPtr<pointPatchField<Type> > clone
121 const DimensionedField<Type, pointMesh>& iF
124 return autoPtr<pointPatchField<Type> >
126 new timeVaryingUniformFixedValuePointPatchField<Type>(*this, iF)
135 //- Return the time series used
136 const interpolationTable<Type>& timeSeries() const
142 // Evaluation functions
144 //- Update the coefficients associated with the patch field
145 virtual void updateCoeffs();
149 virtual void write(Ostream&) const;
153 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
155 } // End namespace Foam
157 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
160 # include "timeVaryingUniformFixedValuePointPatchField.C"
163 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 // ************************************************************************* //