processorCyclicFvPatch.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 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::processorCyclicFvPatch
28
29Description
30 Processor patch.
31
32SourceFiles
33 processorCyclicFvPatch.C
34
35\*---------------------------------------------------------------------------*/
36
37#ifndef processorCyclicFvPatch_H
38#define processorCyclicFvPatch_H
39
41#include "processorFvPatch.H"
42
43// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45namespace Foam
46{
47
48/*---------------------------------------------------------------------------*\
49 Class processorCyclicFvPatch Declaration
50\*---------------------------------------------------------------------------*/
53:
54 public processorFvPatch
55{
56 // Private Data
57
58 const processorCyclicPolyPatch& procPolyPatch_;
59
60public:
61
62 //- Runtime type information
63 TypeName(processorCyclicPolyPatch::typeName_());
64
65
66 // Constructors
67
68 //- Construct from components
70 :
72 procPolyPatch_(refCast<const processorCyclicPolyPatch>(patch))
73 {}
74
75
76 // Member functions
77
78 //- Return message tag used for sending
79 virtual int tag() const
80 {
81 // Allocate from Pstream?
82 return procPolyPatch_.tag();
83 }
86 {
87 return procPolyPatch_;
88 }
89
90 //- Are the cyclic planes parallel
91 virtual bool parallel() const
92 {
93 return procPolyPatch_.parallel();
94 }
95
96 //- Return face transformation tensor
97 virtual const tensorField& forwardT() const
98 {
99 return procPolyPatch_.forwardT();
100 }
101
102 //- Return neighbour-cell transformation tensor
103 virtual const tensorField& reverseT() const
104 {
105 return procPolyPatch_.reverseT();
106 }
107};
108
109
110// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111
112} // End namespace Foam
113
114// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115
116#endif
117
118// ************************************************************************* //
Foam::fvBoundaryMesh.
const polyPatch & patch() const
Return the polyPatch.
Definition: fvPatch.H:167
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:75
TypeName(processorCyclicPolyPatch::typeName_())
Runtime type information.
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
processorCyclicFvPatch(const polyPatch &patch, const fvBoundaryMesh &bm)
Construct from components.
virtual bool parallel() const
Are the cyclic planes parallel.
const processorCyclicPolyPatch & procPolyPatch() const
virtual int tag() const
Return message tag used for sending.
virtual const tensorField & forwardT() const
Return face transformation tensor.
virtual const tensorField & reverseT() const
Return neighbour-cell transformation tensor.
virtual bool parallel() const
Are the cyclic planes parallel.
virtual int tag() const
Return message tag to use for communication.
virtual const tensorField & forwardT() const
Return face transformation tensor.
Namespace for OpenFOAM.
To & refCast(From &r)
Reference type cast template function.
Definition: typeInfo.H:131
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Definition: typeInfo.H:73