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
27 \*---------------------------------------------------------------------------*/
29 #include "globalTetPolyPatchCellDecomp.H"
30 #include "tetPolyMeshCellDecomp.H"
31 #include "demandDrivenData.H"
34 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
39 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
41 defineTypeNameAndDebug(globalTetPolyPatchCellDecomp, 0);
43 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
45 //- Construct from components
46 globalTetPolyPatchCellDecomp::globalTetPolyPatchCellDecomp
48 const label globalPointSize,
49 const labelList& meshPoints,
50 const labelList& sharedPointAddr,
51 const label globalEdgeSize,
52 const edgeList& meshEdges,
53 const labelList& sharedEdgeAddr,
54 const edgeList& meshCutEdges,
55 const scalarField& meshCutEdgeMask,
56 const tetPolyBoundaryMeshCellDecomp& bm,
60 coupledTetPolyPatchCellDecomp(bm),
61 globalPointSize_(globalPointSize),
62 meshPoints_(meshPoints),
63 sharedPointAddr_(sharedPointAddr),
64 globalEdgeSize_(globalEdgeSize),
65 meshEdges_(meshEdges),
66 sharedEdgeAddr_(sharedEdgeAddr),
67 meshCutEdges_(meshCutEdges),
68 meshCutEdgeMask_(meshCutEdgeMask),
69 boundaryIndex_(index),
70 localEdgeIndicesPtr_(NULL),
71 cutEdgeIndicesPtr_(NULL),
72 cutEdgeOwnerIndicesPtr_(NULL),
73 cutEdgeOwnerStartPtr_(NULL),
74 cutEdgeNeighbourIndicesPtr_(NULL),
75 cutEdgeNeighbourStartPtr_(NULL),
76 doubleCutEdgeIndicesPtr_(NULL),
77 doubleCutOwnerPtr_(NULL),
78 doubleCutNeighbourPtr_(NULL),
79 ownNeiDoubleMaskPtr_(NULL)
83 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
85 globalTetPolyPatchCellDecomp::~globalTetPolyPatchCellDecomp()
87 deleteDemandDrivenData(localEdgeIndicesPtr_);
89 clearCutEdgeAddressing();
93 void globalTetPolyPatchCellDecomp::clearCutEdgeAddressing() const
95 deleteDemandDrivenData(cutEdgeIndicesPtr_);
96 deleteDemandDrivenData(cutEdgeOwnerIndicesPtr_);
97 deleteDemandDrivenData(cutEdgeOwnerStartPtr_);
98 deleteDemandDrivenData(cutEdgeNeighbourIndicesPtr_);
99 deleteDemandDrivenData(cutEdgeNeighbourStartPtr_);
101 deleteDemandDrivenData(doubleCutEdgeIndicesPtr_);
102 deleteDemandDrivenData(doubleCutOwnerPtr_);
103 deleteDemandDrivenData(doubleCutNeighbourPtr_);
105 deleteDemandDrivenData(ownNeiDoubleMaskPtr_);
109 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
111 const pointField& globalTetPolyPatchCellDecomp::localPoints() const
113 notImplemented("globalTetPolyPatchCellDecomp::localPoints() const");
114 return pointField::null();
118 const vectorField& globalTetPolyPatchCellDecomp::pointNormals() const
120 notImplemented("globalTetPolyPatchCellDecomp::pointNormals() const");
121 return pointField::null();
125 triFaceList globalTetPolyPatchCellDecomp::faceTriangles
132 "globalTetPolyPatchCellDecomp::faceTriangles(label faceID) const"
135 return List<triFace>::null();
139 faceList globalTetPolyPatchCellDecomp::triFaces() const
143 "faceList globalTetPolyPatchCellDecomp::triFaces() const"
146 return faceList::null();
150 void globalTetPolyPatchCellDecomp::updateMesh()
152 notImplemented("globalTetPolyPatchCellDecomp::updateMesh()");
156 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
158 } // End namespace Foam
160 // ************************************************************************* //