basso::NastranInput Class Reference

Reads a Nastran bulk data file. More...

#include <NastranInput.h>

Inheritance diagram for basso::NastranInput:

basso::FEInput basso::Input List of all members.

Public Member Functions

virtual ~NastranInput ()
virtual void ReadNodes (Array< Node > &nodes)
virtual void AddElements (list< Element > &elem, int pid=-999) const
virtual void AddNodeSet (set< int > &nid, int pid) const
constructors


 NastranInput ()
 NastranInput (const String &file)

Protected Member Functions

int ReadNextCard (list< String > &fields, ifstream &inFile) const
int ConvertField (int fid, const list< String > &fields) const
Numeric ConvertField (int fid, const list< String > &fields) const
BasisType GetBasisType (const String &etype, int nn) const
int NumNodes () const

Detailed Description

Reads a Nastran bulk data file.

Definition at line 59 of file NastranInput.h.


Member Function Documentation

void basso::NastranInput::ReadNodes ( Array< Node > &  nodes  )  [virtual]

read all the nodes defined in the input file

Parameters:
nodes array where nodees are to be read

Implements basso::FEInput.

Definition at line 152 of file NastranInput.h.

References basso::Input::CloseFile(), basso::Input::GotoNextSection(), basso::FEInput::mNodeMap, Numeric, NumNodes(), and basso::Input::OpenFile().

void basso::NastranInput::AddElements ( list< Element > &  elem,
int  pid = -999 
) const [virtual]

read all the elements defined in the input file belonging to a particular part id number. The elements read are added to the original element list.

Parameters:
elem list of Elements to be augmented with those in the input file
pid Part id number of the elements to be read If the pid is omitted all elements will be read

Implements basso::FEInput.

Definition at line 181 of file NastranInput.h.

References basso::Input::CloseFile(), basso::Input::GotoNextSection(), and basso::Input::OpenFile().

void basso::NastranInput::AddNodeSet ( set< int > &  nid,
int  pid 
) const [virtual]

read all the node ids defined in the input file belonging to all the elements of a particular physical id number. The node ids read are added to the original node id set.

Parameters:
nid set of int to be augmented with those in the input file
pid physical id number of the node set to be read

Implements basso::FEInput.

Definition at line 199 of file NastranInput.h.

References basso::Input::CloseFile(), and basso::Input::OpenFile().

int basso::NastranInput::ReadNextCard ( list< String > &  fields,
ifstream &  inFile 
) const [protected]

Reads the next valid input card in the file stream

Parameters:
fields list of strings of the fields in the card
inFile the input file stream if and EOF is encountered 0 is returned otherwise 1 is returned

int basso::NastranInput::ConvertField ( int  fid,
const list< String > &  fields 
) const [protected]

Returns a field wich is an integer. THereis no checking on this, use at your own risk

Parameters:
fid the filed to be returned
fields list of strings of the fields in the card

Numeric basso::NastranInput::ConvertField ( int  fid,
const list< String > &  fields 
) const [protected]

Returns a field wich is a Numeric. THereis no checking on this, use at your own risk

Parameters:
fid the filed to be returned
fields list of strings of the fields in the card

BasisType basso::NastranInput::GetBasisType ( const String &  etype,
int  nn 
) const [protected]

converts a Nastran element type to a Basso BasisType

Parameters:
etype Nastran element type card
nn number of nodes in the element

Definition at line 213 of file NastranInput.h.

References basso::kHEXA20, basso::kHEXA8, basso::kLINE2, basso::kNONE, basso::kPOINT1, basso::kPRISM15, basso::kPRISM18, basso::kPRISM6, basso::kQUAD4, basso::kQUAD8, basso::kTETRA10, basso::kTETRA4, basso::kTRIA3, and basso::kTRIA6.

int basso::NastranInput::NumNodes (  )  const [protected]

returns the number of nodes in the Nastran bulk data file

Definition at line 135 of file NastranInput.h.

References basso::Input::CloseFile(), basso::Input::GotoNextSection(), and basso::Input::OpenFile().

Referenced by ReadNodes().


The documentation for this class was generated from the following file:
Generated on Sat Jan 19 09:03:59 2008 for Basso by  doxygen 1.5.2