80 time().findInstance(meshDir(),
"points"),
89 time().findInstance(meshDir(),
"faces"),
98 time().findInstance(meshDir(),
"surfZones"),
109 Foam::surfMesh::surfMesh
155 Foam::surfMesh::surfMesh
201 <<
" name: " << io.
name()
203 <<
" local: " << io.
local()
205 Info<<
"creating surfMesh at instance " << instance() <<
endl;
206 Info<<
"timeName: " << instance() <<
endl;
241 static_cast<UList<face>&
>(*this) = this->storedFaces();
247 this->updatePointsRef();
248 this->updateFacesRef();
261 MeshReference::clearGeom();
263 Allocator::reset(points, faces, zones);
279 MeshReference::clearGeom();
282 this->storedIOFaces().transfer(surf.
storedFaces());
283 this->storedIOZones().transfer(surf.
storedZones());
294 xf().storedPoints().transfer(this->storedPoints());
295 xf().storedFaces().transfer(this->storedFaces());
296 xf().storedZones().transfer(this->storedZones());
302 MeshReference::clearGeom();
310 return dbDir()/meshSubDir;
316 return this->storedIOPoints().instance();
322 return this->storedIOFaces().instance();
334 return this->faces().size();
340 return this->storedIOPoints();
346 return this->storedIOFaces();
356 if (zones.
size() <= 1)
365 zones[zoneI].start() = count;
366 count += zones[zoneI].
size();
369 if (count < nFaces())
373 "surfMesh::checkZones()\n"
375 <<
"more faces " << nFaces() <<
" than zones " << count
376 <<
" ... extending final zone"
379 zones[zones.
size()-1].
size() += count - nFaces();
381 else if (count > size())
385 "surfMesh::checkZones()\n"
387 <<
"more zones " << count <<
" than faces " << nFaces()
405 zones[zoneI] =
surfZone(srfZones[zoneI], zoneI);
418 fileName meshFilesPath = db().
path()/instanceDir/meshSubDir;
420 rm(meshFilesPath/
"points");
421 rm(meshFilesPath/
"faces");
422 rm(meshFilesPath/
"surfZones");
427 removeFiles(instance());