32template<
class Type,
class DType,
class LUType>
51template<
class Type,
class DType,
class LUType>
59template<
class Type,
class DType,
class LUType>
66 psi = this->matrix_.source()/this->matrix_.diag();
DiagonalSolver(const DiagonalSolver &)=delete
No copy construct.
void read(const dictionary &solverDict)
Read and reset the solver parameters from the given dictionary.
virtual SolverPerformance< Type > solve(Field< Type > &psi) const
Solve the matrix with this solver.
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
solver(const word &fieldName, const LduMatrix< Type, DType, LUType > &matrix, const dictionary &solverDict)
Construct for given field name, matrix and controls.
const LduMatrix< Type, DType, LUType > & matrix() const noexcept
const LduMatrix< Type, DType, LUType > & matrix_
const word & fieldName() const noexcept
LduMatrix is a general matrix class in which the coefficients are stored as three arrays,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
const volScalarField & psi
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
static constexpr const zero Zero
Global zero (0).