foamVtuSizingI.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) 2017-2022 OpenCFD Ltd.
9 -------------------------------------------------------------------------------
10 License
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 "foamVtuSizing.H"
29 
30 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
31 
32 inline bool Foam::vtk::vtuSizing::decompose() const noexcept
33 {
34  return decompose_;
35 }
36 
37 
39 {
40  return manifold_;
41 }
42 
43 
46 {
47  return selectionMode_;
48 }
49 
50 
51 inline Foam::label Foam::vtk::vtuSizing::nCells() const noexcept
52 {
53  return nCells_;
54 }
55 
56 
57 inline Foam::label Foam::vtk::vtuSizing::nPoints() const noexcept
58 {
59  return nPoints_;
60 }
61 
62 
63 inline Foam::label Foam::vtk::vtuSizing::nVertLabels() const noexcept
64 {
65  return nVertLabels_;
66 }
67 
68 
69 inline Foam::label Foam::vtk::vtuSizing::nFaceLabels() const noexcept
70 {
71  return nFaceLabels_;
72 }
73 
74 
75 inline Foam::label Foam::vtk::vtuSizing::nCellsPoly() const noexcept
76 {
77  return nCellsPoly_;
78 }
79 
80 
81 inline Foam::label Foam::vtk::vtuSizing::nVertPoly() const noexcept
82 {
83  return nVertPoly_;
84 }
85 
86 
87 inline Foam::label Foam::vtk::vtuSizing::nAddCells() const noexcept
88 {
89  return nAddCells_;
90 }
91 
92 
93 inline Foam::label Foam::vtk::vtuSizing::nAddPoints() const noexcept
94 {
95  return nAddPoints_;
96 }
97 
98 
99 inline Foam::label Foam::vtk::vtuSizing::nAddVerts() const noexcept
100 {
101  return nAddVerts_;
102 }
103 
105 inline Foam::label Foam::vtk::vtuSizing::nFieldCells() const noexcept
106 {
107  return (nCells_ + nAddCells_);
108 }
109 
111 inline Foam::label Foam::vtk::vtuSizing::nFieldPoints() const noexcept
112 {
113  return (nPoints_ + nAddPoints_);
114 }
115 
116 
117 inline Foam::label Foam::vtk::vtuSizing::sizeLegacy() const
118 {
119  return sizeOf(contentType::LEGACY, slotType::CELLS);
120 }
121 
122 
123 inline Foam::label Foam::vtk::vtuSizing::sizeLegacy
124 (
125  const enum slotType slot
126 ) const
127 {
128  return sizeOf(contentType::LEGACY, slot);
129 }
130 
131 
132 inline Foam::label Foam::vtk::vtuSizing::sizeXml
133 (
134  const enum slotType slot
135 ) const
136 {
137  return sizeOf(contentType::XML, slot);
138 }
139 
140 
141 inline Foam::label Foam::vtk::vtuSizing::sizeInternal1
142 (
143  const enum slotType slot
144 ) const
145 {
146  return sizeOf(contentType::INTERNAL1, slot);
147 }
148 
149 
150 inline Foam::label Foam::vtk::vtuSizing::sizeInternal2
151 (
152  const enum slotType slot
153 ) const
154 {
155  return sizeOf(contentType::INTERNAL2, slot);
156 }
157 
158 
159 // ************************************************************************* //
selectionModeType
How the mesh cells have been selected or defined.
label nVertLabels() const noexcept
Number of vertex labels for the mesh.
label nAddVerts() const noexcept
Number of additional (decomposed) vertices for the mesh.
bool decompose() const noexcept
Query the decompose flag (normally off)
label nVertPoly() const noexcept
Number of vertex labels for polyhedral cells of the mesh.
label nFaceLabels() const noexcept
Number of polyhedral face labels for the mesh.
label nFieldPoints() const noexcept
Number of field points = nPoints + nAddPoints.
label nAddPoints() const noexcept
Number of additional (decomposed) points for the mesh.
label sizeInternal2(const enum slotType slot) const
The calculated size for vtk-internal storage of the specified slot.
label nCells() const noexcept
Number of cells for the mesh.
bool manifold() const noexcept
Manifold mesh cells detected? Globally consistent quantity.
const direction noexcept
Definition: Scalar.H:258
label nFieldCells() const noexcept
Number of field cells = nCells + nAddCells.
label sizeInternal1(const enum slotType slot) const
The calculated size for vtk-internal storage of the specified slot.
label nPoints() const noexcept
Number of points for the mesh.
label sizeLegacy() const
The calculated size for legacy storage.
label nAddCells() const noexcept
Number of additional (decomposed) cells for the mesh.
label nCellsPoly() const noexcept
Number of polyhedral cells for the mesh.
selectionModeType selectionMode() const noexcept
Query how the mesh cells have been selected or defined.
label sizeXml(const enum slotType slot) const
The calculated size for xml storage of the specified slot.