54 coupledPointCoupledPoint_()
70 if (pointCoupledPoint_[pointi] == -1)
72 pointCoupledPoint_[pointi] = coupledPointPoint.
size();
73 coupledPointPoint.
append(pointi);
78 coupledPointPoint_.
transfer(coupledPointPoint);
85 coupledPointPoint_.
size(),
89 forAll(coupledPointPoint_, coupledPointi)
91 coupledPointCoupledPoint[coupledPointi].
append
101 coupledPointCoupledPoint,
109 forAll(coupledPointCoupledPoint, coupledPointi)
112 forAll(coupledPointCoupledPoint[coupledPointi], iOld)
116 coupledPointCoupledPoint[coupledPointi][iOld]
120 coupledPointCoupledPoint[coupledPointi][iNew] =
121 coupledPointCoupledPoint[coupledPointi][iOld];
125 coupledPointCoupledPoint[coupledPointi].
resize(iNew);
129 coupledPointCoupledPoint_.transfer(cpcp);
156 forAll(indexPoint, indexi)
158 const label pointi = indexPoint[indexi];
159 const label coupledPointi = pointCoupledPoint_[pointi];
161 if (coupledPointi == -1)
continue;
164 coupledPointCoupledPoint_[coupledPointi];
168 remoteCoupledPoints[coupledPoints[i].proci].
append
170 coupledPoints[i].elementi
179 forAll(remoteCoupledPoints, proci)
183 UOPstream(proci, pBufs)() << remoteCoupledPoints[proci];
189 forAll(remoteCoupledPoints, proci)
193 UIPstream(proci, pBufs)() >> remoteCoupledPoints[proci];
198 forAll(remoteCoupledPoints, proci)
200 forAll(remoteCoupledPoints[proci], i)
202 const label coupledPointi = remoteCoupledPoints[proci][i];
203 const label pointi = coupledPointPoint_[coupledPointi];
205 if (pointIndex[pointi] == -1)
207 pointIndex[pointi] = indexPoint.
size();
208 indexPoint.
append(pointi);
#define forAll(list, i)
Loop across all elements in list.
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...
const polyMesh & mesh() const
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
void append(const T &)
Append an element at the end of the list.
void resize(const label)
Alias for setSize(const label)
void size(const label)
Override size to be inconsistent with allocated storage.
const labelList & meshPoints() const
Return labelList of mesh points in patch. They are constructed.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
void finishedSends(const bool block=true)
Mark all sends as having been done. This will start receives.
Input inter-processor communications stream operating on external buffer.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Output inter-processor communications stream operating on external buffer.
static label nProcs(const label communicator=0)
Number of processes in parallel run.
static bool & parRun()
Is this a parallel run?
static int myProcNo(const label communicator=0)
Number of this process (starting from masterNo() = 0)
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.
cellPointLagrangianAddressor(const polyMesh &mesh)
Construct from mesh.
~cellPointLagrangianAddressor()
Destructor.
void sync(labelList &pointIndex, DynamicList< label > &indexPoint) const
Synchronise the identified set of points.
Mesh consisting of general polyhedral cells.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
virtual bool coupled() const
Return true if this patch is geometrically coupled (i.e. faces and.
Struct for keeping processor, element (cell, face, point) index.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
defineTypeNameAndDebug(combustionModel, 0)