pointPatch.C
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) 2011-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 "pointPatch.H"
27 #include "pointMesh.H"
28 
29 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
30 
31 namespace Foam
32 {
34 }
35 
36 
37 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
38 
40 {
41  return boundaryMesh_.mesh().poly().boundary()[index()];
42 }
43 
44 
46 {
47  return boundaryMesh_.mesh().db();
48 }
49 
50 
52 {
53  return boundaryMesh_.mesh();
54 }
55 
56 
58 {
59  return boundaryMesh_.mesh().time();
60 }
61 
62 
64 {
65  return poly().constraint();
66 }
67 
68 
69 // ************************************************************************* //
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Definition: Time.H:76
Registry of regIOobjects.
const Time & time() const
Return time.
const objectRegistry & db() const
Return the objectRegistry.
const pointMesh & mesh() const
Return the mesh reference.
Mesh representing a set of points created from polyMesh.
Definition: pointMesh.H:52
const polyMesh & poly() const
Return reference to polyMesh.
Definition: pointMesh.H:131
Basic pointPatch represents a set of points from the mesh.
Definition: pointPatch.H:61
const polyPatch & poly() const
Return the polyPatch.
Definition: pointPatch.C:39
const Time & time() const
Return time.
Definition: pointPatch.C:57
const objectRegistry & db() const
Return the local object registry.
Definition: pointPatch.C:45
virtual label index() const =0
Return the index of this patch in the pointBoundaryMesh.
virtual bool constraint() const
Return true if this patch is a constraint type.
Definition: pointPatch.C:63
const pointMesh & mesh() const
Return mesh reference.
Definition: pointPatch.C:51
const polyBoundaryMesh & boundary() const
Return boundary mesh.
Definition: polyMesh.H:393
A patch is a list of labels that address the faces in the global face list.
Definition: polyPatch.H:71
Namespace for OpenFOAM.
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)