foamVtuCellsI.H
Go to the documentation of this file.
1/*---------------------------------------------------------------------------*\
2 ========= |
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4 \\ / O peration |
5 \\ / A nd | www.openfoam.com
6 \\/ M anipulation |
7-------------------------------------------------------------------------------
8 Copyright (C) 2016-2021 OpenCFD Ltd.
9-------------------------------------------------------------------------------
10License
11 This file is part of OpenFOAM.
12
13 OpenFOAM is free software: you can redistribute it and/or modify it
14 under the terms of the GNU General Public License as published by
15 the Free Software Foundation, either version 3 of the License, or
16 (at your option) any later version.
17
18 OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25
26\*---------------------------------------------------------------------------*/
27
28#include "foamVtuCells.H"
29
30// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
31
34{
35 return output_;
36}
37
38
40{
41 return decomposeRequest_;
42}
43
44
46{
47 return cellTypes_.empty();
48}
49
50
51inline Foam::label Foam::vtk::vtuCells::size() const noexcept
52{
53 return cellTypes_.size();
54}
55
56
57inline const Foam::List<uint8_t>&
59{
60 return cellTypes_;
61}
62
63
64inline const Foam::labelList&
66{
67 return vertLabels_;
68}
69
70
71inline const Foam::labelList&
73{
74 return vertOffset_;
75}
76
77
78inline const Foam::labelList&
80{
81 return faceLabels_;
82}
83
84
85inline const Foam::labelList&
87{
88 return faceOffset_;
89}
90
91
92inline const Foam::labelList&
94{
95 return maps_.additionalIds();
96}
97
98
99inline const Foam::labelList&
101{
102 return maps_.cellMap();
103}
104
105
106// ************************************************************************* //
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Definition: List.H:77
const List< uint8_t > & cellTypes() const noexcept
Values for "types" (XML) and "CELL_TYPES" (legacy)
Definition: foamVtuCellsI.H:58
const labelList & vertOffsets() const noexcept
Values for "offsets" (XML only)
Definition: foamVtuCellsI.H:72
bool empty() const noexcept
True if no cellTypes are populated.
Definition: foamVtuCellsI.H:45
const labelList & faceOffsets() const noexcept
Values for "faceoffset" (XML only)
Definition: foamVtuCellsI.H:86
const labelList & addPointCellLabels() const noexcept
Additional point addressing (from added point to original cell)
Definition: foamVtuCellsI.H:93
label size() const noexcept
The size of populated cellTypes.
Definition: foamVtuCellsI.H:51
bool decomposeRequested() const noexcept
Query the polyhedral decompose requested flag.
Definition: foamVtuCellsI.H:39
const labelList & cellMap() const noexcept
Original cell ids for all cells (regular and decomposed).
enum contentType content() const noexcept
The output content type.
Definition: foamVtuCellsI.H:33
const labelList & vertLabels() const noexcept
Values for "connectivity" (XML) or "CELLS" (legacy)
Definition: foamVtuCellsI.H:65
const labelList & faceLabels() const noexcept
Values for "faces" (XML only)
Definition: foamVtuCellsI.H:79
contentType
Types of content that the storage may represent.
const direction noexcept
Definition: Scalar.H:223