fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / coupledMatrix / coupledLduSolver / diagonalSolver / coupledDiagonalSolver.H
blobb73660f37bc1c45ce96022e8c07658591cf9f697
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
9     This file is part of OpenFOAM.
11     OpenFOAM is free software; you can redistribute it and/or modify it
12     under the terms of the GNU General Public License as published by the
13     Free Software Foundation; either version 2 of the License, or (at your
14     option) any later version.
16     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
19     for more details.
21     You should have received a copy of the GNU General Public License
22     along with OpenFOAM; if not, write to the Free Software Foundation,
23     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25 Class
26     diagonalSolver
28 Description
29     Diagonal-only solver for coupled matrix
31 Author
32     Hrvoje Jasak, Wikki Ltd.  All rights reserved.
34 SourceFiles
35     diagonalSolver.C
37 \*---------------------------------------------------------------------------*/
39 #ifndef coupledDiagonalSolver_H
40 #define coupledDiagonalSolver_H
42 #include "coupledLduSolver.H"
43 #include "coupledDiagonalPrecon.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 namespace Foam
50 /*---------------------------------------------------------------------------*\
51                       Class coupledDiagonalSolver Declaration
52 \*---------------------------------------------------------------------------*/
54 class coupledDiagonalSolver
56     public coupledLduSolver
58     // Private Data
60         // Diagonal preconditioner
61         coupledDiagonalPrecon dp_;
64     // Private Member Functions
66         //- Disallow default bitwise copy construct
67         coupledDiagonalSolver(const coupledDiagonalSolver&);
69         //- Disallow default bitwise assignment
70         void operator=(const coupledDiagonalSolver&);
73 public:
75     //- Runtime type information
76     TypeName("diagonal");
79     // Constructors
81         //- Construct from matrix
82         coupledDiagonalSolver
83         (
84             const word& fieldName,
85             const coupledLduMatrix& matrix,
86             const PtrList<FieldField<Field, scalar> >& bouCoeffs,
87             const PtrList<FieldField<Field, scalar> >& intCoeffs,
88             const lduInterfaceFieldPtrsListList& interfaces
89         );
92     // Destructor
94         virtual ~coupledDiagonalSolver()
95         {}
98     // Member Functions
100         //- Solve the matrix with this solver
101         virtual coupledSolverPerformance solve
102         (
103             FieldField<Field, scalar>& x,
104             const FieldField<Field, scalar>& b,
105             const direction cmpt
106         ) const;
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
112 } // End namespace Foam
114 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
116 #endif
118 // ************************************************************************* //