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 // ************************************************************************* //
p
volScalarField & p
Definition: createFieldRefs.H:8
Foam::pointPatchField< Type >::db
const objectRegistry & db() const
Definition: pointPatchField.C:103
Foam::pointPatch
Basic pointPatch represents a set of points from the mesh.
Definition: pointPatch.H:54
Foam::pointPatchFieldMapper
Foam::pointPatchFieldMapper.
Definition: pointPatchFieldMapper.H:42
Foam::timeVaryingUniformFixedValuePointPatchField::write
virtual void write(Ostream &) const
Definition: timeVaryingUniformFixedValuePointPatchField.C:118
Foam::fixedValuePointPatchField
A FixedValue boundary condition for pointField.
Definition: fixedValuePointPatchField.H:47
Foam::operator==
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
Foam::valuePointPatchField::updateCoeffs
virtual void updateCoeffs()
Definition: valuePointPatchField.C:128
Foam::valuePointPatchField::write
virtual void write(Ostream &) const
Definition: valuePointPatchField.C:157
Foam::timeVaryingUniformFixedValuePointPatchField::timeVaryingUniformFixedValuePointPatchField
timeVaryingUniformFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Definition: timeVaryingUniformFixedValuePointPatchField.C:30
Foam::valuePointPatchField::operator==
virtual void operator==(const valuePointPatchField< Type > &)
Definition: valuePointPatchField.C:208
dict
dictionary dict
Definition: searchingEngine.H:14
timeVaryingUniformFixedValuePointPatchField.H
Foam::dictionary
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:119
os
OBJstream os(runTime.globalPath()/outputName)
Foam::timeVaryingUniformFixedValuePointPatchField::updateCoeffs
virtual void updateCoeffs()
Definition: timeVaryingUniformFixedValuePointPatchField.C:104
Time.H
Foam::vtk::write
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Definition: foamVtkOutputTemplates.C:29
Foam::timeVaryingUniformFixedValuePointPatchField
A time-varying form of a uniform fixed value boundary condition.
Definition: timeVaryingUniformFixedValuePointPatchField.H:51
Foam::Ostream
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:52
Foam::DimensionedField
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Definition: DimensionedField.H:50