Loading...
Searching...
No Matches
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>
37(
38 const pointPatch& p,
40)
55)
56:
57 fixedValuePointPatchField<Type>(ptf, p, iF, mapper),
58 timeSeries_(ptf.timeSeries_)
60 this->operator==(timeSeries_(this->db().time().timeOutputValue()));
61}
62
63
64template<class Type>
68(
69 const pointPatch& p,
71 const dictionary& dict
72)
73:
75 timeSeries_(dict)
77 this->operator==(timeSeries_(this->db().time().timeOutputValue()));
78}
79
80
81template<class Type>
85(
87)
88:
90 timeSeries_(ptf.timeSeries_)
91{}
92
93
94template<class Type>
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 }
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:59
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A FixedValue boundary condition for pointField.
fixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
const objectRegistry & db() const
The associated objectRegistry.
bool updated() const noexcept
True if the boundary condition has already been updated.
Foam::pointPatchFieldMapper.
Basic pointPatch represents a set of points from the mesh.
Definition pointPatch.H:67
A time-varying form of a uniform fixed value boundary condition.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
timeVaryingUniformFixedValuePointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
virtual void write(Ostream &) const
Write.
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