|
|
|
lduInterfaceField.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-2007 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 lduInterfaceField 00027 00028 Description 00029 An abstract base class for implicitly-coupled interface fields 00030 e.g. processor and cyclic patch fields. 00031 00032 SourceFiles 00033 lduInterfaceField.C 00034 00035 \*---------------------------------------------------------------------------*/ 00036 00037 #ifndef lduInterfaceField_H 00038 #define lduInterfaceField_H 00039 00040 #include "lduInterface.H" 00041 #include "primitiveFieldsFwd.H" 00042 00043 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00044 00045 namespace Foam 00046 { 00047 00048 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00049 00050 class lduMatrix; 00051 00052 /*---------------------------------------------------------------------------*\ 00053 Class lduInterfaceField Declaration 00054 \*---------------------------------------------------------------------------*/ 00055 00056 class lduInterfaceField 00057 { 00058 // Private data 00059 00060 //- Reference to the coupled patch this field is defined for 00061 const lduInterface& interface_; 00062 00063 00064 // Private Member Functions 00065 00066 //- Disallow default bitwise copy construct 00067 lduInterfaceField(const lduInterfaceField&); 00068 00069 //- Disallow default bitwise assignment 00070 void operator=(const lduInterfaceField&); 00071 00072 00073 public: 00074 00075 //- Runtime type information 00076 TypeName("lduInterfaceField"); 00077 00078 00079 // Constructors 00080 00081 //- Construct given coupled patch 00082 lduInterfaceField(const lduInterface& patch) 00083 : 00084 interface_(patch) 00085 {} 00086 00087 00088 // Destructor 00089 00090 virtual ~lduInterfaceField(); 00091 00092 00093 // Member Functions 00094 00095 // Access 00096 00097 //- Return the interface 00098 const lduInterface& interface() const 00099 { 00100 return interface_; 00101 } 00102 00103 00104 // Coupled interface matrix update 00105 00106 //- Initialise neighbour matrix update 00107 virtual void initInterfaceMatrixUpdate 00108 ( 00109 const scalarField&, 00110 scalarField&, 00111 const lduMatrix&, 00112 const scalarField&, 00113 const direction, 00114 const bool 00115 ) const 00116 {} 00117 00118 //- Update result field based on interface functionality 00119 virtual void updateInterfaceMatrix 00120 ( 00121 const scalarField&, 00122 scalarField&, 00123 const lduMatrix&, 00124 const scalarField&, 00125 const direction 00126 ) const = 0; 00127 }; 00128 00129 00130 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00131 00132 } // End namespace Foam 00133 00134 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // 00135 00136 #endif 00137 00138 // ************************************************************************* // |