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