Go to the documentation of this file.
51 coarseInterfaces_(coarseInterfaces),
53 faceRestrictAddressing_(is)
77 return interfaceInternalField<label>(internalData);
87 return interfaceInternalField<label>(internalData,
faceCells);
97 auto& coarseCoeffs = tcoarseCoeffs.ref();
99 if (fineCoeffs.size() != faceRestrictAddressing_.size())
102 <<
"Size of coefficients " << fineCoeffs.size()
103 <<
" does not correspond to the size of the restriction "
104 << faceRestrictAddressing_.size()
107 if (
debug &&
max(faceRestrictAddressing_) > size())
110 <<
"Face restrict addressing addresses outside of coarse interface"
111 <<
" size. Max addressing:" <<
max(faceRestrictAddressing_)
112 <<
" coarse size:" << size()
116 forAll(faceRestrictAddressing_, ffi)
118 coarseCoeffs[faceRestrictAddressing_[ffi]] += fineCoeffs[ffi];
121 return tcoarseCoeffs;
virtual void write(Ostream &) const =0
A class for managing temporary objects.
static constexpr const zero Zero
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
labelList faceRestrictAddressing_
GAMGInterface(const GAMGInterface &)=delete
Generic templated field type.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Abstract base class for GAMG agglomerated interfaces.
A list of pointers to objects of type <T>, without allocation/deallocation management of the pointers...
label max(const labelHashSet &set, label maxValue=labelMin)
OBJstream os(runTime.globalPath()/outputName)
virtual tmp< scalarField > agglomerateCoeffs(const scalarField &fineCoeffs) const
errorManip< error > abort(error &err)
tmp< Field< Type > > interfaceInternalField(const UList< Type > &internalData) const
#define FatalErrorInFunction
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
static tmp< T > New(Args &&... args)
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
UList< label > labelUList
A UList of labels.
defineTypeNameAndDebug(combustionModel, 0)
Smooth ATC in cells next to a set of patches supplied by type.
void combine(const GAMGInterface &)