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

coupledFacePair.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::coupledFacePair
00027 
00028 Description
00029     Data associated with a pair of coupled faces
00030 
00031 SourceFiles
00032     coupledFacePair.C
00033 
00034 \*---------------------------------------------------------------------------*/
00035 
00036 #ifndef coupledFacePair_H
00037 #define coupledFacePair_H
00038 
00039 #include "label.H"
00040 
00041 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00042 
00043 namespace Foam
00044 {
00045 
00046 /*---------------------------------------------------------------------------*\
00047                            Class coupledFacePair Declaration
00048 \*---------------------------------------------------------------------------*/
00049 
00050 class coupledFacePair
00051 {
00052     // Private data
00053 
00054         //- STAR couple ID
00055         label coupleID_;
00056 
00057         //- Master cell (lower cell label)
00058         label masterCellID_;
00059 
00060         //- Master face (lower cell label)
00061         label masterFaceID_;
00062 
00063         //- Slave cell (higher cell label)
00064         label slaveCellID_;
00065 
00066         //- Slave face (higher cell label)
00067         label slaveFaceID_;
00068 
00069         //- Integral or arbitrary flag
00070         bool integralMatch_;
00071 
00072 
00073 public:
00074 
00075 
00076     // Constructors
00077 
00078         //- Construct from components
00079         coupledFacePair
00080         (
00081             const label coupleNo,              // STAR couple ID
00082             const label mC, const label mF,    // master cell and face
00083             const label sC, const label sF,    // slave cell and face
00084             const label integral
00085         );
00086 
00087 
00088     // Member Functions
00089 
00090         //- Return STAR couple ID
00091         label coupleID() const
00092         {
00093             return coupleID_;
00094         }
00095 
00096         //- Return master cell
00097         label masterCell() const
00098         {
00099             return masterCellID_;
00100         }
00101 
00102         //- Return master face
00103         label masterFace() const
00104         {
00105             return masterFaceID_;
00106         }
00107 
00108         //- Return slave cell
00109         label slaveCell() const
00110         {
00111             return slaveCellID_;
00112         }
00113 
00114         //- Return slave face
00115         label slaveFace() const
00116         {
00117             return slaveFaceID_;
00118         }
00119 
00120         //- Is this an integral match?
00121         bool integralMatch() const
00122         {
00123             return integralMatch_;
00124         }
00125 
00126     // IOstream Operators
00127 
00128         friend Ostream& operator<<(Ostream&, const coupledFacePair&);
00129 };
00130 
00131 
00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00133 
00134 } // End namespace Foam
00135 
00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00137 
00138 #endif
00139 
00140 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd