Core routines used when reading/writing NASTRAN files.
More...
|
| 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) |
| | Write initial keyword (eg, 'GRID' or 'GRID*') followed by the requisite number of spaces for the field-width. More...
|
| |
| static void | writeCoord (Ostream &os, const point &p, const label pointId, const fieldFormat format) |
| | Write a GRID point. More...
|
| |
| 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...
|
| |
Core routines used when reading/writing NASTRAN files.
- Source files
-
Definition at line 54 of file NASCore.H.
◆ fieldFormat
File field formats.
| Enumerator |
|---|
| SHORT | Short format (field width = 8)
|
| LONG | Long format (field width = 16)
|
| FREE | Free format (comma-separated fields)
|
Definition at line 61 of file NASCore.H.
◆ loadFormat
Output load format.
Definition at line 76 of file NASCore.H.
◆ NASCore()
◆ readNasScalar()
| Foam::scalar readNasScalar |
( |
const std::string & |
str | ) |
|
|
static |
◆ nextNasField()
A string::substr() to handle fixed-format and free-format NASTRAN.
Returns the substr to the next comma (if found) or the given length
- Parameters
-
| str | The string to extract from |
| pos | On input, the position of the first character of the substring. On output, advances to the next position to use. |
| len | The fixed-format length to use if a comma is not found. |
Definition at line 115 of file NASCore.C.
References stdFoam::end(), and Foam::pos().
◆ setPrecision()
◆ writeKeyword()
Write initial keyword (eg, 'GRID' or 'GRID*') followed by the requisite number of spaces for the field-width.
Definition at line 173 of file NASCore.C.
References format(), os(), and Foam::setw().
◆ writeCoord()
◆ faceDecomposition()
◆ fieldFormatNames
Selection names for the NASTRAN file field formats.
Definition at line 71 of file NASCore.H.
◆ loadFormatNames
The documentation for this class was generated from the following files: