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