|
|
|
lduInterface.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::lduInterface 00027 00028 Description 00029 An abstract base class for implicitly-coupled interfaces 00030 e.g. processor and cyclic patches. 00031 00032 SourceFiles 00033 lduInterface.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef lduInterface_H 00038 #define lduInterface_H 00039 00040 #include "labelField.H" 00041 #include "typeInfo.H" 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 00048 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00049 00050 /*---------------------------------------------------------------------------*\ 00051 Class lduInterface Declaration 00052 \*---------------------------------------------------------------------------*/ 00053 00054 class lduInterface 00055 { 00056 // Private Member Functions 00057 00058 //- Disallow default bitwise copy construct 00059 lduInterface(const lduInterface&); 00060 00061 //- Disallow default bitwise assignment 00062 void operator=(const lduInterface&); 00063 00064 00065 public: 00066 00067 //- Runtime type information 00068 TypeName("lduInterface"); 00069 00070 00071 // Constructors 00072 00073 //- Construct null 00074 lduInterface() 00075 {} 00076 00077 00078 // Destructor 00079 00080 virtual ~lduInterface(); 00081 00082 00083 // Member Functions 00084 00085 // Access 00086 00087 //- Return faceCell addressing 00088 virtual const unallocLabelList& faceCells() const = 0; 00089 00090 00091 // Interface transfer functions 00092 00093 //- Return the values of the given internal data adjacent to 00094 // the interface as a field 00095 virtual tmp<labelField> interfaceInternalField 00096 ( 00097 const unallocLabelList& internalData 00098 ) const = 0; 00099 00100 //- Initialise interface data transfer 00101 virtual void initTransfer 00102 ( 00103 const Pstream::commsTypes commsType, 00104 const unallocLabelList& interfaceData 00105 ) const 00106 {} 00107 00108 //- Transfer and return neighbour field 00109 virtual tmp<labelField> transfer 00110 ( 00111 const Pstream::commsTypes commsType, 00112 const unallocLabelList& interfaceData 00113 ) const = 0; 00114 00115 //- Initialise transfer of internal field adjacent to the interface 00116 virtual void initInternalFieldTransfer 00117 ( 00118 const Pstream::commsTypes commsType, 00119 const unallocLabelList& iF 00120 ) const 00121 {} 00122 00123 //- Transfer and return internal field adjacent to the interface 00124 virtual tmp<labelField> internalFieldTransfer 00125 ( 00126 const Pstream::commsTypes commsType, 00127 const unallocLabelList& iF 00128 ) const = 0; 00129 }; 00130 00131 00132 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00133 00134 } // End namespace Foam 00135 00136 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00137 00138 #endif 00139 00140 // ************************************************************************* // |