Loading...
Searching...
No Matches
timeVaryingUniformFixedValueFaPatchField.H
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) 2016-2017 Wikki Ltd
9 Copyright (C) 2019-2020 OpenCFD Ltd.
10-------------------------------------------------------------------------------
11License
12 This file is part of OpenFOAM.
13
14 OpenFOAM is free software: you can redistribute it and/or modify it
15 under the terms of the GNU General Public License as published by
16 the Free Software Foundation, either version 3 of the License, or
17 (at your option) any later version.
18
19 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22 for more details.
23
24 You should have received a copy of the GNU General Public License
25 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26
27Class
28 Foam::timeVaryingUniformFixedValueFaPatchField
29
30Description
31 A time-varying form of a uniform fixed value finite area
32 boundary condition.
33
34Usage
35 Example of the boundary condition specification:
36 \verbatim
37 <patchName>
38 {
39 // Mandatory entries (unmodifiable)
40 type timeVaryingUniformFixedValue;
41 fileName "<case>/time-series";
42 outOfBounds clamp; // (error|warn|clamp|repeat)
43
44 // Mandatory/Optional (inherited) entries
45 ...
46 }
47 \endverbatim
48
49 where the entries mean:
50 \table
51 Property | Description | Type | Reqd | Dflt
52 type | Type name: timeVaryingUniformFixedValue | word | yes | -
53 fileName | Name of operand file | word | yes | -
54 \endtable
55
56 The inherited entries are elaborated in:
57 - \link faPatchFields.H \endlink
58
59Author
60 Zeljko Tukovic, FMENA
61 Hrvoje Jasak, Wikki Ltd.
62
63Note
64 This class is derived directly from a fixedValue patch rather than from
65 a uniformFixedValue patch.
66
67See also
68 - Foam::interpolationTable
69 - Foam::fixedValueFaPatchField
70
71SourceFiles
72 timeVaryingUniformFixedValueFaPatchField.C
73
74\*---------------------------------------------------------------------------*/
75
76#ifndef timeVaryingUniformFixedValueFaPatchField_H
77#define timeVaryingUniformFixedValueFaPatchField_H
78
80#include "interpolationTable.H"
81
82// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
83
84namespace Foam
85{
86
87/*---------------------------------------------------------------------------*\
88 Class timeVaryingUniformFixedValueFaPatch Declaration
89\*---------------------------------------------------------------------------*/
90
91template<class Type>
93:
94 public fixedValueFaPatchField<Type>
95{
96 // Private Data
97
98 //- The time series being used, including the bounding treatment
99 interpolationTable<Type> timeSeries_;
100
101
102public:
103
104 //- Runtime type information
105 TypeName("timeVaryingUniformFixedValue");
106
107
108 // Constructors
109
110 //- Construct from patch and internal field
112 (
113 const faPatch&,
115 );
116
117 //- Construct from patch, internal field and dictionary
119 (
120 const faPatch&,
123 );
124
125 //- Construct by mapping given patch field onto a new patch
127 (
129 const faPatch&,
131 const faPatchFieldMapper&
132 );
133
134 //- Construct as copy
136 (
138 );
139
140 //- Construct as copy setting internal field reference
142 (
145 );
146
147 //- Return clone
148 virtual tmp<faPatchField<Type>> clone() const
149 {
150 return faPatchField<Type>::Clone(*this);
151 }
152
153 //- Clone with an internal field reference
155 (
157 ) const
158 {
159 return faPatchField<Type>::Clone(*this, iF);
160 }
161
162
163 //- Destructor
165
166
167 // Member Functions
168
169 // Access
170
171 //- Return the time series used
172 const interpolationTable<Type>& timeSeries() const
173 {
174 return timeSeries_;
175 }
176
178 // Evaluation
179
180 //- Update the coefficients associated with the patch field
181 virtual void updateCoeffs();
182
183
184 // IO
186 //- Write includes "value" entry
187 virtual void write(Ostream&) const;
188};
189
190
191// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
192
193} // End namespace Foam
194
195// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
196
197#ifdef NoRepository
199#endif
200
201// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
202
203#endif
204
205// ************************************************************************* //
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 FieldMapper for finite-area patch fields.
static tmp< faPatchField< Type > > Clone(const DerivedPatchField &pf)
Clone a patch field with its own internal field reference.
Finite area patch class. Used for 2-D non-Euclidian finite area method.
Definition faPatch.H:76
Author Zeljko Tukovic, FMENA Hrvoje Jasak, Wikki Ltd.
fixedValueFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
An interpolation/look-up table of scalar vs <Type> values. The reference scalar values must be monoto...
A time-varying form of a uniform fixed value finite area boundary condition.
virtual tmp< faPatchField< Type > > clone() const
Return clone.
timeVaryingUniformFixedValueFaPatchField(const faPatch &, const DimensionedField< Type, areaMesh > &)
Construct from patch and internal field.
virtual ~timeVaryingUniformFixedValueFaPatchField()=default
Destructor.
virtual void updateCoeffs()
Update the coefficients associated with the patch field.
const interpolationTable< Type > & timeSeries() const
Return the time series used.
virtual tmp< faPatchField< Type > > clone(const DimensionedField< Type, areaMesh > &iF) const
Clone with an internal field reference.
TypeName("timeVaryingUniformFixedValue")
Runtime type information.
A class for managing temporary objects.
Definition tmp.H:75
Namespace for OpenFOAM.
runTime write()
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68