Loading...
Searching...
No Matches
uniformJumpFvPatchField.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) 2012-2016 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
26Class
27 Foam::uniformJumpFvPatchField
28
29Group
30 grpCoupledBoundaryConditions
31
32Description
33 This boundary condition provides a jump condition, using the \c cyclic
34 condition as a base. The jump is specified as a time-varying uniform
35 value across the patch.
36
37Usage
38 \table
39 Property | Description | Required | Default
40 patchType | underlying patch type should be \c cyclic | yes |
41 jumpTable | jump value | yes |
42 \endtable
43
44 Example of the boundary condition specification:
45 \verbatim
46 <patchName>
47 {
48 type uniformJump;
49 patchType cyclic;
50 jumpTable constant 10;
51 }
52 \endverbatim
53
54 The above example shows the use of a fixed jump of '10'.
55
56Note
57 The uniformValue entry is a Function1 type, able to describe time
58 varying functions. The example above gives the usage for supplying a
59 constant value.
60
61 The underlying \c patchType should be set to \c cyclic
62
63See also
64 Foam::fixedJumpFvPatchField
65 Foam::Function1Types
66
67SourceFiles
68 uniformJumpFvPatchField.C
69
70\*---------------------------------------------------------------------------*/
71
72#ifndef uniformJumpFvPatchField_H
73#define uniformJumpFvPatchField_H
74
76#include "Function1.H"
77
78// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
79
80namespace Foam
81{
82
83/*---------------------------------------------------------------------------*\
84 Class uniformJumpFvPatchField Declaration
85\*---------------------------------------------------------------------------*/
86
87template<class Type>
89:
90 public fixedJumpFvPatchField<Type>
91{
92
93protected:
94
95 // Protected data
96
97 //- The "jump" table
99
100
101public:
102
103 //- Runtime type information
104 TypeName("uniformJump");
105
106 // Constructors
107
108 //- Construct from patch and internal field
111 const fvPatch&,
113 );
114
115 //- Construct from patch, internal field and dictionary
117 (
118 const fvPatch&,
120 const dictionary&,
121 const bool needValue = true
122 );
123
124 //- Construct by mapping given uniformJumpFvPatchField onto a
125 // new patch
127 (
129 const fvPatch&,
131 const fvPatchFieldMapper&
132 );
133
134 //- Construct as copy
136 (
138 );
139
140 //- Construct as copy setting internal field reference
142 (
145 );
146
147 //- Return a clone
148 virtual tmp<fvPatchField<Type>> clone() const
149 {
150 return fvPatchField<Type>::Clone(*this);
151 }
152
153 //- Clone with an internal field reference
155 (
157 ) const
158 {
159 return fvPatchField<Type>::Clone(*this, iF);
160 }
161
162
163 // Member functions
164
165 //- Update the coefficients
166 virtual void updateCoeffs();
167
168 //- Write
169 virtual void write(Ostream& os) const;
170};
171
172
173// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
174
175} // End namespace Foam
176
177// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
178
179#ifdef NoRepository
181#endif
182
183// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
184
185#endif
186
187// ************************************************************************* //
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
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Definition autoPtr.H:65
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
This boundary condition provides a jump condition, using the cyclic condition as a base.
fixedJumpFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
A FieldMapper for finite-volume patch fields.
static tmp< fvPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition fvPatch.H:71
A class for managing temporary objects.
Definition tmp.H:75
This boundary condition provides a jump condition, using the cyclic condition as a base....
uniformJumpFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
virtual void updateCoeffs()
Update the coefficients.
autoPtr< Function1< Type > > jumpTable_
The "jump" table.
virtual tmp< fvPatchField< Type > > clone() const
Return a clone.
TypeName("uniformJump")
Runtime type information.
virtual tmp< fvPatchField< Type > > clone(const DimensionedField< Type, volMesh > &iF) const
Clone with an internal field reference.
OBJstream os(runTime.globalPath()/outputName)
Namespace for OpenFOAM.
runTime write()
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68