fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / lduSolvers / lduSolver / bicgSolver / bicgSolver.H
blobc2d2e2327c073d0573deda06e1035e4d24f0ed46
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     bicgSolver
28 Description
29     Preconditioned Bi-Conjugate Gradient solver with run-time selectable
30     preconditioning.
32 Author
33     Hrvoje Jasak, Wikki Ltd.  All rights reserved.
35 SourceFiles
36     bicgSolver.C
38 \*---------------------------------------------------------------------------*/
40 #ifndef bicgSolver_H
41 #define bicgSolver_H
43 #include "lduMatrix.H"
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 namespace Foam
50 /*---------------------------------------------------------------------------*\
51                          Class bicgSolver Declaration
52 \*---------------------------------------------------------------------------*/
54 class bicgSolver
56     public lduSolver
58     // Private data
60         //- Preconditioner
61         autoPtr<lduPreconditioner> preconPtr_;
64     // Private Member Functions
66         //- Disallow default bitwise copy construct
67         bicgSolver(const bicgSolver&);
69         //- Disallow default bitwise assignment
70         void operator=(const bicgSolver&);
73 public:
75     //- Runtime type information
76     TypeName("BiCG");
79     // Constructors
81         //- Construct from matrix components and solver data stream
82         bicgSolver
83         (
84             const word& fieldName,
85             const lduMatrix& matrix,
86             const FieldField<Field, scalar>& coupleBouCoeffs,
87             const FieldField<Field, scalar>& coupleIntCoeffs,
88             const lduInterfaceFieldPtrsList& interfaces,
89             const dictionary& dict
90         );
93     // Destructor
95         virtual ~bicgSolver()
96         {}
99     // Member Functions
101         //- Solve the matrix with this solver
102         virtual lduSolverPerformance solve
103         (
104             scalarField& x,
105             const scalarField& b,
106             const direction cmpt = 0
107         ) const;
112 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
114 } // End namespace Foam
116 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
118 #endif
120 // ************************************************************************* //