Go to the documentation of this file.
42 cyclicPatch_(refCast<const cyclicFvPatch>(
p))
55 cyclicPatch_(refCast<const cyclicFvPatch>(
p,
dict))
57 if (!isA<cyclicFvPatch>(
p))
60 <<
" patch type '" <<
p.type()
61 <<
"' not constraint type '" << typeName <<
"'"
62 <<
"\n for patch " <<
p.name()
63 <<
" of field " << this->internalField().name()
64 <<
" in file " << this->internalField().objectPath()
68 this->
evaluate(Pstream::commsTypes::blocking);
82 cyclicPatch_(refCast<const cyclicFvPatch>(
p))
84 if (!isA<cyclicFvPatch>(this->
patch()))
87 <<
"' not constraint type '" << typeName <<
"'"
88 <<
"\n for patch " <<
p.name()
89 <<
" of field " << this->internalField().name()
90 <<
" in file " << this->internalField().objectPath()
104 cyclicPatch_(ptf.cyclicPatch_)
116 cyclicPatch_(ptf.cyclicPatch_)
126 const Field<Type>& iField = this->primitiveField();
128 cyclicPatch().cyclicPatch().neighbPatch().faceCells();
140 forwardT()[0], iField[nbrFaceCells[facei]]
148 pnf[facei] = iField[nbrFaceCells[facei]];
163 this->primitiveField()
166 return refCast<const cyclicFvPatchField<Type>>
168 fld.boundaryField()[this->cyclicPatch().neighbPatchID()]
185 cyclicPatch().cyclicPatch().neighbPatch().faceCells();
190 transformCoupleField(pnf, cmpt);
193 this->addToInternalField(result, !
add, coeffs, pnf);
208 cyclicPatch().cyclicPatch().neighbPatch().faceCells();
213 transformCoupleField(pnf);
216 this->addToInternalField(result, !
add, coeffs, pnf);
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.
A class for managing temporary objects.
const cyclicFvPatchField< Type > & neighbourPatchField() const
Return reference to neighbour patchField.
dimensionSet transform(const dimensionSet &ds)
Return the argument; transformations do not change the dimensions.
#define forAll(list, i)
Loop across all elements in list.
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)
commsTypes
Types of communications.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Abstract base class for cyclic coupled interfaces.
tmp< Field< Type > > patchNeighbourField() const
Return neighbour coupled internal cell data.
const std::string patch
OpenFOAM patch number as a std::string.
Abstract base class for coupled patches.
cyclicFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
virtual void write(Ostream &os) const
Write.
This boundary condition enforces a cyclic condition between a pair of boundaries.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
Foam::fvPatchFieldMapper.
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...