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

ICCG.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::ICCG
00027 
00028 Description
00029     Incomplete Cholesky preconditioned CG solver derived from the general
00030     preconditioned CG solver PCG but with the choice of preconditioner
00031     pre-selected.
00032 
00033 Deprecated
00034     This solver is present for backward-compatibility and the PCG solver
00035     should be used for preference.
00036 
00037 SourceFiles
00038     ICCG.C
00039 
00040 \*---------------------------------------------------------------------------*/
00041 
00042 #ifndef ICCG_H
00043 #define ICCG_H
00044 
00045 #include "PCG.H"
00046 
00047 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00048 
00049 namespace Foam
00050 {
00051 
00052 /*---------------------------------------------------------------------------*\
00053                            Class ICCG Declaration
00054 \*---------------------------------------------------------------------------*/
00055 
00056 class ICCG
00057 :
00058     public PCG
00059 {
00060     // Private Member Functions
00061 
00062         //- Disallow default bitwise copy construct
00063         ICCG(const ICCG&);
00064 
00065         //- Disallow default bitwise assignment
00066         void operator=(const ICCG&);
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("ICCG");
00085 
00086 
00087     // Constructors
00088 
00089         //- Construct from matrix components and solver data stream
00090         ICCG
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         //- Construct from matrix components and tolerances
00101         ICCG
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 ~ICCG()
00115         {}
00116 
00117 };
00118 
00119 
00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00121 
00122 } // End namespace Foam
00123 
00124 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00125 
00126 #endif
00127 
00128 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd