Public Member Functions | Static Public Member Functions | Static Protected Member Functions | List of all members
STARCDedgeFormat Class Reference

Read/write the lines from PROSTAR vrt/cel files. More...

Inheritance diagram for STARCDedgeFormat:
Inheritance graph
[legend]
Collaboration diagram for STARCDedgeFormat:
Collaboration graph
[legend]

Public Member Functions

 STARCDedgeFormat (const fileName &filename)
 
virtual ~STARCDedgeFormat ()=default
 
virtual bool read (const fileName &name)
 
virtual void write (const fileName &name, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
 
- Public Member Functions inherited from edgeMesh
 edgeMesh (const faMesh &mesh)
 
label size () const
 
const edgeVectorFieldC () const
 
 TypeName ("edgeMesh")
 
 edgeMesh ()
 
 edgeMesh (const edgeMesh &em)
 
 edgeMesh (edgeMesh &&em)
 
 edgeMesh (const pointField &points, const edgeList &edges)
 
 edgeMesh (pointField &&pointLst, edgeList &&edgeLst)
 
 edgeMesh (const fileName &name)
 
 edgeMesh (const fileName &name, const word &fileType)
 
 declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name))
 
virtual ~edgeMesh ()=default
 
 declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt, const dictionary &options),(name, mesh, streamOpt, options))
 
void transfer (edgeMesh &mesh)
 
bool read (const fileName &name, const word &fileType)
 
const pointFieldpoints () const noexcept
 
const edgeListedges () const noexcept
 
const labelListListpointEdges () const
 
label regions (labelList &edgeRegion) const
 
virtual void clear ()
 
virtual void scalePoints (const scalar scaleFactor)
 
virtual void mergePoints (const scalar mergeDist)
 
virtual void mergeEdges ()
 
virtual void writeStats (Ostream &) const
 
virtual void write (const fileName &name, const word &fileType, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null) const
 
void operator= (const edgeMesh &rhs)
 
void operator= (edgeMesh &&rhs)
 
- Public Member Functions inherited from GeoMesh< faMesh >
 GeoMesh (const faMesh &mesh)
 
bool hasDb () const
 
const objectRegistrythisDb () const
 
const faMeshoperator() () const
 

Static Public Member Functions

static autoPtr< edgeMeshNew (const fileName &name)
 
static void write (const fileName &filename, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
 
- Static Public Member Functions inherited from edgeMesh
static label size (const Mesh &mesh)
 
static wordHashSet readTypes ()
 
static wordHashSet writeTypes ()
 
static bool canReadType (const word &fileType, bool verbose=false)
 
static bool canWriteType (const word &fileType, bool verbose=false)
 
static bool canRead (const fileName &name, bool verbose=false)
 
static autoPtr< edgeMeshNew (const fileName &name, const word &fileType)
 
static autoPtr< edgeMeshNew (const fileName &name)
 
static void write (const fileName &name, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
 
static void write (const fileName &name, const word &fileType, const edgeMesh &mesh, IOstreamOption streamOpt=IOstreamOption(), const dictionary &options=dictionary::null)
 

Static Protected Member Functions

static void writeCase (Ostream &os, const pointField &pointLst, const label nEdges)
 
- Static Protected Member Functions inherited from STARCDCore
static bool readHeader (IFstream &is, const enum fileHeader header)
 
static void writeHeader (Ostream &os, const enum fileHeader header)
 
static fileName starFileName (const fileName &baseName, const enum fileExt ext)
 
static void removeFiles (const fileName &baseName)
 
static label readPoints (IFstream &is, List< point > &points, List< label > &ids)
 
static void writePoints (Ostream &os, const UList< point > &points, const scalar scaleFactor=1.0)
 

Additional Inherited Members

- Public Types inherited from GeoMesh< faMesh >
typedef faMesh Mesh
 
typedef faMesh ::BoundaryMesh BoundaryMesh
 
- Protected Types inherited from STARCDCore
enum  fileHeader { HEADER_CEL, HEADER_VRT, HEADER_BND }
 
enum  fileExt { CEL_FILE, VRT_FILE, BND_FILE, INP_FILE }
 
enum  matlType {
  starcdFluidType = 1, starcdSolidType = 2, starcdBaffleType = 3, starcdShellType = 4,
  starcdLineType = 5, starcdPointType = 6
}
 
enum  shapeType {
  starcdPoint = 1, starcdLine = 2, starcdShell = 3, starcdHex = 11,
  starcdPrism = 12, starcdTet = 13, starcdPyr = 14, starcdPoly = 255
}
 
- Protected Member Functions inherited from edgeMesh
pointFieldstoredPoints () noexcept
 
edgeListstoredEdges () noexcept
 
- Protected Member Functions inherited from STARCDCore
 STARCDCore ()=default
 
- Protected Attributes inherited from GeoMesh< faMesh >
const faMeshmesh_
 
- Static Protected Attributes inherited from STARCDCore
static const Map< FixedList< int, 6 > > starToFoamFaceAddr
 
static const Map< FixedList< int, 6 > > foamToStarFaceAddr
 
static const char *const defaultBoundaryName
 
static const char *const defaultSolidBoundaryName
 

Detailed Description

Read/write the lines from PROSTAR vrt/cel files.

Note
Uses the extension .inp (input) to denote the format.
See also
Foam::meshReaders::STARCD
Source files

Definition at line 59 of file STARCDedgeFormat.H.

Constructor & Destructor Documentation

◆ STARCDedgeFormat()

STARCDedgeFormat ( const fileName filename)
explicit

Definition at line 93 of file STARCDedgeFormat.C.

References Foam::read().

Here is the call graph for this function:

◆ ~STARCDedgeFormat()

virtual ~STARCDedgeFormat ( )
virtualdefault

Member Function Documentation

◆ writeCase()

void writeCase ( Ostream os,
const pointField pointLst,
const label  nEdges 
)
staticprotected

Definition at line 59 of file STARCDedgeFormat.C.

References clock::dateTime(), Foam::nl, and os().

Here is the call graph for this function:

◆ New()

static autoPtr<edgeMesh> New ( const fileName name)
inlinestatic

Definition at line 104 of file STARCDedgeFormat.H.

References Foam::name().

Here is the call graph for this function:

◆ write() [1/2]

void write ( const fileName filename,
const edgeMesh mesh,
IOstreamOption  streamOpt = IOstreamOption(),
const dictionary options = dictionary::null 
)
static

Definition at line 228 of file STARCDedgeFormat.C.

References IOstreamOption::ASCII, STARCDCore::CEL_FILE, IOstreamOption::format(), STARCDCore::HEADER_CEL, STARCDCore::INP_FILE, fileName::lessExt(), mesh, os(), STARCDCore::VRT_FILE, and Foam::writeHeader().

Referenced by STARCDedgeFormat::write().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ read()

bool read ( const fileName name)
virtual

◆ write() [2/2]

virtual void write ( const fileName name,
IOstreamOption  streamOpt = IOstreamOption(),
const dictionary options = dictionary::null 
) const
inlinevirtual

Reimplemented from edgeMesh.

Definition at line 133 of file STARCDedgeFormat.H.

References Foam::name(), and STARCDedgeFormat::write().

Here is the call graph for this function:

The documentation for this class was generated from the following files: