cellPointLagrangianAddressor.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) 2025 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 Class
25  Foam::cellPointLagrangianAddressor
26 
27 Description
28  Helper class for the cell-point Lagrangian accumulation scheme. This is a
29  mesh object in order to provide a place to store reusable accumulation
30  weights and workspace.
31 
32 SourceFiles
33  cellPointLagrangianAddressor.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef cellPointLagrangianAddressor_H
38 #define cellPointLagrangianAddressor_H
39 
40 #include "CompactListList.H"
41 #include "DemandDrivenMeshObject.H"
42 #include "polyMesh.H"
43 #include "remote.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class cellPointLagrangianAddressor Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
57  <
58  polyMesh,
59  MoveableMeshObject,
60  cellPointLagrangianAddressor
61  >
62 {
63  // Private Data
64 
65  //- Map from mesh point to coupled point index
66  labelList pointCoupledPoint_;
67 
68  //- Map from coupled point to mesh point index
69  labelList coupledPointPoint_;
70 
71  //- For every coupled point, the list of points it is connected to
72  CompactListList<remote> coupledPointCoupledPoint_;
73 
74 
75 protected:
76 
77  // Protected Constructors
78 
79  //- Allow the base mesh object to use the protected constructor
80  friend class DemandDrivenMeshObject
81  <
82  polyMesh,
85  >;
86 
87  //- Construct from mesh
89 
90 
91 public:
92 
93  // Static Data Members
94 
95  //- Runtime type information
96  TypeName("cellPointLagrangianAddressor");
97 
98 
99  // Constructors
100 
101  //- Disallow default bitwise copy construction
103  delete;
104 
105 
106  //- Destructor
108 
109 
110  // Member Functions
111 
112  //- Update for mesh motion
113  virtual bool movePoints();
114 
115  //- Synchronise the identified set of points
116  void sync(labelList& pointIndex, DynamicList<label>& indexPoint) const;
117 
118 
119  // Member Operators
120 
121  //- Disallow default bitwise assignment
122  void operator=(const cellPointLagrangianAddressor&) = delete;
123 };
124 
125 
126 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
127 
128 } // End namespace Foam
129 
130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
131 
132 #endif
133 
134 // ************************************************************************* //
A packed storage unstructured matrix of objects of type <T> using an offset table for access.
Templated abstract base-class for demand-driven mesh objects used to automate their allocation to the...
Helper class for the cell-point Lagrangian accumulation scheme. This is a mesh object in order to pro...
virtual bool movePoints()
Update for mesh motion.
void operator=(const cellPointLagrangianAddressor &)=delete
Disallow default bitwise assignment.
cellPointLagrangianAddressor(const polyMesh &mesh)
Construct from mesh.
TypeName("cellPointLagrangianAddressor")
Runtime type information.
void sync(labelList &pointIndex, DynamicList< label > &indexPoint) const
Synchronise the identified set of points.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:80
Namespace for OpenFOAM.