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