Loading...
Searching...
No Matches
cyclicFvsPatchField.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) 2011-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::cyclicFvsPatchField
28
29Description
30 This boundary condition enforces a cyclic condition between a pair of
31 boundaries.
32
33 The "value" entry is NO_READ, but is written.
34
35Usage
36 Example of the boundary condition specification:
37 \verbatim
38 <patchName>
39 {
40 type cyclic;
41 }
42 \endverbatim
43
44SourceFiles
45 cyclicFvsPatchField.C
46
47\*---------------------------------------------------------------------------*/
48
49#ifndef Foam_cyclicFvsPatchField_H
50#define Foam_cyclicFvsPatchField_H
51
53#include "cyclicFvPatch.H"
54
55// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
56
57namespace Foam
58{
59
60/*---------------------------------------------------------------------------*\
61 Class cyclicFvsPatchField Declaration
62\*---------------------------------------------------------------------------*/
63
64template<class Type>
66:
67 public coupledFvsPatchField<Type>
68{
69 // Private Data
70
71 //- Local reference cast into the cyclic patch
72 const cyclicFvPatch& cyclicPatch_;
73
74
75public:
76
77 //- Runtime type information
78 TypeName(cyclicFvPatch::typeName_());
79
80
81 // Constructors
82
83 //- Construct from patch and internal field
85 (
86 const fvPatch&,
88 );
89
90 //- Construct from patch, internal field and dictionary.
91 //- The "value" entry is MUST_READ.
93 (
94 const fvPatch&,
96 const dictionary&
97 );
98
99 //- Construct by mapping given cyclicFvsPatchField onto a new patch
101 (
103 const fvPatch&,
105 const fvPatchFieldMapper&
106 );
107
108 //- Construct as copy
110 (
112 );
113
114 //- Construct as copy setting internal field reference
116 (
119 );
120
121 //- Return clone
122 virtual tmp<fvsPatchField<Type>> clone() const
123 {
124 return fvsPatchField<Type>::Clone(*this);
125 }
126
127 //- Clone with an internal field reference
129 (
131 ) const
132 {
133 return fvsPatchField<Type>::Clone(*this, iF);
134 }
135};
136
137
138// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
139
140} // End namespace Foam
142// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
143
144#ifdef NoRepository
145 #include "cyclicFvsPatchField.C"
146#endif
147
148// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
149
150#endif
151
152// ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
coupledFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
Cyclic-plane patch.
virtual tmp< fvsPatchField< Type > > clone(const DimensionedField< Type, surfaceMesh > &iF) const
Clone with an internal field reference.
TypeName(cyclicFvPatch::typeName_())
Runtime type information.
virtual tmp< fvsPatchField< Type > > clone() const
Return clone.
cyclicFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Definition dictionary.H:133
A FieldMapper for finite-volume patch fields.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition fvPatch.H:71
static tmp< fvsPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
A class for managing temporary objects.
Definition tmp.H:75
Namespace for OpenFOAM.
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition typeInfo.H:68