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 tetPolyMeshLduAddressingCellDecomp
32 \*---------------------------------------------------------------------------*/
34 #ifndef tetPolyMeshLduAddressingCellDecomp_H
35 #define tetPolyMeshLduAddressingCellDecomp_H
37 #include "lduAddressing.H"
38 #include "tetPolyMeshCellDecomp.H"
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45 /*---------------------------------------------------------------------------*\
46 Class tetPolyMeshLduAddressingCellDecomp Declaration
47 \*---------------------------------------------------------------------------*/
49 class tetPolyMeshLduAddressingCellDecomp
62 labelListList patchAddr_;
64 //- Patch field evaluation schedule
65 const lduSchedule& patchSchedule_;
68 // Private Member Functions
70 //- Disallow default bitwise copy construct
71 tetPolyMeshLduAddressingCellDecomp
73 const tetPolyMeshLduAddressingCellDecomp&
76 //- Disallow default bitwise assignment
77 void operator=(const tetPolyMeshLduAddressingCellDecomp&);
84 //- Construct from components
85 tetPolyMeshLduAddressingCellDecomp(const tetPolyMeshCellDecomp& mesh);
90 virtual ~tetPolyMeshLduAddressingCellDecomp()
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 // ************************************************************************* //