![]() |
Workspace 6.21.5
|
Reads Nastran models. More...
#include <Mesh/FileIO/Readers/nastranreader.h>
Public Member Functions | |
NastranReader (const std::string &fName="") | |
std::string | GetFormatExtension () const override |
std::string | GetFormatName () const override |
![]() | |
MeshReader (const std::string &fName) | |
~MeshReader () override=default | |
void | AllowDegenerateElements () |
void | DisallowDegenerateElements () |
State * | GetNodeState (long nodeID) |
virtual void | GetTransform (ObjectTransforms &trans) |
virtual bool | HasTransformData () const |
bool | Read (MeshModel &model, bool shouldOverwrite=false) |
virtual bool | ReadStateInfo (StateInfoArray &nodeStates, StateInfoArray &elementStates) |
![]() | |
BaseReader (const std::string &fName) | |
~BaseReader () override=default | |
Have virtual functions, so also have a virtual destructor. | |
virtual void | Close () |
std::string | ExtractBaseName (const std::string &fileName) |
int | FileLength () |
int | FilePosition () |
void | Flush () |
std::string | GetBaseName () const |
std::string | GetBaseNameSuffix () const |
std::string | GetFileName () const |
virtual std::string | GetFormatExtension () const =0 |
virtual std::string | GetFormatName () const =0 |
bool | GetTerminateExecution () const |
bool | IsOpen () const |
bool | IsReady () const |
virtual std::string | Open () |
void | SetBaseName (const std::string &base) |
void | SetBaseNameSuffix (const std::string &suffix) |
void | SetBaseNameSuffix (double caseNum, const std::string &caseLabel="_") |
void | SetBaseNameSuffix (int caseNum, const std::string &caseLabel="_") |
template<typename T > | |
void | SetBaseNameSuffix (T caseNum, const std::string &caseLabel="_") |
void | SetFileName (const std::string &fileName) |
virtual void | SetProgress (int progress) |
void | SetTerminateExecution (bool b) |
![]() | |
Logger () | |
The default constructor logs to standard output with a plain text log mode. | |
Logger (const Logger &logger) | |
virtual | ~Logger () |
We own the log mode, so delete it. | |
std::string | ErrorOff () const |
std::string | ErrorOn () const |
std::ostream & | GetLog () const |
const LogMode & | GetLogMode () const |
void | SetLog (std::ostream &log) |
void | SetLogMode (const LogMode &logMode) |
void | SetLogModeHTML () |
void | SetLogModePlainText () |
Set log mode to plain text output. | |
template<Styles s> | |
void | StyleOff () const |
template<Styles s> | |
void | StyleOn () const |
std::string | WarningOff () const |
std::string | WarningOn () const |
![]() | |
virtual | ~Observable () |
void | attachObserver (Observer &observer) |
void | destroy () |
void | detachObserver (Observer &observer) |
void | notifyEvent (const ObservableEvent &event) |
Additional Inherited Members | |
![]() | |
enum | Styles { Warning , Error , Preformat } |
![]() | |
Node * | addNode (MeshModel &model, const Node &node) |
PointMass * | addPointMass (MeshModel &model, const PointMass &mass) |
Segment * | addSegment (MeshModel &model, const Segment &elem) |
ShellElement * | addShellElement (MeshModel &model, const ShellElement &elem) |
VolumeElement * | addVolumeElement (MeshModel &model, const VolumeElement &elem) |
bool | SetNodeID (long oldNodeID, long newNodeID) |
bool | WillAllowDegenerateElements () const |
![]() | |
bool | GetNextNonBlankLine (std::string &inputLine) |
virtual void | postFileNameChanged () |
![]() | |
virtual void | LogChanged () |
virtual void | LogModeChanged () |
![]() | |
Observable () | |
Observable (const Observable &) | |
![]() | |
std::string | baseName |
std::string | baseNameSuffix |
iautogzstream | inFile |
int | progress_ |
bool | terminateExecution_ |
Only a subset of Nastran entities are recognised: shell elements (CQUAD4 and CTRIA3), volume elements (CTETRA) and nodes (GRID). Point masses (CONM2) are recognised in some special cases but are not stored.
All three variants of line format are supported (free form, short form fixed and long form fixed formats), but there are some limitations:
NastranReader | ( | const std::string & | fName = "" | ) |
fName | Defines the base file name for the reader. |
|
inlineoverridevirtual |
Implements BaseReader.
|
inlineoverridevirtual |
Implements BaseReader.