zonalThermoI.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) 2026 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 "zonalThermo.H"
27 #include "fvsPatchField.H"
28 
29 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
30 
32 {
33  return nil();
34 }
35 
36 
38 (
39  const nil,
40  const label celli
41 ) const
42 {
43  return ztzs_.cellZones()[celli];
44 }
45 
46 
48 (
49  const nil,
50  const label patchi,
51  const label patchFacei
52 ) const
53 {
54  const label facei = mesh().polyFacesBf()[patchi][patchFacei];
55 
56  return ztzs_.cellZones()[mesh().faceOwner()[facei]];
57 }
58 
59 
61 (
62  const fvSource& model,
63  const volScalarField::Internal& source
64 ) const
65 {
66  return nil();
67 }
68 
69 
71 (
72  const nil,
73  const label celli
74 ) const
75 {
76  return celli;
77 }
78 
79 
81 (
82  const fvSource& model,
83  const scalarField& source,
84  const labelUList& cells
85 ) const
86 {
87  return cells;
88 }
89 
90 
92 (
93  const labelUList& cells,
94  const label i
95 ) const
96 {
97  return ztzs_.cellZones()[cells[i]];
98 }
99 
100 
101 // ************************************************************************* //
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual const fvMesh & mesh() const =0
Return const access to the mesh.
const GeometricBoundaryField< label, surfaceMesh > & polyFacesBf() const
Return face-poly-face addressing.
Definition: fvMesh.C:955
Base class for finite volume sources.
Definition: fvSource.H:53
A zero-sized class without any storage. Used, for example, in HashSet.
Definition: nil.H:59
virtual const labelList & faceOwner() const
Return face owner.
Definition: polyMesh.C:1321
label cellComposition(const nil, const label celli) const
Get the composition of an internal cell.
Definition: zonalThermoI.H:38
label patchFaceComposition(const nil, const label patchi, const label patchFacei) const
Get the composition of a boundary face.
Definition: zonalThermoI.H:48
nil Yslicer() const
Get the slicer.
Definition: zonalThermoI.H:31
label sourceCellComposition(const nil, const label i) const
Get the composition of a source cell.
Definition: zonalThermoI.H:71
label patchi
const cellShapeList & cells
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