40 cyclicAMIPatch_(refCast<const cyclicAMIFvPatch>(p))
54 cyclicAMIPatch_(refCast<const cyclicAMIFvPatch>(p))
56 if (!isA<cyclicAMIFvPatch>(this->patch()))
59 <<
"Field type does not correspond to patch type for patch " 60 << this->patch().index() <<
"." <<
endl 61 <<
"Field type: " << typeName <<
endl 62 <<
"Patch type: " << this->patch().type()
77 cyclicAMIPatch_(refCast<const cyclicAMIFvPatch>(p))
79 if (!isA<cyclicAMIFvPatch>(p))
84 ) <<
"patch " << this->patch().index() <<
" not cyclicAMI type. " 85 <<
"Patch type = " << p.type()
99 cyclicAMIPatch_(ptf.cyclicAMIPatch_)
108 return cyclicAMIPatch_.coupled();
120 const geoField& gf = refCast<const geoField>(this->internalField());
124 const Field<Type>& pnf = gf.boundaryField()[cp.nbrPatchID()];
127 if (cp.applyLowWeightCorrection())
129 tpnf = cyclicAMIPatch_.interpolate(pnf, *
this);
133 tpnf = cyclicAMIPatch_.interpolate(pnf);
136 cp.transform().transform(tpnf.
ref(), tpnf());
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
commsTypes
Types of communications.
T & ref() const
Return non-const reference or generate a fatal error.
Cyclic patch for Arbitrary Mesh Interface (AMI)
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Generic GeometricField class.
virtual bool coupled() const
Return true if running parallel.
virtual tmp< Field< Type > > patchNeighbourField(const Pstream::commsTypes commsType) const
Return patchField on the opposite patch of a coupled patch.
cyclicAMIFvsPatchField(const fvPatch &, const DimensionedField< Type, surfaceMesh > &)
Construct from patch and internal field.
Pre-declare SubField and related Field type.
Foam::fvPatchFieldMapper.
Foam::coupledFvsPatchField.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Foam::cyclicAMIFvsPatchField.
A class for managing temporary objects.