Go to the documentation of this file.
43 cyclicPatch_(refCast<const cyclicPointPatch>(
p))
56 cyclicPatch_(refCast<const cyclicPointPatch>(
p,
dict))
58 if (!isType<cyclicPointPatch>(
p))
61 <<
"patch " << this->
patch().index() <<
" not cyclic type. "
62 <<
"Patch type = " << p.type()
78 cyclicPatch_(refCast<const cyclicPointPatch>(
p))
80 if (!isType<cyclicPointPatch>(this->
patch()))
83 <<
"Field type does not correspond to patch type for patch "
85 <<
"Field type: " << typeName <<
endl
86 <<
"Patch type: " << this->
patch().type()
100 cyclicPatch_(ptf.cyclicPatch_)
116 if (cyclicPatch_.cyclicPatch().owner())
124 refCast<const GeometricField<Type, pointPatchField, pointMesh>>
126 this->internalField()
130 refCast<const cyclicPointPatchField<Type>>
132 fld.boundaryField()[nbrPatch.
index()]
139 const edgeList& pairs = cyclicPatch_.transformPairs();
146 label pointi = pairs[pairi][0];
147 label nbrPointi = pairs[pairi][1];
149 Type
tmp = pf[pointi];
150 pf[pointi] =
transform(forwardT()[0], nbrPf[nbrPointi]);
158 Swap(pf[pairs[pairi][0]], nbrPf[pairs[pairi][1]]);
161 this->addToInternalField(pField, pf);
162 nbr.addToInternalField(pField, nbrPf);
void Swap(DynamicList< T, SizeMinA > &a, DynamicList< T, SizeMinB > &b)
A Coupled boundary condition for pointField.
A class for managing temporary objects.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Basic pointPatch represents a set of points from the mesh.
Cyclic patch for post-processing.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
const cyclicPointPatch & neighbPatch() const
Return neighbour point patch.
Foam::pointPatchFieldMapper.
virtual label index() const
Return the index of this patch in the pointBoundaryMesh.
virtual void swapAddSeparated(const Pstream::commsTypes commsType, Field< Type > &) const
Complete swap of patch point values and add to local values.
#define forAll(list, i)
Loop across all elements in list.
Swap arguments as per std::swap, but in Foam namespace.
Generic templated field type.
gmvFile<< "tracers "<< particles.size()<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().x()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().y()<< ' ';}gmvFile<< nl;for(const passiveParticle &p :particles){ gmvFile<< p.position().z()<< ' ';}gmvFile<< nl;for(const word &name :lagrangianScalarNames){ IOField< scalar > fld(IOobject(name, runTime.timeName(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Cyclic front and back plane patch field.
cyclicPointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
errorManipArg< error, int > exit(error &err, const int errNo=1)
commsTypes
Types of communications.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Generic GeometricField class.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...