Nastran edge reader. More...
Public Member Functions | |
| NASedgeFormat (const fileName &filename) | |
| Construct from file name. More... | |
| virtual | ~NASedgeFormat ()=default |
| Destructor. More... | |
| virtual bool | read (const fileName &filename) |
| Read from a file. More... | |
Public Member Functions inherited from edgeMesh | |
| edgeMesh (const faMesh &mesh) | |
| label | size () const |
| const edgeVectorField & | C () |
| TypeName ("edgeMesh") | |
| Runtime type information. More... | |
| edgeMesh () | |
| Default construct. More... | |
| edgeMesh (const edgeMesh &em) | |
| Copy construct. More... | |
| edgeMesh (edgeMesh &&em) | |
| Move construct. More... | |
| edgeMesh (const pointField &points, const edgeList &edges) | |
| Copy construct from components. More... | |
| edgeMesh (pointField &&pointLst, edgeList &&edgeLst) | |
| Move construct from components. More... | |
| edgeMesh (const fileName &name) | |
| Construct from file name (uses extension to determine type) More... | |
| edgeMesh (const fileName &name, const word &fileType) | |
| Construct from file name with specified type. More... | |
| declareRunTimeSelectionTable (autoPtr, edgeMesh, fileExtension,(const fileName &name),(name)) | |
| virtual | ~edgeMesh ()=default |
| Destructor. More... | |
| declareMemberFunctionSelectionTable (void, edgeMesh, write, fileExtension,(const fileName &name, const edgeMesh &mesh),(name, mesh)) | |
| void | transfer (edgeMesh &mesh) |
| Transfer the contents of the argument and annul the argument. More... | |
| bool | read (const fileName &name, const word &fileType) |
| Read from file. Chooses reader based on explicit extension. More... | |
| const pointField & | points () const |
| Return points. More... | |
| const edgeList & | edges () const |
| Return edges. More... | |
| const labelListList & | pointEdges () const |
| Return edges. More... | |
| label | regions (labelList &edgeRegion) const |
| Find connected regions. Set region number per edge. More... | |
| virtual void | clear () |
| Clear all storage. More... | |
| virtual void | scalePoints (const scalar scaleFactor) |
| Scale points. A non-positive factor is ignored. More... | |
| virtual void | mergePoints (const scalar mergeDist) |
| Geometric merge points (points within mergeDist) prior to. More... | |
| virtual void | mergeEdges () |
| Merge duplicate edges and eliminate unused points. More... | |
| virtual void | writeStats (Ostream &) const |
| virtual void | write (const fileName &name) const |
| Generic write routine. Chooses writer based on extension. More... | |
| virtual void | write (const fileName &name, const word &fileType) const |
| Generic write routine. Chooses writer based on extension. More... | |
| void | operator= (const edgeMesh &rhs) |
| Copy assignment. More... | |
| void | operator= (edgeMesh &&rhs) |
| Move assignment. More... | |
Public Member Functions inherited from GeoMesh< faMesh > | |
| GeoMesh (const faMesh &mesh) | |
| Construct from MESH. More... | |
| bool | hasDb () const |
| Return true if thisDb() is a valid DB - here = false. More... | |
| const objectRegistry & | thisDb () const |
| Return the object registry. More... | |
| const faMesh & | operator() () const |
| Return reference to polyMesh. More... | |
Public Member Functions inherited from NASCore | |
| NASCore ()=default | |
| Default construct. More... | |
Static Public Member Functions | |
| static autoPtr< edgeMesh > | New (const fileName &name) |
| Read file and return edge mesh. More... | |
Static Public Member Functions inherited from edgeMesh | |
| static label | size (const Mesh &mesh) |
| static wordHashSet | readTypes () |
| Summary of supported read file types. More... | |
| static wordHashSet | writeTypes () |
| Summary of supported write file types. More... | |
| static bool | canReadType (const word &fileType, bool verbose=false) |
| Can we read this file format? More... | |
| static bool | canWriteType (const word &fileType, bool verbose=false) |
| Can we write this file format type? More... | |
| static bool | canRead (const fileName &name, bool verbose=false) |
| Can we read this file format? More... | |
| static autoPtr< edgeMesh > | New (const fileName &name, const word &fileType) |
| Read construct from filename with given format. More... | |
| static autoPtr< edgeMesh > | New (const fileName &name) |
| Select constructed from filename (implicit extension) More... | |
| static void | write (const fileName &name, const edgeMesh &mesh) |
| Write to file (format implicit in the extension) More... | |
| static void | write (const fileName &name, const word &fileType, const edgeMesh &mesh) |
| Write to file, with given format. More... | |
Static Public Member Functions inherited from NASCore | |
| static scalar | readNasScalar (const std::string &str) |
| Extract numbers from things like "-2.358-8" (same as "-2.358e-8") More... | |
| static std::string | nextNasField (const std::string &str, std::string::size_type &pos, std::string::size_type len) |
| A string::substr() to handle fixed-format and free-format NASTRAN. More... | |
| static void | setPrecision (Ostream &os, const fieldFormat format) |
| Set output stream precision and format flags. More... | |
| static Ostream & | writeKeyword (Ostream &os, const word &keyword, const fieldFormat format) |
| static label | faceDecomposition (const UList< point > &points, const UList< face > &faces, labelList &decompOffsets, DynamicList< face > &decompFaces) |
| Calculate face decomposition for non tri/quad faces. More... | |
Additional Inherited Members | |
Public Types inherited from GeoMesh< faMesh > | |
| typedef faMesh | Mesh |
| typedef faMesh ::BoundaryMesh | BoundaryMesh |
Public Types inherited from NASCore | |
| enum | fieldFormat { SHORT, LONG, FREE } |
| File field formats. More... | |
| enum | loadFormat { PLOAD2, PLOAD4 } |
| Output load format. More... | |
Static Public Attributes inherited from NASCore | |
| static const Enum< fieldFormat > | fieldFormatNames |
| Selection names for the NASTRAN file field formats. More... | |
| static const Enum< loadFormat > | loadFormatNames |
| Selection names for the NASTRAN file field formats. More... | |
Protected Member Functions inherited from edgeMesh | |
| pointField & | storedPoints () |
| Non-const access to global points. More... | |
| edgeList & | storedEdges () |
| Non-const access to the edges. More... | |
Protected Attributes inherited from GeoMesh< faMesh > | |
| const faMesh & | mesh_ |
| Reference to Mesh. More... | |
Nastran edge reader.
- Interprets "CBEAM", "CROD" and "PLOTEL" entries as edges.
GRID 28 10.20269-.030265-2.358-8
Definition at line 61 of file NASedgeFormat.H.
| NASedgeFormat | ( | const fileName & | filename | ) |
Construct from file name.
Definition at line 36 of file NASedgeFormat.C.
References NASedgeFormat::read().
|
virtualdefault |
Destructor.
Read file and return edge mesh.
Definition at line 85 of file NASedgeFormat.H.
References Foam::name().
Read from a file.
Reimplemented from edgeMesh.
Definition at line 45 of file NASedgeFormat.C.
References bitSet::all(), DynamicList< T, SizeMin >::append(), Foam::constant::physicoChemical::b, clear(), DynamicList< T, SizeMin >::clearStorage(), Foam::constant::electromagnetic::e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, ISstream::getLine(), IOstream::good(), IOstream::lineNumber(), IFstream::name(), Foam::nl, points, Foam::readLabel(), bitSet::set(), DynamicList< T, SizeMin >::shrink(), word::validate(), x, and y.
Referenced by NASedgeFormat::NASedgeFormat().