1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2004-2010 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
28 An abstract base class for implicitly-coupled interfaces
29 e.g. processor and cyclic patches.
34 \*---------------------------------------------------------------------------*/
36 #ifndef lduInterface_H
37 #define lduInterface_H
39 #include "labelField.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
50 /*---------------------------------------------------------------------------*\
51 Class lduInterface Declaration
52 \*---------------------------------------------------------------------------*/
56 // Private Member Functions
58 //- Disallow default bitwise copy construct
59 lduInterface(const lduInterface&);
61 //- Disallow default bitwise assignment
62 void operator=(const lduInterface&);
67 //- Runtime type information
68 TypeName("lduInterface");
79 virtual ~lduInterface();
86 //- Return faceCell addressing
87 virtual const labelUList& faceCells() const = 0;
90 // Interface transfer functions
92 //- Return the values of the given internal data adjacent to
93 // the interface as a field
94 virtual tmp<labelField> interfaceInternalField
96 const labelUList& internalData
99 //- Initialise transfer of internal field adjacent to the interface
100 virtual void initInternalFieldTransfer
102 const Pstream::commsTypes commsType,
107 //- Transfer and return internal field adjacent to the interface
108 virtual tmp<labelField> internalFieldTransfer
110 const Pstream::commsTypes commsType,
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 } // End namespace Foam
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
124 // ************************************************************************* //