1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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 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
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"
31 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
35 timeVaryingUniformFixedValuePointPatchField<Type>::
36 timeVaryingUniformFixedValuePointPatchField
39 const DimensionedField<Type, pointMesh>& iF
42 fixedValuePointPatchField<Type>(p, iF)
48 timeVaryingUniformFixedValuePointPatchField<Type>::
49 timeVaryingUniformFixedValuePointPatchField
51 const timeVaryingUniformFixedValuePointPatchField<Type>& ptf,
53 const DimensionedField<Type, pointMesh>& iF,
54 const pointPatchFieldMapper& mapper
57 fixedValuePointPatchField<Type>(ptf, p, iF, mapper),
58 timeSeries_(ptf.timeSeries_)
64 timeVaryingUniformFixedValuePointPatchField<Type>::
65 timeVaryingUniformFixedValuePointPatchField
68 const DimensionedField<Type, pointMesh>& iF,
69 const dictionary& dict
72 fixedValuePointPatchField<Type>(p, iF),
81 timeVaryingUniformFixedValuePointPatchField<Type>::
82 timeVaryingUniformFixedValuePointPatchField
84 const timeVaryingUniformFixedValuePointPatchField<Type>& ptf
87 fixedValuePointPatchField<Type>(ptf),
88 timeSeries_(ptf.timeSeries_)
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 * * * * * * * * * * * * * //
109 void Foam::timeVaryingUniformFixedValuePointPatchField<Type>::updateCoeffs()
116 this->operator==(timeSeries_(this->db().time().timeOutputValue()));
117 fixedValuePointPatchField<Type>::updateCoeffs();
122 void Foam::timeVaryingUniformFixedValuePointPatchField<Type>::write(Ostream& os) const
124 fixedValuePointPatchField<Type>::write(os);
125 timeSeries_.write(os);
129 // ************************************************************************* //