MPLICcellStorageI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2020-2022 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
26 #include "MPLICcellStorage.H"
27 
28 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
29 
31 {
32  return points_;
33 }
34 
35 
37 {
38  return faces_;
39 }
40 
41 
43 {
44  return edges_;
45 }
46 
47 
49 {
50  return faceEdges_;
51 }
52 
54 {
55  return cPoints_;
56 }
57 
58 
60 {
61  return cFaces_;
62 }
63 
64 
66 {
67  return cEdges_;
68 }
69 
70 
72 {
73  return owns_;
74 }
75 
76 
78 {
79  return pointsAlpha_;
80 }
81 
82 
84 {
85  return pointsU_;
86 }
87 
88 
89 inline Foam::scalar Foam::MPLICcellStorage::cellAlpha() const
90 {
91  return cellAlpha_;
92 }
93 
94 
96 {
97  return celllU_;
98 }
99 
100 
101 inline Foam::scalar Foam::MPLICcellStorage::V() const
102 {
103  return volume_;
104 }
105 
106 
108 {
109  return centre_;
110 }
111 
112 
115 {
116  return Sf_;
117 }
118 
119 
122 {
123  return Cf_;
124 }
125 
126 
129 {
130  return magSf_;
131 }
132 
133 
134 inline Foam::scalar Foam::MPLICcellStorage::cellAlphaMax() const
135 {
136  return cellAlphaMax_;
137 }
138 
139 
140 inline Foam::scalar Foam::MPLICcellStorage::cellAlphaMin() const
141 {
142  return cellAlphaMin_;
143 }
144 
145 
147 {
148  return facesAlphaMin_;
149 }
150 
151 
153 {
154  return facesAlphaMax_;
155 }
156 
157 
159 {
160  return cFaces_.size();
161 }
162 
163 
164 // ************************************************************************* //
const labelList & cellPoints() const
Return reference to the cell points.
const UIndirectList< vector > & Cf() const
Return face centres.
const boolList & isOwner() const
Return isOwners.
const scalarField & pointsAlpha() const
Return point alphas.
const edgeList & edges() const
Return reference to the mesh edges.
const scalarField & facesAlphaMin() const
Return minimum point alpha value on the cell faces.
scalar V() const
Return cell volume.
const faceList & faces() const
Return reference to the mesh faces.
label size() const
Return number of faces in the the cell.
scalar cellAlphaMin() const
Return minimum point alpha value in the cell.
const vector & C() const
Return cell centre.
const labelList & cellFaces() const
Return reference to face list.
const UIndirectList< vector > & Sf() const
Return face surface area vectors.
scalar cellAlphaMax() const
Return maximum point alpha value in the cell.
const vectorField & pointsU() const
Return point velocities.
const UIndirectList< scalar > & magSf() const
Return face areas.
const labelList & cellEdges() const
Return reference to cell edges.
const pointField & points() const
Return reference to mesh points.
const labelListList & faceEdges() const
Return reference to the mesh face edges.
const scalarField & facesAlphaMax() const
Return maximum point alpha value on the cell faces.
const vector & cellU() const
Return cell velocity.
scalar cellAlpha() const
Return cell alpha.
A List with indirect addressing.
Definition: UIndirectList.H:60
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59