96 if (Pstream::parRun())
101 sendBuf_ = this->patchInternalField
104 procPatch_.reverseMeshPoints()
107 if (commsType == Pstream::commsTypes::nonBlocking)
109 recvBuf_.resize_nocopy(sendBuf_.size());
114 procPatch_.neighbProcNo(),
115 recvBuf_.data_bytes(),
116 recvBuf_.size_bytes(),
124 procPatch_.neighbProcNo(),
125 sendBuf_.cdata_bytes(),
126 sendBuf_.size_bytes(),
137 const Pstream::commsTypes commsType,
141 if (Pstream::parRun())
145 if (commsType != Pstream::commsTypes::nonBlocking)
147 recvBuf_.resize_nocopy(this->size());
151 procPatch_.neighbProcNo(),
152 recvBuf_.data_bytes(),
153 recvBuf_.size_bytes(),
161 const processorCyclicPolyPatch& ppp =
162 procPatch_.procCyclicPolyPatch();
163 const tensor& forwardT = ppp.forwardT()[0];
169 this->addToInternalField(pField, recvBuf_);
Foam::processorCyclicPointPatchField.
processorCyclicPointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
commsTypes
Communications types.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Processor patch boundary needs to be such that the ordering of points in the patch is the same on bot...
Type & refCast(U &obj)
A dynamic_cast (for references). Generates a FatalError on failed casts and uses the virtual type() m...
Foam::pointPatchFieldMapper.
virtual void initSwapAddSeparated(const Pstream::commsTypes commsType, Field< Type > &) const
Initialise swap of non-collocated patch point values.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Generic templated field type.
Basic pointPatch represents a set of points from the mesh.
A Coupled boundary condition for pointField.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const std::string patch
OpenFOAM patch number as a std::string.
virtual void swapAddSeparated(const Pstream::commsTypes commsType, Field< Type > &) const
Complete swap of patch point values and add to local values.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.