initial commit for version 1.6.x patch release
[OpenFOAM-1.6.x.git] / src / OpenFOAM / fields / pointPatchFields / derived / timeVaryingUniformFixedValue / timeVaryingUniformFixedValuePointPatchField.C
blob31f979d406dd71d89a421ccb023cb6e1264a6186
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
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 \*---------------------------------------------------------------------------*/
27 #include "timeVaryingUniformFixedValuePointPatchField.H"
28 #include "Time.H"
29 #include "IFstream.H"
31 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
33 template<class Type>
34 Foam::
35 timeVaryingUniformFixedValuePointPatchField<Type>::
36 timeVaryingUniformFixedValuePointPatchField
38     const pointPatch& p,
39     const DimensionedField<Type, pointMesh>& iF
42     fixedValuePointPatchField<Type>(p, iF)
46 template<class Type>
47 Foam::
48 timeVaryingUniformFixedValuePointPatchField<Type>::
49 timeVaryingUniformFixedValuePointPatchField
51     const timeVaryingUniformFixedValuePointPatchField<Type>& ptf,
52     const pointPatch& p,
53     const DimensionedField<Type, pointMesh>& iF,
54     const pointPatchFieldMapper& mapper
57     fixedValuePointPatchField<Type>(ptf, p, iF, mapper),
58     timeSeries_(ptf.timeSeries_)
62 template<class Type>
63 Foam::
64 timeVaryingUniformFixedValuePointPatchField<Type>::
65 timeVaryingUniformFixedValuePointPatchField
67     const pointPatch& p,
68     const DimensionedField<Type, pointMesh>& iF,
69     const dictionary& dict
72     fixedValuePointPatchField<Type>(p, iF),
73     timeSeries_(dict)
75     updateCoeffs();
79 template<class Type>
80 Foam::
81 timeVaryingUniformFixedValuePointPatchField<Type>::
82 timeVaryingUniformFixedValuePointPatchField
84     const timeVaryingUniformFixedValuePointPatchField<Type>& ptf
87     fixedValuePointPatchField<Type>(ptf),
88     timeSeries_(ptf.timeSeries_)
92 template<class Type>
93 Foam::
94 timeVaryingUniformFixedValuePointPatchField<Type>::
95 timeVaryingUniformFixedValuePointPatchField
97     const timeVaryingUniformFixedValuePointPatchField<Type>& ptf,
98     const DimensionedField<Type, pointMesh>& iF
101     fixedValuePointPatchField<Type>(ptf, iF),
102     timeSeries_(ptf.timeSeries_)
106 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
108 template<class Type>
109 void Foam::timeVaryingUniformFixedValuePointPatchField<Type>::updateCoeffs()
111     if (this->updated())
112     {
113         return;
114     }
116     this->operator==(timeSeries_(this->db().time().timeOutputValue()));
117     fixedValuePointPatchField<Type>::updateCoeffs();
121 template<class Type>
122 void Foam::timeVaryingUniformFixedValuePointPatchField<Type>::write(Ostream& os) const
124     fixedValuePointPatchField<Type>::write(os);
125     timeSeries_.write(os);
129 // ************************************************************************* //