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 | Copyright (C) 2011-2017 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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.
15 
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.
20 
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/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
27 #include "Time.H"
28 
29 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
30 
31 template<class Type>
32 Foam::
35 (
36  const pointPatch& p,
38 )
39 :
41 {}
42 
43 
44 template<class Type>
45 Foam::
48 (
50  const pointPatch& p,
52  const pointPatchFieldMapper& mapper
53 )
54 :
55  fixedValuePointPatchField<Type>(ptf, p, iF, mapper),
56  timeSeries_(ptf.timeSeries_)
57 {
58  this->operator==(timeSeries_(this->db().time().timeOutputValue()));
59 }
60 
61 
62 template<class Type>
63 Foam::
66 (
67  const pointPatch& p,
69  const dictionary& dict
70 )
71 :
73  timeSeries_(dict)
74 {
75  this->operator==(timeSeries_(this->db().time().timeOutputValue()));
76 }
77 
78 
79 template<class Type>
80 Foam::
83 (
85 )
86 :
88  timeSeries_(ptf.timeSeries_)
89 {}
90 
91 
92 template<class Type>
93 Foam::
96 (
99 )
100 :
102  timeSeries_(ptf.timeSeries_)
103 {}
104 
105 
106 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
107 
108 template<class Type>
110 {
111  if (this->updated())
112  {
113  return;
114  }
115 
116  this->operator==(timeSeries_(this->db().time().timeOutputValue()));
118 }
119 
120 
121 template<class Type>
123 (
124  Ostream& os
125 ) const
126 {
128  timeSeries_.write(os);
129 }
130 
131 
132 // ************************************************************************* //
A time-varying form of a uniform fixed value boundary condition.
A list of keyword definitions, which are a keyword followed by any number of values (e...
Definition: dictionary.H:137
A FixedValue boundary condition for pointField.
Foam::pointPatchFieldMapper.
void write(Ostream &, const label, const dictionary &)
Write with dictionary lookup.
tmp< fvMatrix< Type > > operator==(const fvMatrix< Type > &, const fvMatrix< Type > &)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:53
Basic pointPatch represents a set of points from the mesh.
Definition: pointPatch.H:56
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
timeVaryingUniformFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
volScalarField & p
virtual void updateCoeffs()
Update the coefficients associated with the patch field.