63 const word& fieldName,
89 symMatrixConstructorTable::iterator constructorIter =
90 symMatrixConstructorTablePtr_->find(name);
92 if (constructorIter == symMatrixConstructorTablePtr_->end())
96 "lduMatrix::smoother::New", solverControls
97 ) <<
"Unknown symmetric matrix smoother " 99 <<
"Valid symmetric matrix smoothers are :" <<
endl 100 << symMatrixConstructorTablePtr_->sortedToc()
118 asymMatrixConstructorTable::iterator constructorIter =
119 asymMatrixConstructorTablePtr_->find(name);
121 if (constructorIter == asymMatrixConstructorTablePtr_->end())
125 "lduMatrix::smoother::New", solverControls
126 ) <<
"Unknown asymmetric matrix smoother " 128 <<
"Valid asymmetric matrix smoothers are :" <<
endl 129 << asymMatrixConstructorTablePtr_->sortedToc()
149 "lduMatrix::smoother::New", solverControls
150 ) <<
"cannot solve incomplete matrix, " 151 "no diagonal or off-diagonal coefficient" 163 const word& fieldName,
170 fieldName_(fieldName),
172 interfaceBouCoeffs_(interfaceBouCoeffs),
173 interfaceIntCoeffs_(interfaceIntCoeffs),
174 interfaces_(interfaces)
virtual bool isDict() const
Return true if this entry is a dictionary.
word name(const complex &)
Return a string representation of a complex.
static word getName(const dictionary &)
Find the smoother name (directly or from a sub-dictionary)
virtual const dictionary & dict() const =0
Return dictionary if this entry is a dictionary.
A class for handling words, derived from string.
errorManipArg< error, int > exit(error &err, const int errNo=1)
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.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual ITstream & stream() const =0
Return token stream if this entry is a primitive entry.
const double e
Elementary charge.
Ostream & endl(Ostream &os)
Add newline and flush stream.
lduMatrix is a general matrix class in which the coefficients are stored as three arrays...
smoother(const word &fieldName, const lduMatrix &matrix, const FieldField< Field, scalar > &interfaceBouCoeffs, const FieldField< Field, scalar > &interfaceIntCoeffs, const lduInterfaceFieldPtrsList &interfaces)
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.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
const entry & lookupEntry(const word &, bool recursive, bool patternMatch) const
Find and return an entry data stream if present otherwise error.
#define FatalIOErrorIn(functionName, ios)
Report an error message using Foam::FatalIOError.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...