Go to the documentation of this file.
43 cyclicACMIPatch_(refCast<const cyclicACMIPointPatch>(
p)),
58 cyclicACMIPatch_(refCast<const cyclicACMIPointPatch>(
p,
dict)),
62 if (!isType<cyclicACMIPointPatch>(
p))
65 <<
"patch " << this->
patch().index() <<
" not cyclicACMI type. "
66 <<
"Patch type = " << p.type()
82 cyclicACMIPatch_(refCast<const cyclicACMIPointPatch>(
p)),
86 if (!isType<cyclicACMIPointPatch>(this->
patch()))
89 <<
"Field type does not correspond to patch type for patch "
91 <<
"Field type: " << typeName <<
endl
92 <<
"Patch type: " << this->
patch().type()
106 cyclicACMIPatch_(ptf.cyclicACMIPatch_),
121 if (cyclicACMIPatch_.cyclicACMIPatch().owner())
132 refCast<const GeometricField<Type, pointPatchField, pointMesh>>
134 this->internalField()
138 refCast<const cyclicACMIPointPatchField<Type>>
140 fld.boundaryField()[nbrPatch.
index()]
144 Field<Type> ptFld(this->patchInternalField(pField));
145 Field<Type> nbrPtFld(nbr.patchInternalField(pField));
150 const tensor& forwardT = this->forwardT()[0];
151 const tensor& reverseT = this->reverseT()[0];
161 Field<Type> nbrFcFld(nbrPpi().pointToFaceInterpolate(nbrPtFld));
169 this->addToInternalField
172 ppi().faceToPointInterpolate(nbrFcFld)()
178 Field<Type> fcFld(ppi().pointToFaceInterpolate(ptFld));
183 fcFld = cami.
neighbPatch().cyclicAMIPolyPatch::interpolate(fcFld);
186 nbr.addToInternalField
189 nbrPpi().faceToPointInterpolate(fcFld)()
A Coupled boundary condition for pointField.
const cyclicACMIPointPatch & neighbPatch() const
Return neighbour point patch.
virtual void swapAddSeparated(const Pstream::commsTypes commsType, Field< Type > &) const
Complete swap of patch point values and add to local values.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Basic pointPatch represents a set of points from the mesh.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
Foam::pointPatchFieldMapper.
virtual label index() const
Return the index of this patch in the pointBoundaryMesh.
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))
tmp< Field< Type > > interpolate(const Field< Type > &fld, const UList< Type > &defaultValues=UList< Type >()) const
Interpolate field.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual const cyclicAMIPolyPatch & neighbPatch() const
Return a reference to the neighbour patch.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Cyclic ACMI front and back plane patch field.
commsTypes
Types of communications.
Cyclic AMI point patch - place holder only.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
cyclicACMIPointPatchField(const pointPatch &, const DimensionedField< Type, pointMesh > &)
Construct from patch and internal field.
#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...
Cyclic patch for Arbitrary Mesh Interface (AMI)