63 const word& fieldName,
89 symMatrixConstructorTable::iterator constructorIter =
90 symMatrixConstructorTablePtr_->find(name);
92 if (constructorIter == symMatrixConstructorTablePtr_->end())
95 <<
"Unknown symmetric matrix smoother " 97 <<
"Valid symmetric matrix smoothers are :" <<
endl 98 << symMatrixConstructorTablePtr_->sortedToc()
116 asymMatrixConstructorTable::iterator constructorIter =
117 asymMatrixConstructorTablePtr_->find(name);
119 if (constructorIter == asymMatrixConstructorTablePtr_->end())
122 <<
"Unknown asymmetric matrix smoother " 124 <<
"Valid asymmetric matrix smoothers are :" <<
endl 125 << asymMatrixConstructorTablePtr_->sortedToc()
144 <<
"cannot solve incomplete matrix, " 145 "no diagonal or off-diagonal coefficient" 157 const word& fieldName,
164 fieldName_(fieldName),
166 interfaceBouCoeffs_(interfaceBouCoeffs),
167 interfaceIntCoeffs_(interfaceIntCoeffs),
168 interfaces_(interfaces)
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual const dictionary & dict() const =0
Return dictionary if this entry is a dictionary.
const entry & lookupEntry(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream if present otherwise error.
static word getName(const dictionary &)
Find the smoother name (directly or from a sub-dictionary)
A class for handling words, derived from string.
virtual bool isDict() const
Return true if this entry is a dictionary.
smoother(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces)
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
word name(const complex &)
Return a string representation of a complex.
lduMatrix is a general matrix class in which the coefficients are stored as three arrays...
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
static autoPtr< smoother > New(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces, const dictionary &solverControls)
Return a new smoother.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
const doubleScalar e
Elementary charge.
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
A keyword and a list of tokens is an 'entry'.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.