1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
25 tetPolyMeshLduAddressing
31 \*---------------------------------------------------------------------------*/
33 #ifndef tetPolyMeshLduAddressing_H
34 #define tetPolyMeshLduAddressing_H
36 #include "lduAddressing.H"
37 #include "tetPolyMesh.H"
39 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 /*---------------------------------------------------------------------------*\
45 Class tetPolyMeshLduAddressing Declaration
46 \*---------------------------------------------------------------------------*/
48 class tetPolyMeshLduAddressing
54 //- Lower as a subList of allOwner
57 //- Upper as a reference to neighbour
60 //- Patch addressing as a list of sublists
61 labelListList patchAddr_;
63 //- Patch field evaluation schedule
64 const lduSchedule& patchSchedule_;
67 // Private Member Functions
69 //- Disallow default bitwise copy construct
70 tetPolyMeshLduAddressing
72 const tetPolyMeshLduAddressing&
75 //- Disallow default bitwise assignment
76 void operator=(const tetPolyMeshLduAddressing&);
83 //- Construct from components
84 tetPolyMeshLduAddressing(const tetPolyMesh& mesh);
89 virtual ~tetPolyMeshLduAddressing()
95 //- Return number of interfaces
96 virtual label nPatches() const
98 return patchAddr_.size();
101 //- Return lower addressing (i.e. lower label = upper triangle)
102 virtual const unallocLabelList& lowerAddr() const
107 //- Return upper addressing (i.e. upper label)
108 virtual const unallocLabelList& upperAddr() const
113 //- Return patch addressing
114 virtual const unallocLabelList& patchAddr(const label i) const
116 return patchAddr_[i];
119 // Return patch field evaluation schedule
120 virtual const lduSchedule& patchSchedule() const
122 return patchSchedule_;
127 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
129 } // End namespace Foam
131 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
135 // ************************************************************************* //