57 if (!isType<cyclicPointPatch>(
p))
60 <<
"patch " << this->
patch().
index() <<
" not cyclic type. "
61 <<
"Patch type = " << p.type()
79 if (!isType<cyclicPointPatch>(this->
patch()))
82 <<
"Field type does not correspond to patch type for patch "
84 <<
"Field type: " << typeName <<
endl
85 <<
"Patch type: " << this->
patch().type()
99 cyclicPatch_(ptf.cyclicPatch_)
115 if (cyclicPatch_.cyclicPatch().owner())
123 refCast<const GeometricField<Type, pointPatchField, pointMesh>>
125 this->internalField()
129 refCast<const cyclicPointPatchField<Type>>
131 fld.boundaryField()[nbrPatch.
index()]
138 const edgeList& pairs = cyclicPatch_.transformPairs();
145 label pointi = pairs[pairi][0];
146 label nbrPointi = pairs[pairi][1];
148 Type
tmp = pf[pointi];
149 pf[pointi] =
transform(forwardT()[0], nbrPf[nbrPointi]);
157 Swap(pf[pairs[pairi][0]], nbrPf[pairs[pairi][1]]);
160 this->addToInternalField(pField, pf);
161 nbr.addToInternalField(pField, nbrPf);
Info<< nl<< "Wrote faMesh in vtk format: "<< writer.output().name()<< nl;}{ vtk::lineWriter writer(aMesh.points(), aMesh.edges(), fileName(aMesh.mesh().time().globalPath()/"finiteArea-edges"));writer.writeGeometry();writer.beginCellData(4);writer.writeProcIDs();{ Field< scalar > fld(faMeshTools::flattenEdgeField(aMesh.magLe(), true))
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic templated field type.
Generic GeometricField class.
commsTypes
Types of communications.
A Coupled boundary condition for pointField.
Cyclic front and back plane patch field.
virtual void swapAddSeparated(const Pstream::commsTypes commsType, Field< Type > &) const
Complete swap of patch point values and add to local values.
Cyclic patch for post-processing.
const cyclicPointPatch & neighbPatch() const
Return neighbour point patch.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual label index() const
Return the index of this patch in the pointBoundaryMesh.
Foam::pointPatchFieldMapper.
const pointPatch & patch() const
Return patch.
Basic pointPatch represents a set of points from the mesh.
virtual label index() const =0
Return the index of this patch in the pointBoundaryMesh.
A class for managing temporary objects.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
To & refCast(From &r)
Reference type cast template function.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
void Swap(DynamicList< T, SizeMinA > &a, DynamicList< T, SizeMinB > &b)
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define forAll(list, i)
Loop across all elements in list.