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