BUGFIX: Illegal use of uninitialised value (backport)
[foam-extend-3.2.git] / src / dynamicMesh / dynamicFvMesh / dynamicTopoFvMesh / convexSetAlgorithm / cellSetAlgorithm.H
blobfbf2a4049af4210638c50c83b7e422a89202f25b
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     cellSetAlgorithm
28 Description
29     Class for convexSetAlgorithms pertaining to cells
31 Author
32     Sandeep Menon
33     University of Massachusetts Amherst
34     All rights reserved
36 SourceFiles
37     cellSetAlgorithm.C
39 \*---------------------------------------------------------------------------*/
41 #ifndef cellSetAlgorithm_H
42 #define cellSetAlgorithm_H
44 #include "convexSetAlgorithm.H"
46 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 namespace Foam
51 /*---------------------------------------------------------------------------*\
52                      Class cellSetAlgorithm Declaration
53 \*---------------------------------------------------------------------------*/
55 class cellSetAlgorithm
57     public convexSetAlgorithm
60     // Private Member Functions
62         //- Disallow default bitwise copy construct
63         cellSetAlgorithm(const cellSetAlgorithm&);
65         //- Disallow default bitwise assignment
66         void operator=(const cellSetAlgorithm&);
68         //- Write out tets as a VTK
69         void writeVTK
70         (
71             const word&,
72             const List<FixedList<point, 4> >&
73         ) const;
75 public:
77     //- Constructor
79         cellSetAlgorithm
80         (
81             const polyMesh& mesh,
82             const pointField& newPoints,
83             const UList<edge>& newEdges,
84             const UList<face>& newFaces,
85             const UList<cell>& newCells,
86             const UList<label>& newOwner,
87             const UList<label>& newNeighbour
88         );
90     //- Destructor
92         virtual ~cellSetAlgorithm()
93         {}
95     //- Virtual member functions
97         // Dimensions of the algorithm
98         virtual label dimension() const
99         {
100             return 3;
101         }
103         // Compute normFactor
104         virtual void computeNormFactor(const label index) const;
106         // Check whether the bounding box contains the entity
107         virtual bool contains(const label index) const;
109         // Compute intersections
110         virtual bool computeIntersection
111         (
112             const label newIndex,
113             const label oldIndex,
114             const label offset,
115             bool output
116         ) const;
120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
122 } // End namespace Foam
124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
126 #endif
128 // ************************************************************************* //