96 if (UPstream::parRun())
101 this->patchInternalField
104 procPatch_.reverseMeshPoints(),
108 if (commsType == Pstream::commsTypes::nonBlocking)
110 recvBuf_.resize_nocopy(sendBuf_.size());
115 procPatch_.neighbProcNo(),
116 recvBuf_.data_bytes(),
117 recvBuf_.size_bytes(),
125 procPatch_.neighbProcNo(),
126 sendBuf_.cdata_bytes(),
127 sendBuf_.size_bytes(),
138 const Pstream::commsTypes commsType,
142 if (UPstream::parRun())
146 if (commsType != Pstream::commsTypes::nonBlocking)
148 recvBuf_.resize_nocopy(this->size());
152 procPatch_.neighbProcNo(),
153 recvBuf_.data_bytes(),
154 recvBuf_.size_bytes(),
162 const processorCyclicPolyPatch& ppp =
163 procPatch_.procCyclicPolyPatch();
164 const tensor& forwardT = ppp.forwardT()[0];
170 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) to Type reference.
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.