|
|
|
cyclicGAMGInterface.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) 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::cyclicGAMGInterface 00027 00028 Description 00029 GAMG agglomerated cyclic interface. 00030 00031 SourceFiles 00032 cyclicGAMGInterface.C 00033 00034 \*---------------------------------------------------------------------------*/ 00035 00036 #ifndef cyclicGAMGInterface_H 00037 #define cyclicGAMGInterface_H 00038 00039 #include "GAMGInterface.H" 00040 #include "cyclicLduInterface.H" 00041 00042 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00043 00044 namespace Foam 00045 { 00046 00047 /*---------------------------------------------------------------------------*\ 00048 Class cyclicGAMGInterface Declaration 00049 \*---------------------------------------------------------------------------*/ 00050 00051 class cyclicGAMGInterface 00052 : 00053 public GAMGInterface, 00054 virtual public cyclicLduInterface 00055 { 00056 // Private data 00057 00058 //- Reference tor the cyclicLduInterface from which this is 00059 // agglomerated 00060 const cyclicLduInterface& fineCyclicInterface_; 00061 00062 00063 // Private Member Functions 00064 00065 //- Disallow default bitwise copy construct 00066 cyclicGAMGInterface(const cyclicGAMGInterface&); 00067 00068 //- Disallow default bitwise assignment 00069 void operator=(const cyclicGAMGInterface&); 00070 00071 00072 public: 00073 00074 //- Runtime type information 00075 TypeName("cyclic"); 00076 00077 00078 // Constructors 00079 00080 //- Construct from fine level interface, 00081 // local and neighbour restrict addressing 00082 cyclicGAMGInterface 00083 ( 00084 const lduInterface& fineInterface, 00085 const labelField& restrictAddressing, 00086 const labelField& neighbourRestrictAddressing 00087 ); 00088 00089 00090 // Destructor 00091 00092 virtual ~cyclicGAMGInterface(); 00093 00094 00095 // Member Functions 00096 00097 // Interface transfer functions 00098 00099 //- Transfer and return neighbour field 00100 virtual tmp<labelField> transfer 00101 ( 00102 const Pstream::commsTypes commsType, 00103 const unallocLabelList& interfaceData 00104 ) const; 00105 00106 //- Transfer and return internal field adjacent to the interface 00107 virtual tmp<labelField> internalFieldTransfer 00108 ( 00109 const Pstream::commsTypes commsType, 00110 const unallocLabelList& iF 00111 ) const; 00112 00113 00114 //- Cyclic interface functions 00115 00116 //- Return face transformation tensor 00117 virtual const tensorField& forwardT() const 00118 { 00119 return fineCyclicInterface_.forwardT(); 00120 } 00121 00122 //- Return neighbour-cell transformation tensor 00123 virtual const tensorField& reverseT() const 00124 { 00125 return fineCyclicInterface_.reverseT(); 00126 } 00127 }; 00128 00129 00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00131 00132 } // End namespace Foam 00133 00134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00135 00136 #endif 00137 00138 // ************************************************************************* // |