00001 /*---------------------------------------------------------------------------*\ 00002 ========= | 00003 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox 00004 \\ / O peration | 00005 \\ / A nd | Copyright (C) 1991-2010 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 00013 the Free Software Foundation, either version 3 of the License, or 00014 (at your 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, see <http://www.gnu.org/licenses/>. 00023 00024 Class 00025 Foam::BICCG 00026 00027 Description 00028 Diagonal incomplete LU preconditioned BiCG solver derived from the general 00029 preconditioned BiCG solver PBiCG but with the choice of preconditioner 00030 pre-selected. 00031 00032 Deprecated 00033 This solver is present for backward-compatibility and the PBiCG solver 00034 should be used instead. 00035 00036 SourceFiles 00037 BICCG.C 00038 00039 \*---------------------------------------------------------------------------*/ 00040 00041 #ifndef BICCG_H 00042 #define BICCG_H 00043 00044 #include <OpenFOAM/PBiCG.H> 00045 00046 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00047 00048 namespace Foam 00049 { 00050 00051 /*---------------------------------------------------------------------------*\ 00052 Class BICCG Declaration 00053 \*---------------------------------------------------------------------------*/ 00054 00055 class BICCG 00056 : 00057 public PBiCG 00058 { 00059 // Private Member Functions 00060 00061 //- Disallow default bitwise copy construct 00062 BICCG(const BICCG&); 00063 00064 //- Disallow default bitwise assignment 00065 void operator=(const BICCG&); 00066 00067 public: 00068 00069 //- Return the dictionary constructed from the components. 00070 // Needed for backward compatibility 00071 static dictionary solverDict 00072 ( 00073 const scalar tol, 00074 const scalar relTol 00075 ); 00076 00077 //- Return the dictionary constructed from the old-style data-stream. 00078 // Needed for backward compatibility 00079 static dictionary solverDict(Istream&); 00080 00081 00082 //- Runtime type information 00083 TypeName("BICCG"); 00084 00085 00086 // Constructors 00087 00088 //- Construct from matrix components and solver data stream 00089 BICCG 00090 ( 00091 const word& fieldName, 00092 const lduMatrix& matrix, 00093 const FieldField<Field, scalar>& interfaceBouCoeffs, 00094 const FieldField<Field, scalar>& interfaceIntCoeffs, 00095 const lduInterfaceFieldPtrsList& interfaces, 00096 const dictionary& solverControls 00097 ); 00098 00099 00100 //- Construct from matrix components and tolerances 00101 BICCG 00102 ( 00103 const word& fieldName, 00104 const lduMatrix& matrix, 00105 const FieldField<Field, scalar>& interfaceBouCoeffs, 00106 const FieldField<Field, scalar>& interfaceIntCoeffs, 00107 const lduInterfaceFieldPtrsList& interfaces, 00108 const scalar tolerance, 00109 const scalar relTol = 0.0 00110 ); 00111 00112 // Destructor 00113 00114 virtual ~BICCG() 00115 {} 00116 00117 }; 00118 00119 00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00121 00122 } // End namespace Foam 00123 00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00125 00126 #endif 00127 00128 // ************************ vim: set sw=4 sts=4 et: ************************ //