nonConformalProcessorCyclicFvPatchField.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Class
25  Foam::nonConformalProcessorCyclicFvPatchField
26 
27 Description
28  This boundary condition enables processor communication across cyclic
29  patches.
30 
31 Usage
32  Example of the boundary condition specification:
33  \verbatim
34  <patchName>
35  {
36  type nonConformalProcessorCyclic;
37  }
38  \endverbatim
39 
40 See also
41  Foam::processorCyclicFvPatchField
42 
43 SourceFiles
44  nonConformalProcessorCyclicFvPatchField.C
45  nonConformalProcessorCyclicFvPatchFields.H
46  nonConformalProcessorCyclicFvPatchFields.C
47  nonConformalProcessorCyclicFvPatchFieldsFwd.H
48 
49 \*---------------------------------------------------------------------------*/
50 
51 #ifndef nonConformalProcessorCyclicFvPatchField_H
52 #define nonConformalProcessorCyclicFvPatchField_H
53 
56 
57 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
58 
59 namespace Foam
60 {
61 
62 /*---------------------------------------------------------------------------*\
63  Class nonConformalProcessorCyclicFvPatchField Declaration
64 \*---------------------------------------------------------------------------*/
65 
66 template<class Type>
68 :
69  public processorCyclicFvPatchField<Type>
70 {
71  // Private Data
72 
73  //- Local reference cast into the processor patch
74  const nonConformalProcessorCyclicFvPatch& procPatch_;
75 
76 
77 public:
78 
79  //- Runtime type information
80  TypeName(nonConformalProcessorCyclicFvPatch::typeName_());
81 
82 
83  // Constructors
84 
85  //- Construct from patch and internal field
87  (
88  const fvPatch&,
90  );
91 
92  //- Construct from patch and internal field and patch field
94  (
95  const fvPatch&,
97  const Field<Type>&
98  );
99 
100  //- Construct from patch, internal field and dictionary
102  (
103  const fvPatch&,
105  const dictionary&
106  );
107 
108  //- Construct by mapping given nonConformalProcessorCyclicFvPatchField
109  // onto a new patch
111  (
113  const fvPatch&,
115  const fvPatchFieldMapper&
116  );
117 
118  //- Disallow copy without setting internal field reference
120  (
122  ) = delete;
123 
124  //- Copy constructor setting internal field reference
126  (
129  );
130 
131  //- Construct and return a clone setting internal field reference
133  (
135  ) const
136  {
137  return tmp<fvPatchField<Type>>
138  (
140  );
141  }
142 
143 
144  //- Destructor
146 
147 
148  // Member Functions
149 
150  // Access
151 
152  //- Return transformation between the coupled patches
153  virtual const transformer& transform() const
154  {
155  return procPatch_.transform();
156  }
157 
158  //- Return rank of component for transform
159  virtual int rank() const
160  {
161  return pTraits<Type>::rank;
162  }
163 };
164 
165 
166 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
167 
168 } // End namespace Foam
169 
170 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171 
172 #ifdef NoRepository
174 #endif
175 
176 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
177 
178 #endif
179 
180 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Pre-declare SubField and related Field type.
Definition: Field.H:82
A list of keyword definitions, which are a keyword followed by any number of values (e....
Definition: dictionary.H:160
Foam::fvPatchFieldMapper.
tmp< fvPatchField< Type > > clone() const
Disallow clone without setting internal field reference.
Definition: fvPatchField.H:203
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Definition: fvPatch.H:64
This boundary condition enables processor communication across cyclic patches.
virtual int rank() const
Return rank of component for transform.
TypeName(nonConformalProcessorCyclicFvPatch::typeName_())
Runtime type information.
virtual const transformer & transform() const
Return transformation between the coupled patches.
nonConformalProcessorCyclicFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Non-conformal processor cyclic FV patch. As nonConformalCyclicFvPatch, but the neighbouring patch is ...
virtual const transformer & transform() const
...
Traits class for primitives.
Definition: pTraits.H:53
This boundary condition enables processor communication across cyclic patches.
A class for managing temporary objects.
Definition: tmp.H:55
Vector-tensor class used to perform translations, rotations and scaling operations in 3D space.
Definition: transformer.H:84
Namespace for OpenFOAM.