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