1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 tetPolyMeshLduAddressingFaceDecomp
32 \*---------------------------------------------------------------------------*/
34 #ifndef tetPolyMeshLduAddressingFaceDecomp_H
35 #define tetPolyMeshLduAddressingFaceDecomp_H
37 #include "lduAddressing.H"
38 #include "tetPolyMeshFaceDecomp.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class tetPolyMeshLduAddressingFaceDecomp Declaration
47 \*---------------------------------------------------------------------------*/
49 class tetPolyMeshLduAddressingFaceDecomp
55 //- Lower as a subList of allOwner
58 //- Upper as a reference to neighbour
61 //- Patch addressing as a list of sublists
62 labelListList patchAddr_;
64 //- Patch field evaluation schedule
65 const lduSchedule& patchSchedule_;
68 // Private Member Functions
70 //- Disallow default bitwise copy construct
71 tetPolyMeshLduAddressingFaceDecomp
73 const tetPolyMeshLduAddressingFaceDecomp&
76 //- Disallow default bitwise assignment
77 void operator=(const tetPolyMeshLduAddressingFaceDecomp&);
84 //- Construct from components
85 tetPolyMeshLduAddressingFaceDecomp(const tetPolyMeshFaceDecomp& mesh);
90 virtual ~tetPolyMeshLduAddressingFaceDecomp()
96 //- Return number of interfaces
97 virtual label nPatches() const
99 return patchAddr_.size();
102 //- Return lower addressing (i.e. lower label = upper triangle)
103 virtual const unallocLabelList& lowerAddr() const
108 //- Return upper addressing (i.e. upper label)
109 virtual const unallocLabelList& upperAddr() const
114 //- Return patch addressing
115 virtual const unallocLabelList& patchAddr(const label i) const
117 return patchAddr_[i];
120 // Return patch field evaluation schedule
121 virtual const lduSchedule& patchSchedule() const
123 return patchSchedule_;
128 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
130 } // End namespace Foam
132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
136 // ************************************************************************* //