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::procLduMatrix 00026 00027 Description 00028 Foam::procLduMatrix 00029 00030 SourceFiles 00031 procLduMatrix.C 00032 00033 \*---------------------------------------------------------------------------*/ 00034 00035 #ifndef procLduMatrix_H 00036 #define procLduMatrix_H 00037 00038 #include <OpenFOAM/labelList.H> 00039 #include <OpenFOAM/scalarField.H> 00040 #include <OpenFOAM/FieldField.H> 00041 #include <OpenFOAM/lduInterfaceFieldPtrsList.H> 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 00048 class procLduInterface; 00049 class lduMatrix; 00050 00051 // Forward declaration of friend functions and operators 00052 00053 class procLduMatrix; 00054 00055 Ostream& operator<<(Ostream&, const procLduMatrix&); 00056 00057 00058 /*---------------------------------------------------------------------------*\ 00059 Class procLduMatrix Declaration 00060 \*---------------------------------------------------------------------------*/ 00061 00062 class procLduMatrix 00063 { 00064 // Private data 00065 00066 labelList upperAddr_; 00067 labelList lowerAddr_; 00068 scalarField diag_; 00069 scalarField upper_; 00070 scalarField lower_; 00071 PtrList<procLduInterface> interfaces_; 00072 00073 00074 // Private member functions 00075 00076 //- Dissallow construction as copy 00077 procLduMatrix(const procLduMatrix&); 00078 00079 00080 public: 00081 00082 friend class LUscalarMatrix; 00083 00084 00085 // Constructors 00086 00087 procLduMatrix 00088 ( 00089 const lduMatrix& ldum, 00090 const FieldField<Field, scalar>& interfaceCoeffs, 00091 const lduInterfaceFieldPtrsList& interfaces 00092 ); 00093 00094 procLduMatrix(Istream& is); 00095 00096 00097 // Member functions 00098 00099 label size() const 00100 { 00101 return diag_.size(); 00102 } 00103 00104 00105 // Ostream operator 00106 00107 friend Ostream& operator<<(Ostream&, const procLduMatrix&); 00108 }; 00109 00110 00111 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00112 00113 } // End namespace Foam 00114 00115 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00116 00117 #endif 00118 00119 // ************************ vim: set sw=4 sts=4 et: ************************ //