OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

BICCG.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 Class
00026     Foam::BICCG
00027 
00028 Description
00029     Diagonal incomplete LU preconditioned BiCG solver derived from the general
00030     preconditioned BiCG solver PBiCG but with the choice of preconditioner
00031     pre-selected.
00032 
00033 Deprecated
00034     This solver is present for backward-compatibility and the PBiCG solver
00035     should be used instead.
00036 
00037 SourceFiles
00038     BICCG.C
00039 
00040 \*---------------------------------------------------------------------------*/
00041 
00042 #ifndef BICCG_H
00043 #define BICCG_H
00044 
00045 #include "PBiCG.H"
00046 
00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00048 
00049 namespace Foam
00050 {
00051 
00052 /*---------------------------------------------------------------------------*\
00053                            Class BICCG Declaration
00054 \*---------------------------------------------------------------------------*/
00055 
00056 class BICCG
00057 :
00058     public PBiCG
00059 {
00060     // Private Member Functions
00061 
00062         //- Disallow default bitwise copy construct
00063         BICCG(const BICCG&);
00064 
00065         //- Disallow default bitwise assignment
00066         void operator=(const BICCG&);
00067 
00068 public:
00069 
00070     //- Return the dictionary constructed from the components.
00071     //  Needed for backward compatibility
00072     static dictionary solverDict
00073     (
00074         const scalar tol,
00075         const scalar relTol
00076     );
00077 
00078     //- Return the dictionary constructed from the old-style data-stream.
00079     //  Needed for backward compatibility
00080     static dictionary solverDict(Istream&);
00081 
00082 
00083     //- Runtime type information
00084     TypeName("BICCG");
00085 
00086 
00087     // Constructors
00088 
00089         //- Construct from matrix components and solver data stream
00090         BICCG
00091         (
00092             const word& fieldName,
00093             const lduMatrix& matrix,
00094             const FieldField<Field, scalar>& interfaceBouCoeffs,
00095             const FieldField<Field, scalar>& interfaceIntCoeffs,
00096             const lduInterfaceFieldPtrsList& interfaces,
00097             const dictionary& solverControls
00098         );
00099 
00100 
00101         //- Construct from matrix components and tolerances
00102         BICCG
00103         (
00104             const word& fieldName,
00105             const lduMatrix& matrix,
00106             const FieldField<Field, scalar>& interfaceBouCoeffs,
00107             const FieldField<Field, scalar>& interfaceIntCoeffs,
00108             const lduInterfaceFieldPtrsList& interfaces,
00109             const scalar tolerance,
00110             const scalar relTol = 0.0
00111         );
00112 
00113     // Destructor
00114 
00115         virtual ~BICCG()
00116         {}
00117 
00118 };
00119 
00120 
00121 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00122 
00123 } // End namespace Foam
00124 
00125 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00126 
00127 #endif
00128 
00129 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd