42 Foam::word Foam::surfMesh::meshSubDir =
"surfMesh";
82 time().findInstance(meshDir(),
"points"),
91 time().findInstance(meshDir(),
"faces"),
100 time().findInstance(meshDir(),
"surfZones"),
111 Foam::surfMesh::surfMesh
157 Foam::surfMesh::surfMesh
203 <<
" name: " << io.
name()
205 <<
" local: " << io.
local()
357 if (zones.
size() <= 1)
366 zones[zoneI].start() = count;
367 count += zones[zoneI].
size();
374 "surfMesh::checkZones()\n" 376 <<
"more faces " <<
nFaces() <<
" than zones " << count
377 <<
" ... extending final zone" 382 else if (count >
size())
386 "surfMesh::checkZones()\n" 388 <<
"more zones " << count <<
" than faces " <<
nFaces()
406 zones[zoneI] =
surfZone(srfZones[zoneI], zoneI);
421 rm(meshFilesPath/
"points");
422 rm(meshFilesPath/
"faces");
423 rm(meshFilesPath/
"surfZones");
surfZoneIOList & storedIOZones()
Non-const access to the zones.
A surface mesh consisting of general polygon faces.
Wraps the normal objectRegistry with a local instance for surfaces.
List< surfZone > surfZoneList
pointField & storedPoints()
Non-const access to global points.
void transfer(List< T > &)
Transfer the contents of the argument List into this list.
word name(const complex &)
Return a string representation of a complex.
surfZoneList & storedZones()
Non-const access to the zones.
T & last()
Return the last element of the list.
Xfer< MeshedSurface< face > > xfer()
Transfer contents to the Xfer container as a MeshedSurface.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats...
void removeZones()
Update the mesh corresponding to given map.
virtual label size() const
Return number of faces.
A simple container for copying or transferring objects of type <T>.
Functions used by OpenFOAM that are specific to POSIX compliant operating systems and need to be repl...
const fileName & local() const
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
virtual void updateFacesRef()
Update references to storedFaces.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const fileName & instance() const
void addZones(const List< surfZone > &, const bool validate=true)
Add surface zones.
bool notNull(const T &t)
Return true if t is not a reference to the nullObject of type T.
virtual const fileName & dbDir() const
Local directory path of this objectRegistry relative to the time.
bool rm(const fileName &)
Remove a file, returning true if successful otherwise false.
vectorField pointField
pointField is a vectorField.
void resetPrimitives(const Xfer< pointField > &points, const Xfer< faceList > &faces, const Xfer< surfZoneList > &zones, const bool validate=true)
Reset mesh primitive data.
pointField & storedPoints()
Non-const access to global points.
virtual bool write() const
Write using setting from DB.
A helper class for storing points, faces and zones with IO capabilities.
fileName path() const
Return complete path.
virtual const surfZoneList & surfZones() const
Return surface zones.
Ostream & endl(Ostream &os)
Add newline and flush stream.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
#define WarningIn(functionName)
Report a warning using Foam::Warning.
surfZoneList & storedZones()
Non-const access to the zones.
Template functions to aid in the implementation of demand driven data.
void removeFiles() const
Remove all files from mesh instance()
const word & name() const
Return name.
A surface zone on a MeshedSurface.
#define FatalErrorIn(functionName)
Report an error message using Foam::FatalError.
const fileName & facesInstance() const
Return the current instance directory for faces.
virtual const pointField & points() const
Return points.
virtual void updateRefs()
Update references to storedPoints/storedFaces.
virtual label nFaces() const
Return the number of raw faces.
A class for handling file names.
pointIOField & storedIOPoints()
Non-const access to the points.
void transfer(MeshedSurface< face > &)
Transfer the contents of the argument and annul the argument.
virtual void updatePointsRef()
Update references to storedPoints.
List< Face > & storedFaces()
Non-const access to the faces.
const fileName & pointsInstance() const
Return the current instance directory for points.
virtual const faceList & faces() const
Return faces.
void checkZones()
Check the surface zone definitions.
const objectRegistry & db() const
Return the local objectRegistry.
virtual ~surfMesh()
Destructor.
virtual label nPoints() const
Return the number of raw points.
void reset(const Xfer< pointField > &points, const Xfer< faceList > &faces, const Xfer< surfZoneList > &zones)
Reset primitive data (points, faces and zones)
faceCompactIOList & storedIOFaces()
Non-const access to the faces.
const Field< point > & points() const
Return reference to global points.
fileName meshDir() const
Return the local mesh directory (dbDir()/meshSubDir)
defineTypeNameAndDebug(combustionModel, 0)
static word meshSubDir
Return the mesh sub-directory name (normally "surfMesh")
faceList & storedFaces()
Non-const access to the faces.