Go to the documentation of this file.
46 #ifndef UnsortedMeshedSurface_H
47 #define UnsortedMeshedSurface_H
67 template<
class Face>
class MeshedSurface;
68 template<
class Face>
class MeshedSurfaceProxy;
69 template<
class Face>
class UnsortedMeshedSurface;
76 class UnsortedMeshedSurface
78 public MeshedSurface<Face>
302 virtual void clear();
void resize(const label, const Face &)
Disable resize with value.
static void write(const fileName &, const UnsortedMeshedSurface< Face > &)
Write to file.
Face FaceType
Face type used.
void operator=(const UnsortedMeshedSurface< Face > &)
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Pair< int > faceMap(const label facePi, const face &faceP, const label faceNi, const face &faceN)
A class for handling words, derived from string.
A class for handling file names.
static bool canWriteType(const word &ext, const bool verbose=false)
Can we write this file format?
virtual void reset(const Xfer< pointField > &, const Xfer< List< Face > > &, const Xfer< List< label > > &zoneIds)
Transfer components (points, faces, zone ids).
virtual ~UnsortedMeshedSurface()
Destructor.
Xfer< UnsortedMeshedSurface< Face > > xfer()
Transfer contents to the Xfer container.
A surface mesh consisting of general polygon faces.
void setSize(const label, const Face &)
Disable setSize with value.
declareMemberFunctionSelectionTable(void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const UnsortedMeshedSurface< Face > &surf),(name, surf))
bool read(const fileName &, const word &ext)
Read from file. Chooses reader based on explicit extension.
virtual void remapFaces(const labelUList &faceMap)
Set new zones from faceMap.
A HashTable with keys but without contents.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
A simple container for copying or transferring objects of type <T>.
TypeName("UnsortedMeshedSurface")
Runtime type information.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
const List< label > & zoneIds() const
Return const access to the zone ids.
labelList zoneIds_
The zone Id associated with each face.
List< label > & storedZoneIds()
Return non-const access to the zone Ids.
static bool canReadType(const word &ext, const bool verbose=false)
Can we read this file format?
declareRunTimeSelectionTable(autoPtr, UnsortedMeshedSurface, fileExtension,(const fileName &name),(name))
const List< surfZoneIdentifier > & zoneToc() const
Return const access to the zone table-of-contents.
List< surfZoneIdentifier > & storedZoneToc()
Return non-const access to the zone table-of-contents.
label size() const
The surface size is the number of faces.
MeshedSurface< Face > ParentType
List< surfZoneIdentifier > zoneToc_
Zone information (face ordering nFaces/startFace only used.
static wordHashSet readTypes()
UnsortedMeshedSurface subsetMesh(const labelHashSet &include, labelList &pointMap, labelList &faceMap) const
Return new surface.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
MeshedSurfaceProxy< Face > ProxyType
void setOneZone()
Set zones to 0 and set a single zone.
Macros to ease declaration of run-time selection tables.
virtual void clear()
Clear all storage.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
MeshedSurface< Face > FriendType
UList< label > labelUList
static autoPtr< UnsortedMeshedSurface > New(const fileName &, const word &ext)
Select constructed from filename (explicit extension)
A surface geometry mesh with zone information, not to be confused with the similarly named surfaceMes...
label size() const
The surface size is the number of faces.
void setZones(const surfZoneList &)
Set zone ids and zones.
static wordHashSet writeTypes()
void transfer(UnsortedMeshedSurface< Face > &)
Transfer the contents of the argument and annul the argument.
surfZoneList sortedZones(labelList &faceMap) const
Sort faces according to zoneIds.
word name(const complex &)
Return a string representation of a complex.
virtual void write(const fileName &name) const
Generic write routine. Chooses writer based on extension.
friend class UnsortedMeshedSurface
static bool canRead(const fileName &, const bool verbose=false)
Can we read this file format?