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, const std::string::size_type width, const bool free_format=false) |
| | A std::string::substr() variant 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 52 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 67 of file NASCore.H.
◆ loadFormat
Output load format.
| Enumerator |
|---|
| PLOAD2 | Face load (eg, pressure)
|
| PLOAD4 | Vertex load.
|
Definition at line 82 of file NASCore.H.
◆ NASCore()
◆ readNasScalar()
| Foam::scalar readNasScalar |
( |
const std::string & |
str | ) |
|
|
static |
◆ nextNasField()
A std::string::substr() variant to handle fixed-format and free-format NASTRAN.
Returns the substr until the next comma (if found) or the given fixed width
- Parameters
-
| str | The string to extract from |
| [in,out] | pos | The parse position within str |
| width | The fixed-format width to use (if comma is not found) |
| free_format | The input is known to be free-format |
Definition at line 129 of file NASCore.C.
References Foam::SVG::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 196 of file NASCore.C.
References format(), os(), and Foam::setw().
◆ writeCoord()
◆ faceDecomposition()
◆ debug
Named/registered debug switch: 'nastran.debug'.
Definition at line 61 of file NASCore.H.
◆ fieldFormatNames
Selection names for the NASTRAN file field formats.
Definition at line 77 of file NASCore.H.
◆ loadFormatNames
The documentation for this class was generated from the following files: