Go to the documentation of this file.
49 #ifndef UnsortedMeshedSurface_H
50 #define UnsortedMeshedSurface_H
71 template<
class Face>
class MeshedSurface;
72 template<
class Face>
class MeshedSurfaceProxy;
73 template<
class Face>
class UnsortedMeshedSurface;
76 Istream&
operator>>(Istream&, UnsortedMeshedSurface<Face>&);
78 Ostream&
operator<<(Ostream&,
const UnsortedMeshedSurface<Face>&);
85 class UnsortedMeshedSurface
87 public MeshedSurface<Face>
266 (
name, surf, options)
333 virtual void clear();
339 template<
class BoolListType>
342 const BoolListType& include,
415 friend Istream&
operator>> <Face>
423 friend Ostream& operator<< <Face>
points setSize(newPointi)
Face FaceType
Face type used.
static bool canReadType(const word &ext, bool verbose=false)
Can we read this file format type?
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)
void setZones(const surfZoneList &zoneLst)
Set zone ids and zones.
A class for handling words, derived from Foam::string.
autoPtr< labelList > releaseZoneIds()
Release (clear) stored zoneIds and return for reuse.
A class for handling file names.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
const Foam::Enum< fileTag > fileExtension
File extension (without ".") for some vtk XML file content types.
A surface mesh consisting of general polygon faces.
Istream & operator>>(Istream &, directionInfo &)
static bool canWriteType(const word &ext, bool verbose=false)
Can we write this file format type?
static autoPtr< UnsortedMeshedSurface > New(const fileName &name, const word &ext)
Select constructed from filename (explicit extension)
virtual void remapFaces(const labelUList &faceMap)
Set new zones from faceMap.
A proxy for writing MeshedSurface, UnsortedMeshedSurface and surfMesh to various file formats.
static const dictionary null
An empty dictionary, which is also the parent for all dictionaries.
virtual const labelList & zoneIds() const
Return const access to the zone ids.
TypeName("UnsortedMeshedSurface")
Runtime type information.
UnsortedMeshedSurface()
Construct null.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
patchWriters resize(patchIds.size())
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
void transfer(UnsortedMeshedSurface< Face > &surf)
Transfer the contents of the argument and annul the argument.
A surface geometry mesh, in which the surface zone information is conveyed by the 'zoneId' associated...
word name(const complex &c)
Return string representation of complex.
declareRunTimeSelectionTable(autoPtr, UnsortedMeshedSurface, fileExtension,(const fileName &name),(name))
const List< surfZoneIdentifier > & zoneToc() const
Return const access to the zone table-of-contents.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
List< surfZoneIdentifier > & storedZoneToc()
Return non-const access to the zone table-of-contents.
label size() const
The surface size is the number of faces.
void operator=(const UnsortedMeshedSurface< Face > &surf)
Copy assignment.
static wordHashSet readTypes()
Known readable file-types.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual ~UnsortedMeshedSurface()=default
Destructor.
void setOneZone()
Set zones to 0 and set a single zone.
labelList & storedZoneIds()
Return non-const access to the zone Ids.
Macros to ease declaration of run-time selection tables.
virtual void clear()
Clear all storage.
static bool canRead(const fileName &name, bool verbose=false)
Can we read this file format?
static const word null
An empty word.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
Macros to enable the easy declaration of member function selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
declareMemberFunctionSelectionTable(void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const UnsortedMeshedSurface< Face > &surf, const dictionary &options),(name, surf, options))
UnsortedMeshedSurface subsetMesh(const BoolListType &include, labelList &pointMap, labelList &faceMap) const
Return new surface.
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 swap(MeshedSurface< Face > &surf)=delete
Swap contents - disabled.
static wordHashSet writeTypes()
Known writable file-types.
surfZoneList sortedZones(labelList &faceMap) const
Sort faces according to zoneIds.
Ostream & operator<<(Ostream &, const boundaryPatch &)