oversetGAMGInterface.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) 2021 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::oversetGAMGInterface
28 
29 Description
30  GAMG agglomerated cyclic AMI interface.
31 
32 SourceFiles
33  oversetGAMGInterface.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef oversetGAMGInterface_H
38 #define oversetGAMGInterface_H
39 
40 #include "GAMGInterface.H"
41 #include "oversetLduInterface.H"
42 
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 
45 namespace Foam
46 {
47 
48 /*---------------------------------------------------------------------------*\
49  Class oversetGAMGInterface Declaration
50 \*---------------------------------------------------------------------------*/
51 
53 :
54  public GAMGInterface,
55  virtual public oversetLduInterface
56 {
57  // Private Member Functions
58 
59  //- No copy construct
61 
62  //- No copy assignment
63  void operator=(const oversetGAMGInterface&) = delete;
64 
65 
66 public:
67 
68  //- Runtime type information
69  TypeName("overset");
70 
71 
72  // Constructors
73 
74  //- Construct from fine level interface,
75  //- local and neighbour restrict addressing
77  (
78  const label index,
80  const lduInterface& fineInterface,
81  const labelField& restrictAddressing,
82  const labelField& neighbourRestrictAddressing,
83  const label fineLevelIndex,
84  const label coarseComm
85  );
86 
87 
88  //- Destructor
89  virtual ~oversetGAMGInterface();
90 
91 
92  // Member Functions
93 
94  // Interface transfer functions
95 
96  //- Transfer and return internal field adjacent to the interface
98  (
99  const Pstream::commsTypes commsType,
100  const labelUList& iF
101  ) const;
102 
103 
104  // I/O
105 
106  //- Write to stream
107  virtual void write(Ostream&) const
108  {
110  }
111 };
112 
113 
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
115 
116 } // End namespace Foam
117 
118 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
119 
120 #endif
121 
122 // ************************************************************************* //
commsTypes
Types of communications.
Definition: UPstream.H:66
GAMG agglomerated cyclic AMI interface.
virtual label index() const
TypeName("overset")
Runtime type information.
virtual tmp< labelField > internalFieldTransfer(const Pstream::commsTypes commsType, const labelUList &iF) const
Transfer and return internal field adjacent to the interface.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Definition: Ostream.H:55
Abstract base class for GAMG agglomerated interfaces.
Definition: GAMGInterface.H:50
virtual ~oversetGAMGInterface()
Destructor.
virtual const lduInterfacePtrsList & coarseInterfaces() const
An abstract base class for overset coupled interfaces.
An abstract base class for implicitly-coupled interfaces e.g. processor and cyclic patches...
Definition: lduInterface.H:53
virtual void write(Ostream &) const
Write to stream.
A class for managing temporary objects.
Definition: HashPtrTable.H:50
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
Definition: error.H:666
Namespace for OpenFOAM.