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-------------------------------------------------------------------------------
10License
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
33template<class Type>
34Foam::
35timeVaryingUniformFixedValuePointPatchField<Type>::
36timeVaryingUniformFixedValuePointPatchField
37(
38 const pointPatch& p,
40)
41:
43{}
44
45
46template<class Type>
47Foam::
48timeVaryingUniformFixedValuePointPatchField<Type>::
49timeVaryingUniformFixedValuePointPatchField
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
64template<class Type>
65Foam::
66timeVaryingUniformFixedValuePointPatchField<Type>::
67timeVaryingUniformFixedValuePointPatchField
68(
69 const pointPatch& p,
71 const dictionary& dict
72)
73:
75 timeSeries_(dict)
76{
77 this->operator==(timeSeries_(this->db().time().timeOutputValue()));
78}
79
80
81template<class Type>
82Foam::
83timeVaryingUniformFixedValuePointPatchField<Type>::
84timeVaryingUniformFixedValuePointPatchField
85(
87)
88:
90 timeSeries_(ptf.timeSeries_)
91{}
92
93
94template<class Type>
95Foam::
96timeVaryingUniformFixedValuePointPatchField<Type>::
97timeVaryingUniformFixedValuePointPatchField
98(
101)
102:
103 fixedValuePointPatchField<Type>(ptf, iF),
104 timeSeries_(ptf.timeSeries_)
105{}
106
107
108// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
109
110template<class Type>
112{
113 if (this->updated())
114 {
115 return;
116 }
117
118 this->operator==(timeSeries_(this->db().time().timeOutputValue()));
120}
121
122
123template<class Type>
125(
126 Ostream& os
127) const
128{
130 timeSeries_.write(os);
131}
132
133
134// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Definition: Ostream.H:62
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition: dictionary.H:126
A FixedValue boundary condition for pointField.
virtual bool write()
Write the output fields.
Foam::pointPatchFieldMapper.
const objectRegistry & db() const
Return local objectRegistry.
Basic pointPatch represents a set of points from the mesh.
Definition: pointPatch.H:64
A time-varying form of a uniform fixed value boundary condition.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
volScalarField & p
OBJstream os(runTime.globalPath()/outputName)
tmp< faMatrix< Type > > operator==(const faMatrix< Type > &, const faMatrix< Type > &)
dictionary dict