Loading...
Searching...
No Matches
cyclicAMIFvsPatchField.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::cyclicAMIFvsPatchField
28
29Description
30 This boundary condition enforces a cyclic condition between a pair of
31 boundaries, whereby communication between the patches is performed using
32 an arbitrary mesh interface (AMI) interpolation.
33
34 The "value" entry is MUST_READ.
35
36SourceFiles
37 cyclicAMIFvsPatchField.C
38
39\*---------------------------------------------------------------------------*/
40
41#ifndef Foam_cyclicAMIFvsPatchField_H
42#define Foam_cyclicAMIFvsPatchField_H
43
44#include "cyclicAMIFvPatch.H"
46
47// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48
49namespace Foam
50{
51
52/*---------------------------------------------------------------------------*\
53 Class cyclicAMIFvsPatchField Declaration
54\*---------------------------------------------------------------------------*/
55
56template<class Type>
58:
59 public coupledFvsPatchField<Type>
60{
61 // Private Data
62
63 //- Local reference cast into the cyclic patch
64 const cyclicAMIFvPatch& cyclicAMIPatch_;
65
66
67public:
68
69 //- Runtime type information
70 TypeName(cyclicAMIFvPatch::typeName_());
71
72
73 // Constructors
74
75 //- Construct from patch and internal field
77 (
78 const fvPatch&,
80 );
81
82 //- Construct from patch, internal field and dictionary.
83 //- The "value" entry is MUST_READ.
85 (
86 const fvPatch&,
88 const dictionary&
89 );
90
91 //- Construct by mapping given cyclicAMIFvsPatchField onto a new patch
93 (
95 const fvPatch&,
98 );
99
100 //- Construct as copy
102 (
104 );
105
106 //- Construct as copy setting internal field reference
108 (
111 );
112
113 //- Return clone
114 virtual tmp<fvsPatchField<Type>> clone() const
115 {
116 return fvsPatchField<Type>::Clone(*this);
117 }
118
119 //- Clone with an internal field reference
121 (
123 ) const
124 {
125 return fvsPatchField<Type>::Clone(*this, iF);
126 }
127
128
129 // Member Functions
130
131 //- Return true if running parallel
132 virtual bool coupled() const;
134
135
136// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
137
138} // End namespace Foam
139
140// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
141
142#ifdef NoRepository
143 #include "cyclicAMIFvsPatchField.C"
144#endif
145
146// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
147
148#endif
149
150// ************************************************************************* //
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 patch for Arbitrary Mesh Interface (AMI).
cyclicAMIFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
virtual tmp< fvsPatchField< Type > > clone(const DimensionedField< Type, surfaceMesh > &iF) const
Clone with an internal field reference.
virtual tmp< fvsPatchField< Type > > clone() const
Return clone.
virtual bool coupled() const
Return true if running parallel.
TypeName(cyclicAMIFvPatch::typeName_())
Runtime type information.
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