OpenFOAM logo
Open Source CFD Toolkit

lduMatrix.H File Reference


Detailed Description

View lduMatrix.H
License
This file is part of OpenFOAM.

OpenFOAM is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2 of the License, or (at your
option) any later version.

OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
for more details.

You should have received a copy of the GNU General Public License
along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
lduMatrix is a general matrix class in which the coefficients are
stored as three arrays, one for the upper triangle, one for the
lower triangle and a third for the diagonal.  Addressing arrays must
be supplied for the upper and lower triangles.  Diagonal, ICCG and BCG
solvers are supplied and selected automatically by the solve member
function according the the particular matrix structure.

It would be better if this class were organised as a hierachy starting
from an empty matrix, then deriving diagonal, symmetric and asymmetric
matrices.  A job for the future.

Source files

Definition in file lduMatrix.H.

Go to the source code of this file.

Namespaces

namespace  Foam

Classes

class  lduMatrix
class  lduMatrix::solverPerformance
 Class returned by the solver. More...
class  lduMatrix::solver

For further information go to www.openfoam.org