Provide a means of reading/writing GTS format. The output is never sorted by zone and is only written if it consists entirely of triangles. More...
Public Member Functions | |
GTSsurfaceFormat (const fileName &) | |
Construct from file name. More... | |
virtual | ~GTSsurfaceFormat () |
Destructor. More... | |
virtual bool | read (const fileName &) |
Read from file. More... | |
virtual void | write (const fileName &name) const |
Write object. More... | |
![]() | |
UnsortedMeshedSurface () | |
Construct null. More... | |
UnsortedMeshedSurface (const Xfer< pointField > &, const Xfer< List< Face > > &, const Xfer< List< label > > &zoneIds, const Xfer< surfZoneIdentifierList > &) | |
Construct by transferring components. More... | |
UnsortedMeshedSurface (const Xfer< pointField > &, const Xfer< List< Face > > &, const labelUList &zoneSizes=labelUList(), const UList< word > &zoneNames=UList< word >()) | |
Construct by transferring points, faces. More... | |
UnsortedMeshedSurface (const UnsortedMeshedSurface< Face > &) | |
Construct as copy. More... | |
UnsortedMeshedSurface (const MeshedSurface< Face > &) | |
Construct from a meshedSurface. More... | |
UnsortedMeshedSurface (const Xfer< UnsortedMeshedSurface< Face > > &) | |
Construct by transferring the contents from a UnsortedMeshedSurface. More... | |
UnsortedMeshedSurface (const Xfer< MeshedSurface< Face > > &) | |
Construct by transferring the contents from a meshedSurface. More... | |
UnsortedMeshedSurface (const fileName &) | |
Construct from file name (uses extension to determine type) More... | |
UnsortedMeshedSurface (const fileName &, const word &) | |
Construct from file name (uses extension to determine type) More... | |
UnsortedMeshedSurface (const Time &, const word &surfName="") | |
Construct from objectRegistry and a named surface. More... | |
UnsortedMeshedSurface () | |
UnsortedMeshedSurface (const Xfer< pointField > &pointLst, const Xfer< List< Face > > &faceLst, const Xfer< List< label > > &zoneIds, const Xfer< surfZoneIdentifierList > &zoneTofc) | |
UnsortedMeshedSurface (const Xfer< pointField > &pointLst, const Xfer< List< Face > > &faceLst, const labelUList &zoneSizes, const UList< word > &zoneNames) | |
UnsortedMeshedSurface (const UnsortedMeshedSurface< Face > &surf) | |
UnsortedMeshedSurface (const MeshedSurface< Face > &surf) | |
UnsortedMeshedSurface (const Xfer< UnsortedMeshedSurface< Face > > &surf) | |
UnsortedMeshedSurface (const Xfer< MeshedSurface< Face > > &surf) | |
UnsortedMeshedSurface (const fileName &name, const word &ext) | |
UnsortedMeshedSurface (const fileName &name) | |
UnsortedMeshedSurface (const Time &t, const word &surfName) | |
void | setSize (const label) |
Reset size of face and zone list. More... | |
TypeName ("UnsortedMeshedSurface") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, UnsortedMeshedSurface, fileExtension,(const fileName &name),(name)) | |
virtual | ~UnsortedMeshedSurface () |
Destructor. More... | |
declareMemberFunctionSelectionTable (void, UnsortedMeshedSurface, write, fileExtension,(const fileName &name, const UnsortedMeshedSurface< Face > &surf),(name, surf)) | |
void | write (const Time &, const word &surfName="") const |
Write to database. More... | |
label | size () const |
The surface size is the number of faces. More... | |
const List< label > & | zoneIds () const |
Return const access to the zone ids. More... | |
const List< surfZoneIdentifier > & | zoneToc () const |
Return const access to the zone table-of-contents. More... | |
surfZoneList | sortedZones (labelList &faceMap) const |
Sort faces according to zoneIds. More... | |
void | setOneZone () |
Set zones to 0 and set a single zone. More... | |
void | setZones (const surfZoneList &) |
Set zone ids and zones. More... | |
void | setZones (const labelUList &sizes, const UList< word > &names) |
Set zone ids and zones. More... | |
void | setZones (const labelUList &sizes) |
Set zone ids and zones with default names. More... | |
virtual void | clear () |
Clear all storage. More... | |
UnsortedMeshedSurface | subsetMesh (const labelHashSet &include, labelList &pointMap, labelList &faceMap) const |
Return new surface. More... | |
UnsortedMeshedSurface | subsetMesh (const labelHashSet &include) const |
Return new surface. More... | |
virtual void | reset (const Xfer< pointField > &, const Xfer< List< Face > > &, const Xfer< List< label > > &zoneIds) |
Transfer components (points, faces, zone ids). More... | |
virtual void | reset (const Xfer< List< point > > &, const Xfer< List< Face > > &, const Xfer< List< label > > &zoneIds) |
Transfer components (points, faces, zone ids). More... | |
void | transfer (UnsortedMeshedSurface< Face > &) |
Transfer the contents of the argument and annul the argument. More... | |
void | transfer (MeshedSurface< Face > &) |
Transfer the contents of the argument and annul the argument. More... | |
Xfer< UnsortedMeshedSurface< Face > > | xfer () |
Transfer contents to the Xfer container. More... | |
bool | read (const fileName &, const word &ext) |
Read from file. Chooses reader based on explicit extension. More... | |
void | operator= (const UnsortedMeshedSurface< Face > &) |
operator MeshedSurfaceProxy< Face > () const | |
Conversion operator to MeshedSurfaceProxy. More... | |
Static Public Member Functions | |
static autoPtr< UnsortedMeshedSurface< Face > > | New (const fileName &name) |
Read file and return surface. More... | |
static void | write (const fileName &, const MeshedSurface< Face > &) |
Write MeshedSurface. More... | |
static void | write (const fileName &, const UnsortedMeshedSurface< Face > &) |
Write UnsortedMeshedSurface, the output remains unsorted. More... | |
![]() | |
static bool | canReadType (const word &ext, const bool verbose=false) |
Can we read this file format? More... | |
static bool | canRead (const fileName &, const bool verbose=false) |
Can we read this file format? More... | |
static bool | canWriteType (const word &ext, const bool verbose=false) |
Can we write this file format? More... | |
static wordHashSet | readTypes () |
static wordHashSet | writeTypes () |
static autoPtr< UnsortedMeshedSurface > | New (const fileName &, const word &ext) |
Select constructed from filename (explicit extension) More... | |
static autoPtr< UnsortedMeshedSurface > | New (const fileName &) |
Select constructed from filename (implicit extension) More... | |
static void | write (const fileName &, const UnsortedMeshedSurface< Face > &) |
Write to file. More... | |
Private Member Functions | |
GTSsurfaceFormat (const GTSsurfaceFormat< Face > &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const GTSsurfaceFormat< Face > &) |
Disallow default bitwise assignment. More... | |
Additional Inherited Members | |
![]() | |
typedef Face | FaceType |
Face type used. More... | |
![]() | |
List< label > & | storedZoneIds () |
Return non-const access to the zone Ids. More... | |
List< surfZoneIdentifier > & | storedZoneToc () |
Return non-const access to the zone table-of-contents. More... | |
virtual void | remapFaces (const labelUList &faceMap) |
Set new zones from faceMap. More... | |
Provide a means of reading/writing GTS format. The output is never sorted by zone and is only written if it consists entirely of triangles.
Definition at line 55 of file GTSsurfaceFormat.H.
|
private |
Disallow default bitwise copy construct.
GTSsurfaceFormat | ( | const fileName & | filename | ) |
Construct from file name.
Definition at line 38 of file GTSsurfaceFormat.C.
References Foam::read().
|
inlinevirtual |
Destructor.
Definition at line 89 of file GTSsurfaceFormat.H.
|
private |
Disallow default bitwise assignment.
|
inlinestatic |
Read file and return surface.
Definition at line 79 of file GTSsurfaceFormat.H.
References Foam::name().
|
static |
Write MeshedSurface.
Definition at line 213 of file GTSsurfaceFormat.C.
References Foam::endl(), Foam::exit(), MeshedSurface::faces(), Foam::FatalError, FatalErrorInFunction, forAll, IOstream::good(), Foam::nl, List::size(), MeshedSurface::size(), MeshedSurface::surfZones(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by GTSsurfaceFormat< Face >::write().
|
static |
Write UnsortedMeshedSurface, the output remains unsorted.
Definition at line 320 of file GTSsurfaceFormat.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, IOstream::good(), Foam::nl, List::size(), UnsortedMeshedSurface::size(), UnsortedMeshedSurface::zoneIds(), and UnsortedMeshedSurface::zoneToc().
|
virtual |
Read from file.
Reimplemented from UnsortedMeshedSurface< Face >.
Definition at line 50 of file GTSsurfaceFormat.C.
References IOstream::bad(), clear(), edge::commonVertex(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, IOstream::good(), Foam::name(), Foam::nl, nPoints, edge::otherVertex(), List::setSize(), triFace(), x, and y.
|
inlinevirtual |
Write object.
Reimplemented from UnsortedMeshedSurface< Face >.
Definition at line 105 of file GTSsurfaceFormat.H.
References Foam::name(), and GTSsurfaceFormat< Face >::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.