Go to the documentation of this file.
49 #ifndef UnsortedMeshedSurface_H
50 #define UnsortedMeshedSurface_H
70 template<
class Face>
class MeshedSurface;
71 template<
class Face>
class MeshedSurfaceProxy;
72 template<
class Face>
class UnsortedMeshedSurface;
75 Istream&
operator>>(Istream&, UnsortedMeshedSurface<Face>&);
77 Ostream&
operator<<(Ostream&,
const UnsortedMeshedSurface<Face>&);
84 class UnsortedMeshedSurface
86 public MeshedSurface<Face>
117 void resize(
const label,
const Face&) =
delete;
120 void setSize(
const label,
const Face&) =
delete;
126 void writeOstream(
Ostream& os)
const;
246 const bool isGlobal =
true
273 const word& fileType,
274 bool mandatory =
true
299 (
name, surf, streamOpt, options)
316 const word& fileType,
369 virtual void clear();
376 template<
class BoolListType>
379 const BoolListType& include,
466 const word& fileType,
471 write(
name, fileType, *
this, streamOpt, options);
498 friend Istream&
operator>> <Face>
506 friend Ostream& operator<< <Face>
points setSize(newPointi)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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.
declareMemberFunctionSelectionTable(void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const UnsortedMeshedSurface< Face > &surf, IOstreamOption streamOpt, const dictionary &options),(name, surf, streamOpt, options))
A surface mesh consisting of general polygon faces that has IO capabilities and a registry for storin...
Istream & operator>>(Istream &, directionInfo &)
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.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
TypeName("UnsortedMeshedSurface")
Declare type-name, virtual type (with debug switch)
void subsetMeshMap(const BoolListType &include, labelList &pointMap, labelList &faceMap) const
Create mappings for a sub-surface.
UnsortedMeshedSurface()
Default construct.
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...
static autoPtr< UnsortedMeshedSurface > New(const fileName &name, const word &fileType, bool mandatory=true)
Read construct from filename with given file type.
word name(const complex &c)
Return string representation of complex.
UnsortedMeshedSurface subsetMesh(const UList< bool > &include, labelList &pointMap, labelList &faceMap) const
Return a new surface subsetted on the selected faces.
The IOstreamOption is a simple container for options an IOstream can normally have.
static bool canWriteType(const word &fileType, bool verbose=false)
Can we write this file format? Also checks friend types.
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,...
Face face_type
The face type (same as the underlying PrimitivePatch)
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, without friends or proxies.
bool read(const fileName &name, const word &fileType)
Read from file with given format type.
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?
point point_type
The point type (same as the underlying PrimitivePatch)
static const word null
An empty word.
virtual void remapFaces(const labelUList &faceMapNewToOld)
Set new zones from faceMap.
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,...
static void write(const fileName &name, const UnsortedMeshedSurface< Face > &surf, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
Write to file, select based on its 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.
static bool canReadType(const word &fileType, bool verbose=false)
Can we read this file format? Also checks friend types.
void swap(MeshedSurface< Face > &surf)=delete
Swap contents - disabled.
static wordHashSet writeTypes()
Known writable file-types, without friends or proxies.
surfZoneList sortedZones(labelList &faceMap) const
Sort faces according to zoneIds.