FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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