57 nonConformalProcessorCyclicPatch_
87 patchMesh.
sub(
mesh.receivePatchFacePtr_());
89 patchMesh.
sub(
mesh.receivePositionPtr_());
92 UOPstream(nonConformalProcessorCyclicPatch_.neighbProcNo(), pBufs)()
101 receivePatchFace = -1;
114 UIPstream uips(nonConformalProcessorCyclicPatch_.neighbProcNo(), pBufs);
121 nonConformalProcessorCyclicPatch_.referPatch().origPatch();
128 forAll(receivePatchFace, i)
139 receiveCoordinates[i],
148 const scalar positionalErrorSqr =
155 receiveCoordinates[i],
167 sqr(positionalErrorSqr)
171 referPatch().nPositionalErrors_ ++;
173 if (positionalErrorSqr > referPatch().maxPositionalErrorSqr_)
175 referPatch().maxPositionalErrorSqr_ = positionalErrorSqr;
176 referPatch().maxPositionalErrorReceivePosition_ =
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const PrimitiveField< Type > & primitiveField() const
Return a const-reference to the primitive field.
Boundary part of a Lagrangian mesh. Just a list of Lagrangian patches with some added convenience fun...
Class containing Lagrangian geometry and topology.
Base class for Lagrangian patches.
Mesh that relates to a sub-section of a Lagrangian mesh. This is used to construct fields that relate...
SubList< Type > sub(const List< Type > &list) const
Return a sub-list corresponding to this sub-mesh.
void size(const label)
Override size to be inconsistent with allocated storage.
Buffers for inter-processor communications streams (UOPstream, UIPstream).
Pre-declare related SubField type.
Input inter-processor communications stream operating on external buffer.
Output inter-processor communications stream operating on external buffer.
const polyMesh & mesh() const
Return reference to polyMesh.
virtual const labelList & faceOwner() const
Return face owner.
A patch is a list of labels that address the faces in the global face list.
const vectorField::subField faceAreas() const
Return face areas.
label start() const
Return start label of this patch in the polyMesh face list.
Processor-cyclic Lagrangian patch. This is used for the patches that interface between processors acr...
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
point position(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the position given the coordinates and tet topology.
bool locate(const polyMesh &mesh, const point &position, barycentric &coordinates, label &celli, label &facei, label &faceTrii, const scalar stepFraction, const string &debugPrefix=NullObjectRef< string >())
Initialise the location at the given position. Returns whether or not a.
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
To & refCast(From &r)
Reference type cast template function.
defineTypeNameAndDebug(combustionModel, 0)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
void magSqr(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)