timeVaryingUniformFixedValuePointPatchField.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011-2017 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 \*---------------------------------------------------------------------------*/
27 
29 #include "Time.H"
30 
31 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
32 
33 template<class Type>
34 Foam::
37 (
38  const pointPatch& p,
40 )
41 :
42  fixedValuePointPatchField<Type>(p, iF)
43 {}
44 
45 
46 template<class Type>
47 Foam::
50 (
52  const pointPatch& p,
54  const pointPatchFieldMapper& mapper
55 )
56 :
57  fixedValuePointPatchField<Type>(ptf, p, iF, mapper),
58  timeSeries_(ptf.timeSeries_)
59 {
60  this->operator==(timeSeries_(this->db().time().timeOutputValue()));
61 }
62 
63 
64 template<class Type>
65 Foam::
68 (
69  const pointPatch& p,
71  const dictionary& dict
72 )
73 :
74  fixedValuePointPatchField<Type>(p, iF),
75  timeSeries_(dict)
76 {
77  this->operator==(timeSeries_(this->db().time().timeOutputValue()));
78 }
79 
80 
81 template<class Type>
82 Foam::
85 (
87 )
88 :
89  fixedValuePointPatchField<Type>(ptf),
90  timeSeries_(ptf.timeSeries_)
91 {}
92 
93 
94 template<class Type>
95 Foam::
98 (
101 )
102 :
103  fixedValuePointPatchField<Type>(ptf, iF),
104  timeSeries_(ptf.timeSeries_)
105 {}
106 
107 
108 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
109 
110 template<class Type>
112 {
113  if (this->updated())
114  {
115  return;
116  }
117 
118  this->operator==(timeSeries_(this->db().time().timeOutputValue()));
120 }
121 
122 
123 template<class Type>
125 (
126  Ostream& os
127 ) const
128 {
130  timeSeries_.write(os);
131 }
132 
133 
134 // ************************************************************************* //
A time-varying form of a uniform fixed value boundary condition.
dictionary dict
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
A FixedValue boundary condition for pointField.
Foam::pointPatchFieldMapper.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
virtual void write(Ostream &) const
Write.
const objectRegistry & db() const
The associated objectRegistry.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:56
OBJstream os(runTime.globalPath()/outputName)
virtual void operator==(const valuePointPatchField< Type > &)
Basic pointPatch represents a set of points from the mesh.
Definition: pointPatch.H:61
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: areaFieldsFwd.H:42
timeVaryingUniformFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
volScalarField & p
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
virtual void updateCoeffs()
Update the coefficients associated with the patch field.