polyTopoChangeMap.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
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
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
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.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "polyTopoChangeMap.H"
27 #include "polyMesh.H"
28 
29 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
30 
32 :
33  mesh_(mesh),
34  nOldPoints_(-1),
35  nOldFaces_(-1),
36  nOldCells_(-1)
37 {}
38 
39 
41 (
42  const polyMesh& mesh,
43  const label nOldPoints,
44  const label nOldFaces,
45  const label nOldCells,
46  labelList&& pointMap,
47  List<objectMap>&& pointsFromPoints,
49  List<objectMap>&& facesFromFaces,
50  labelList&& cellMap,
51  List<objectMap>&& cellsFromCells,
52  labelList&& reversePointMap,
53  labelList&& reverseFaceMap,
54  labelList&& reverseCellMap,
55  labelHashSet&& flipFaceFlux,
56  labelListList&& patchPointMap,
57  labelList&& oldPatchSizes,
58  labelList&& oldPatchStarts,
59  labelList&& oldPatchNMeshPoints,
60  autoPtr<scalarField>&& oldCellVolumesPtr
61 )
62 :
63  mesh_(mesh),
64  nOldPoints_(nOldPoints),
65  nOldFaces_(nOldFaces),
66  nOldCells_(nOldCells),
67  pointMap_(move(pointMap)),
68  pointsFromPointsMap_(move(pointsFromPoints)),
69  faceMap_(move(faceMap)),
70  facesFromFacesMap_(move(facesFromFaces)),
71  cellMap_(move(cellMap)),
72  cellsFromCellsMap_(move(cellsFromCells)),
73  reversePointMap_(move(reversePointMap)),
74  reverseFaceMap_(move(reverseFaceMap)),
75  reverseCellMap_(move(reverseCellMap)),
76  flipFaceFlux_(move(flipFaceFlux)),
77  patchPointMap_(move(patchPointMap)),
78  oldPatchSizes_(move(oldPatchSizes)),
79  oldPatchStarts_(move(oldPatchStarts)),
80  oldPatchNMeshPoints_(move(oldPatchNMeshPoints)),
81  oldCellVolumesPtr_(move(oldCellVolumesPtr))
82 {}
83 
84 
85 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:80
polyTopoChangeMap(const polyMesh &mesh)
Construct from mesh only, no topology change.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)