cellZone.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
00038
00039
00040
00041
00042 #ifndef cellZone_H
00043 #define cellZone_H
00044
00045 #include "labelList.H"
00046 #include "typeInfo.H"
00047 #include "dictionary.H"
00048 #include "cellZoneMeshFwd.H"
00049 #include "pointFieldFwd.H"
00050 #include "Map.H"
00051
00052
00053
00054 namespace Foam
00055 {
00056
00057
00058
00059 class cellZone;
00060 Ostream& operator<<(Ostream&, const cellZone&);
00061
00062
00063
00064
00065
00066
00067 class cellZone
00068 :
00069 public labelList
00070 {
00071
00072
00073
00074 word name_;
00075
00076
00077 label index_;
00078
00079
00080 const cellZoneMesh& zoneMesh_;
00081
00082
00083
00084
00085 mutable Map<label>* cellLookupMapPtr_;
00086
00087
00088
00089
00090
00091 cellZone(const cellZone&);
00092
00093
00094 const Map<label>& cellLookupMap() const;
00095
00096
00097 void calcCellLookupMap() const;
00098
00099
00100 public:
00101
00102
00103 TypeName("cellZone");
00104
00105
00106
00107
00108 declareRunTimeSelectionTable
00109 (
00110 autoPtr,
00111 cellZone,
00112 dictionary,
00113 (
00114 const word& name,
00115 const dictionary& dict,
00116 const label index,
00117 const cellZoneMesh& zm
00118 ),
00119 (name, dict, index, zm)
00120 );
00121
00122
00123
00124
00125
00126 cellZone
00127 (
00128 const word& name,
00129 const labelList& addr,
00130 const label index,
00131 const cellZoneMesh&
00132 );
00133
00134
00135 cellZone
00136 (
00137 const word& name,
00138 const Xfer<labelList>& addr,
00139 const label index,
00140 const cellZoneMesh&
00141 );
00142
00143
00144 cellZone
00145 (
00146 const word& name,
00147 const dictionary&,
00148 const label index,
00149 const cellZoneMesh&
00150 );
00151
00152
00153
00154 cellZone
00155 (
00156 const cellZone&,
00157 const labelList& addr,
00158 const label index,
00159 const cellZoneMesh&
00160 );
00161
00162
00163
00164 cellZone
00165 (
00166 const cellZone&,
00167 const Xfer<labelList>& addr,
00168 const label index,
00169 const cellZoneMesh&
00170 );
00171
00172
00173 virtual autoPtr<cellZone> clone(const cellZoneMesh& zm) const
00174 {
00175 return autoPtr<cellZone>
00176 (
00177 new cellZone(*this, *this, index(), zm)
00178 );
00179 }
00180
00181
00182
00183 virtual autoPtr<cellZone> clone
00184 (
00185 const labelList& addr,
00186 const label index,
00187 const cellZoneMesh& zm
00188 ) const
00189 {
00190 return autoPtr<cellZone>
00191 (
00192 new cellZone(*this, addr, index, zm)
00193 );
00194 }
00195
00196
00197
00198
00199
00200
00201 static autoPtr<cellZone> New
00202 (
00203 const word& name,
00204 const dictionary&,
00205 const label index,
00206 const cellZoneMesh&
00207 );
00208
00209
00210
00211
00212 virtual ~cellZone();
00213
00214
00215
00216
00217
00218 const word& name() const
00219 {
00220 return name_;
00221 }
00222
00223
00224
00225
00226
00227 label whichCell(const label globalCellID) const;
00228
00229
00230 label index() const
00231 {
00232 return index_;
00233 }
00234
00235
00236 const cellZoneMesh& zoneMesh() const;
00237
00238
00239 void clearAddressing();
00240
00241
00242 bool checkDefinition(const bool report = false) const;
00243
00244
00245 virtual void movePoints(const pointField&)
00246 {}
00247
00248
00249 virtual void write(Ostream&) const;
00250
00251
00252 virtual void writeDict(Ostream&) const;
00253
00254
00255
00256
00257
00258 void operator=(const cellZone&);
00259
00260
00261 void operator=(const labelList&);
00262
00263
00264
00265
00266 friend Ostream& operator<<(Ostream&, const cellZone&);
00267 };
00268
00269
00270
00271
00272 }
00273
00274
00275
00276 #endif
00277
00278
Copyright © 2000-2009 OpenCFD Ltd