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 -------------------------------------------------------------------------------
10 License
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 Class
27  Foam::cyclicAMIFvsPatchField
28 
29 Description
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 
36 SourceFiles
37  cyclicAMIFvsPatchField.C
38 
39 \*---------------------------------------------------------------------------*/
40 
41 #ifndef Foam_cyclicAMIFvsPatchField_H
42 #define Foam_cyclicAMIFvsPatchField_H
43 
44 #include "cyclicAMIFvPatch.H"
45 #include "coupledFvsPatchField.H"
46 
47 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 
49 namespace Foam
50 {
51 
52 /*---------------------------------------------------------------------------*\
53  Class cyclicAMIFvsPatchField Declaration
54 \*---------------------------------------------------------------------------*/
55 
56 template<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 
67 public:
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&,
97  const fvPatchFieldMapper&
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;
133 };
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 // ************************************************************************* //
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
static tmp< fvsPatchField< Type > > Clone(const DerivedPatchField &pf, Args &&... args)
Clone a patch field, optionally with internal field reference etc.
Cyclic patch for Arbitrary Mesh Interface (AMI)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:70
virtual bool coupled() const
Return true if running parallel.
cyclicAMIFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
A FieldMapper for finite-volume patch fields.
TypeName(cyclicAMIFvPatch::typeName_())
Runtime type information.
Abstract base class for coupled patches.
virtual tmp< fvsPatchField< Type > > clone() const
Return clone.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
This boundary condition enforces a cyclic condition between a pair of boundaries, whereby communicati...
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Namespace for OpenFOAM.