|
|
|
referredCellI.HGo 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) 2008-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 \*---------------------------------------------------------------------------*/ 00026 00027 namespace Foam 00028 { 00029 00030 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // 00031 00032 inline label referredCell::sourceProc() const 00033 { 00034 return sourceProc_; 00035 } 00036 00037 00038 inline label referredCell::sourceCell() const 00039 { 00040 return sourceCell_; 00041 } 00042 00043 00044 inline const vector& referredCell::offset() const 00045 { 00046 return offset_; 00047 } 00048 00049 00050 inline const tensor& referredCell::rotation() const 00051 { 00052 return rotation_; 00053 } 00054 00055 00056 inline const vectorList& referredCell::vertexPositions() const 00057 { 00058 return vertexPositions_; 00059 } 00060 00061 00062 inline const edgeList& referredCell::edges() const 00063 { 00064 return edges_; 00065 } 00066 00067 00068 inline const labelListList& referredCell::faces() const 00069 { 00070 return faces_; 00071 } 00072 00073 00074 inline const vectorList& referredCell::faceCentres() const 00075 { 00076 return faceCentres_; 00077 } 00078 00079 00080 inline const vectorList& referredCell::faceAreas() const 00081 { 00082 return faceAreas_; 00083 } 00084 00085 00086 inline labelList& referredCell::realCells() 00087 { 00088 return realCellsForInteraction_; 00089 } 00090 00091 00092 inline const labelList& referredCell::realCellsForInteraction() const 00093 { 00094 return realCellsForInteraction_; 00095 } 00096 00097 00098 // * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * // 00099 00100 inline bool operator== 00101 ( 00102 const referredCell& a, 00103 const referredCell& b 00104 ) 00105 { 00106 return const_cast<referredCell&>(a).duplicate 00107 ( 00108 const_cast<const referredCell&>(b) 00109 ); 00110 } 00111 00112 00113 inline bool operator!= 00114 ( 00115 const referredCell& a, 00116 const referredCell& b 00117 ) 00118 { 00119 return !(a == b); 00120 } 00121 00122 00123 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00124 00125 } // End namespace Foam 00126 00127 // ************************************************************************* // |