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"))
71 this->
evaluate(Pstream::commsTypes::blocking);
92 cyclicAMIPatch_(refCast<const cyclicAMIFvPatch>(
p))
94 if (!isA<cyclicAMIFvPatch>(this->
patch()))
97 <<
"' not constraint type '" << typeName <<
"'"
98 <<
"\n for patch " <<
p.name()
99 <<
" of field " << this->internalField().name()
100 <<
" in file " << this->internalField().objectPath()
114 cyclicAMIPatch_(ptf.cyclicAMIPatch_)
127 cyclicAMIPatch_(ptf.cyclicAMIPatch_)
136 return cyclicAMIPatch_.coupled();
144 const Field<Type>& iField = this->primitiveField();
146 cyclicAMIPatch_.cyclicAMIPatch().neighbPatch().faceCells();
151 if (cyclicAMIPatch_.applyLowWeightCorrection())
153 tpnf = cyclicAMIPatch_.interpolate(pnf, this->patchInternalField()());
157 tpnf = cyclicAMIPatch_.interpolate(pnf);
176 this->primitiveField()
179 return refCast<const cyclicAMIFvPatchField<Type>>
181 fld.boundaryField()[cyclicAMIPatch_.neighbPatchID()]
198 cyclicAMIPatch_.cyclicAMIPatch().neighbPatch().faceCells();
203 transformCoupleField(pnf, cmpt);
205 if (cyclicAMIPatch_.applyLowWeightCorrection())
208 pnf = cyclicAMIPatch_.interpolate(pnf, pif);
212 pnf = cyclicAMIPatch_.interpolate(pnf);
216 this->addToInternalField(result, !
add, coeffs, pnf);
231 cyclicAMIPatch_.cyclicAMIPatch().neighbPatch().faceCells();
236 transformCoupleField(pnf);
238 if (cyclicAMIPatch_.applyLowWeightCorrection())
240 Field<Type> pif(psiInternal, cyclicAMIPatch_.faceCells());
241 pnf = cyclicAMIPatch_.interpolate(pnf, pif);
245 pnf = cyclicAMIPatch_.interpolate(pnf);
249 this->addToInternalField(result, !
add, coeffs, pnf);
257 this->writeEntry(
"value", os);
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
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.