Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
NASCore Class Reference

Core routines used when reading/writing NASTRAN files. More...

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

Public Types

enum  fieldFormat { SHORT, LONG, FREE }
 
enum  loadFormat { PLOAD2, PLOAD4 }
 

Public Member Functions

 NASCore ()=default
 

Static Public Member Functions

static scalar readNasScalar (const std::string &str)
 
static std::string nextNasField (const std::string &str, std::string::size_type &pos, std::string::size_type len)
 
static void setPrecision (Ostream &os, const fieldFormat format)
 
static OstreamwriteKeyword (Ostream &os, const word &keyword, const fieldFormat format)
 
static label faceDecomposition (const UList< point > &points, const UList< face > &faces, labelList &decompOffsets, DynamicList< face > &decompFaces)
 

Static Public Attributes

static const Enum< fieldFormatfieldFormatNames
 
static const Enum< loadFormatloadFormatNames
 

Detailed Description

Core routines used when reading/writing NASTRAN files.

Source files

Definition at line 54 of file NASCore.H.

Member Enumeration Documentation

◆ fieldFormat

Enumerator
SHORT 

Short format (field width = 8)

LONG 

Long format (field width = 16)

FREE 

Free format (comma-separated fields)

Definition at line 59 of file NASCore.H.

◆ loadFormat

enum loadFormat
Enumerator
PLOAD2 
PLOAD4 

Definition at line 70 of file NASCore.H.

Constructor & Destructor Documentation

◆ NASCore()

NASCore ( )
default

Member Function Documentation

◆ readNasScalar()

Foam::scalar readNasScalar ( const std::string &  str)
static

Definition at line 53 of file NASCore.C.

References Foam::parsing::errorNames, Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, Foam::parsing::GENERAL, Foam::isspace(), Foam::pow(), and Foam::readInt().

Here is the call graph for this function:

◆ nextNasField()

std::string nextNasField ( const std::string &  str,
std::string::size_type pos,
std::string::size_type  len 
)
static

Definition at line 100 of file NASCore.C.

References stdFoam::end(), and Foam::pos().

Here is the call graph for this function:

◆ setPrecision()

void setPrecision ( Ostream os,
const fieldFormat  format 
)
static

Definition at line 124 of file NASCore.C.

References format(), os(), and Foam::scientific().

Referenced by nastranWriter::write().

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

◆ writeKeyword()

Foam::Ostream & writeKeyword ( Ostream os,
const word keyword,
const fieldFormat  format 
)
static

Definition at line 158 of file NASCore.C.

References format(), os(), and Foam::setw().

Referenced by nastranSetWriter< Type >::write().

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

◆ faceDecomposition()

Foam::label faceDecomposition ( const UList< point > &  points,
const UList< face > &  faces,
labelList decompOffsets,
DynamicList< face > &  decompFaces 
)
static

Definition at line 194 of file NASCore.C.

References DynamicList::clear(), f(), n, points, List::resize(), and UList::size().

Here is the call graph for this function:

Member Data Documentation

◆ fieldFormatNames

const Foam::Enum< Foam::fileFormats::NASCore::fieldFormat > fieldFormatNames
static

Definition at line 67 of file NASCore.H.

◆ loadFormatNames

const Foam::Enum< Foam::fileFormats::NASCore::loadFormat > loadFormatNames
static

Definition at line 77 of file NASCore.H.

Referenced by nastranWriter::nastranWriter().


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