GAMGInterface.H
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef GAMGInterface_H
00038 #define GAMGInterface_H
00039
00040 #include "lduInterface.H"
00041 #include "autoPtr.H"
00042
00043
00044
00045 namespace Foam
00046 {
00047
00048
00049
00050
00051
00052 class GAMGInterface
00053 :
00054 public lduInterface
00055 {
00056
00057 protected:
00058
00059
00060
00061
00062 labelField faceCells_;
00063
00064
00065 labelField faceRestrictAddressing_;
00066
00067
00068 private:
00069
00070
00071
00072
00073 GAMGInterface(const GAMGInterface&);
00074
00075
00076 void operator=(const GAMGInterface&);
00077
00078
00079 public:
00080
00081
00082 TypeName("GAMGInterface");
00083
00084
00085
00086
00087 declareRunTimeSelectionTable
00088 (
00089 autoPtr,
00090 GAMGInterface,
00091 lduInterface,
00092 (
00093 const lduInterface& fineInterface,
00094 const labelField& localRestrictAddressing,
00095 const labelField& neighbourRestrictAddressing
00096 ),
00097 (
00098 fineInterface,
00099 localRestrictAddressing,
00100 neighbourRestrictAddressing
00101 )
00102 );
00103
00104
00105
00106
00107
00108
00109 static autoPtr<GAMGInterface> New
00110 (
00111 const lduInterface& fineInterface,
00112 const labelField& localRestrictAddressing,
00113 const labelField& neighbourRestrictAddressing
00114 );
00115
00116
00117
00118
00119
00120
00121 GAMGInterface
00122 (
00123 const lduInterface&,
00124 const labelField&,
00125 const labelField&
00126 )
00127 {}
00128
00129
00130
00131
00132
00133
00134
00135 virtual label size() const
00136 {
00137 return faceCells_.size();
00138 }
00139
00140
00141 virtual const unallocLabelList& faceCells() const
00142 {
00143 return faceCells_;
00144 }
00145
00146
00147 virtual const labelList& faceRestrictAddressing() const
00148 {
00149 return faceRestrictAddressing_;
00150 }
00151
00152
00153 virtual labelList& faceRestrictAddressing()
00154 {
00155 return faceRestrictAddressing_;
00156 }
00157
00158
00159 template<class Type>
00160 tmp<Field<Type> > interfaceInternalField
00161 (
00162 const UList<Type>& internalData
00163 ) const;
00164
00165
00166
00167 virtual tmp<labelField> interfaceInternalField
00168 (
00169 const unallocLabelList& internalData
00170 ) const;
00171
00172
00173
00174
00175
00176
00177
00178 void combine(const GAMGInterface&);
00179
00180
00181 virtual tmp<scalarField> agglomerateCoeffs
00182 (
00183 const scalarField& fineCoeffs
00184 ) const;
00185 };
00186
00187
00188
00189
00190 }
00191
00192
00193
00194 #ifdef NoRepository
00195 # include "GAMGInterfaceTemplates.C"
00196 #endif
00197
00198
00199
00200 #endif
00201
00202
Copyright © 2000-2009 OpenCFD Ltd