Go to the documentation of this file.
40 cyclicAMIPatch_(refCast<const cyclicAMIFvPatch>(
p))
54 cyclicAMIPatch_(refCast<const cyclicAMIFvPatch>(
p,
dict))
56 if (!isA<cyclicAMIFvPatch>(
p))
59 <<
" patch type '" <<
p.type()
60 <<
"' not constraint type '" << typeName <<
"'"
61 <<
"\n for patch " <<
p.name()
62 <<
" of field " << this->internalField().name()
63 <<
" in file " << this->internalField().objectPath()
67 if (!
dict.found(
"value") && this->coupled())
69 this->
evaluate(Pstream::commsTypes::blocking);
85 cyclicAMIPatch_(refCast<const cyclicAMIFvPatch>(
p))
87 if (!isA<cyclicAMIFvPatch>(this->
patch()))
90 <<
"' not constraint type '" << typeName <<
"'"
91 <<
"\n for patch " <<
p.name()
92 <<
" of field " << this->internalField().name()
93 <<
" in file " << this->internalField().objectPath()
107 cyclicAMIPatch_(ptf.cyclicAMIPatch_)
120 cyclicAMIPatch_(ptf.cyclicAMIPatch_)
129 return cyclicAMIPatch_.coupled();
137 const Field<Type>& iField = this->primitiveField();
139 cyclicAMIPatch_.cyclicAMIPatch().neighbPatch().faceCells();
144 if (cyclicAMIPatch_.applyLowWeightCorrection())
146 tpnf = cyclicAMIPatch_.interpolate(pnf, this->patchInternalField()());
150 tpnf = cyclicAMIPatch_.interpolate(pnf);
169 this->primitiveField()
172 return refCast<const cyclicAMIFvPatchField<Type>>
174 fld.boundaryField()[cyclicAMIPatch_.neighbPatchID()]
191 cyclicAMIPatch_.cyclicAMIPatch().neighbPatch().faceCells();
196 transformCoupleField(pnf, cmpt);
198 if (cyclicAMIPatch_.applyLowWeightCorrection())
201 pnf = cyclicAMIPatch_.interpolate(pnf, pif);
205 pnf = cyclicAMIPatch_.interpolate(pnf);
209 this->addToInternalField(result, !
add, coeffs, pnf);
224 cyclicAMIPatch_.cyclicAMIPatch().neighbPatch().faceCells();
229 transformCoupleField(pnf);
231 if (cyclicAMIPatch_.applyLowWeightCorrection())
233 Field<Type> pif(psiInternal, cyclicAMIPatch_.faceCells());
234 pnf = cyclicAMIPatch_.interpolate(pnf, pif);
238 pnf = cyclicAMIPatch_.interpolate(pnf);
242 this->addToInternalField(result, !
add, coeffs, pnf);
250 this->writeEntry(
"value", os);
A class for managing temporary objects.
Abstract base class for cyclic AMI coupled interfaces.
virtual void write(Ostream &os) const
Write.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
This boundary condition enforces a cyclic condition between a pair of boundaries, whereby communicati...
Generic templated field type.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
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,...
void add(FieldField< Field1, typename typeOfSum< Type1, Type2 >::type > &f, const FieldField< Field1, Type1 > &f1, const FieldField< Field2, Type2 > &f2)
errorManipArg< error, int > exit(error &err, const int errNo=1)
cyclicAMIFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
commsTypes
Types of communications.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const std::string patch
OpenFOAM patch number as a std::string.
Abstract base class for coupled patches.
virtual void updateInterfaceMatrix(solveScalarField &result, const bool add, const solveScalarField &psiInternal, const scalarField &coeffs, const direction cmpt, const Pstream::commsTypes commsType) const
Update result field based on interface functionality.
virtual bool coupled() const
Return true if coupled. Note that the underlying patch.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Foam::fvPatchFieldMapper.
virtual tmp< Field< Type > > patchNeighbourField() const
Return neighbour coupled internal cell data.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
string evaluate(const std::string &s, size_t pos=0, size_t len=std::string::npos)
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const cyclicAMIFvPatchField< Type > & neighbourPatchField() const
Return reference to neighbour patchField.