72 Foam::cyclicGAMGInterface::cyclicGAMGInterface
79 const label fineLevelIndex,
80 const label coarseComm
97 localRestrictAddressing.
size()
103 forAll(localRestrictAddressing, ffi)
114 localRestrictAddressing[ffi],
115 neighbourRestrictAddressing[ffi]
123 neighbourRestrictAddressing[ffi],
124 localRestrictAddressing[ffi]
128 const auto fnd = cellsToCoarseFace.cfind(cellPair);
133 dynFaceRestrictAddressing.append(fnd.val());
138 label coarseI = dynFaceCells.size();
139 dynFaceRestrictAddressing.append(coarseI);
140 dynFaceCells.append(localRestrictAddressing[ffi]);
141 cellsToCoarseFace.insert(cellPair, coarseI);
150 Foam::cyclicGAMGInterface::cyclicGAMGInterface
165 Foam::cyclicGAMGInterface::cyclicGAMGInterface
182 faceRestrictAddresssing
209 auto& pnf = tpnf.ref();
213 pnf[facei] = iF[nbrFaceCells[facei]];
label find(const ListType &input, const UnaryPredicate &pred, const label start=0)
Same as ListOps::find_if.
void size(const label n)
Older name for setAddressableSize.
commsTypes
Communications types.
void transfer(List< T > &list)
Transfer the contents of the argument List into this list and annul the argument list.
virtual const labelUList & faceCells() const
Return faceCell addressing.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
virtual tmp< labelField > internalFieldTransfer(const Pstream::commsTypes commsType, const labelUList &iF) const
Transfer and return internal field adjacent to the interface.
An abstract base class for cyclic coupled interfaces.
label readLabel(const char *buf)
Parse entire buffer as a label, skipping leading/trailing whitespace.
labelList faceRestrictAddressing_
Face restrict addressing.
Smooth ATC in cells next to a set of patches supplied by type.
Macros for easy insertion into run-time selection tables.
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
#define forAll(list, i)
Loop across all elements in list.
virtual void write(Ostream &os) const
Write to stream.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
A HashTable to objects of type <T> with a labelPair key. The hashing is based on labelPair (FixedList...
Pair< label > labelPair
A pair of labels.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
Abstract base class for GAMG agglomerated interfaces.
virtual void write(Ostream &) const =0
Write to stream.
An abstract base class for implicitly-coupled interfaces e.g. processor and cyclic patches...
labelList faceCells_
Face-cell addressing.
A class for managing temporary objects.
virtual bool owner() const
bool readBool(Istream &is)
Read bool from stream using Foam::Switch(Istream&)
GAMG agglomerated cyclic interface.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)