FEDEM Model Database  R8.0
Source code of the FEDEM model database
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Attributes | Static Private Attributes | List of all members
FFlNastranReader Class Reference

#include <FFlNastranReader.H>

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

Classes

struct  BEAMOR
 
struct  BulkEntry
 
struct  CORD
 
struct  GRDSET
 

Public Types

enum  FieldFormat {
  UNDEFINED = 0 , CONT_FIELD = -2 , FREE_FIELD = -1 , SMALL_FIELD = 8 ,
  LARGE_FIELD = 16
}
 
enum  coordSysType { rectangular , cylindrical , spherical }
 

Public Member Functions

 FFlNastranReader (FFlLinkHandler *readIntoLink, const int startHere)
 
 FFlNastranReader (const FFlNastranReader &)=delete
 
virtual ~FFlNastranReader ()
 
FFlNastranReader & operator= (const FFlNastranReader &)=delete
 
- Public Member Functions inherited from FFlReaderBase
 FFlReaderBase (FFlLinkHandler *p)
 
virtual ~FFlReaderBase ()
 

Static Public Member Functions

static void init ()
 
static void identifierCB (const std::string &fileName, int &positiveIdent)
 
static void readerCB (const std::string &fileName, FFlLinkHandler *link)
 

Protected Member Functions

bool read (const std::string &fileName, bool includedFile=false)
 
bool read (std::istream &is)
 
bool resolve (bool stillOk)
 
void processAssignFile (const std::string &line)
 
bool setsArePresent (const std::string &fileName)
 
bool processSet (const std::string &fileName, const int startBlk)
 
bool processAllSets (std::istream &fs, const int startBulk)
 
FFlGroup * processThisSet (std::string &setLine, const int startL, const int stopL)
 
bool extractNameFromLastComment (bool first=false, const char *NXkeyword="NX ")
 
void nameFromLastComment (FFlGroup *group, bool first=false)
 
void nameFromLastComment (FFlAttributeBase *att, const char *keyword="Property", bool first=false)
 
bool getNextEntry (std::istream &is, BulkEntry &entry)
 
bool getFields (std::istream &is, BulkEntry &entry)
 
int getNextField (std::istream &is, std::string &field, const FieldFormat size=UNDEFINED)
 
bool processThisEntry (BulkEntry &entry)
 
bool resolveCoordinates ()
 
bool transformNode (IntMap::iterator &nit)
 
bool transformPoint (FaVec3 &X, const int CID, bool orientationOnly=false)
 
bool computeTmatrix (const int CID, CORD &cs)
 
bool getTmatrixAtPt (const int CID, CORD &cs, const FaVec3 &X, FaMat33 &T)
 
bool resolveAttributes ()
 
int resolveBeamAttributes (FFlElementBase *theBeam, bool &ok)
 
bool resolveWeldElement (FFlElementBase *theElem, int &newEID, const int PID)
 
bool getElementAxis (FFlElementBase *theElem, const int n1, const int n2, FaVec3 &axis)
 
void resolveSpringAttributes (FFlElementBase *theSpring, const double K, const int C, bool &ok)
 
void resolveBushAttributes (FFlElementBase *theSpring, const double S, const int CID, bool &ok)
 
bool transformMassMatrix (FFlElementBase *theMass, const int CID, FaVec3 *X)
 
bool transformSymmMatrix6 (double mat[6][6], const FaVec3 &X, const int CID, const int node=0)
 
bool transformVec3 (FaVec3 &v, const FaVec3 &X, const int CID)
 
bool resolveLoads ()
 
bool resolveLoadFace (const FFlLoadBase *load, const IntPair &nodes) const
 
bool resolveLoadDirection (const FFlLoadBase *load, int CID)
 
bool processThisEntry (const std::string &name, std::vector< std::string > &entry)
 
bool createBeamSection (const char *bulk, int PID, int MID, FFlCrossSection &data)
 
IntMap::iterator setDofFlag (int n, int flg)
 

Private Types

using IntPair = std::pair< int, int >
 
using IntMap = std::map< int, int >
 
using ElementMap = std::map< int, FFlElementBase * >
 
using LoadFaceMap = std::map< FFlLoadBase *, IntPair >
 

Private Attributes

std::map< std::string, int > ignoredBulk
 
std::map< std::string, int > sxErrorBulk
 
std::vector< BulkEntry > ucEntries
 
std::set< int > beamPIDnsm
 
std::set< int > shellPIDnsm
 
std::map< int, CORD * > cordSys
 
IntMap nodeStat
 
IntMap nodeCPID
 
IntMap nodeCDID
 
IntMap massCID
 
IntMap solidPID
 
IntMap shellPID
 
IntMap sprPID
 
IntMap sprComp
 
IntMap weldGS
 
std::map< int, double > sprK
 
std::map< int, double > propK
 
std::map< int, IntMap > propMID
 
std::map< int, BEAMOR * > bOri
 
std::map< int, FaVec3 * > massX
 
GRDSET * gridDefault
 
BEAMOR * barDefault
 
BEAMOR * beamDefault
 
FFlGroup * lastGroup
 
std::set< int > PTHICKs
 
std::set< int > PCOMPs
 
std::vector< FFlElementBase * > myWelds
 
std::vector< ElementMap > weld
 
LoadFaceMap loadFace
 
std::map< FFlLoadBase *, int > loadCID
 
FFl::MPCMap myMPCs
 
std::pair< int, std::string > lastComment
 
int lineCounter
 
bool sizeOK
 

Static Private Attributes

static int nWarnings = 0
 
static int nNotes = 0
 
static int nWnotImpl = 0
 

Additional Inherited Members

- Static Protected Member Functions inherited from FFlReaderBase
static int searchKeyword (const char *fileName, const char *keyWord, int maxLines=100)
 
static int searchKeyword (const char *fileName, const char **keyWord, int maxLines=100)
 
- Protected Attributes inherited from FFlReaderBase
FFlLinkHandler * myLink
 
FFaProfiler * myProfiler
 

Member Typedef Documentation

◆ ElementMap

using FFlNastranReader::ElementMap = std::map<int,FFlElementBase*>
private

◆ IntMap

using FFlNastranReader::IntMap = std::map<int,int>
private

◆ IntPair

using FFlNastranReader::IntPair = std::pair<int,int>
private

◆ LoadFaceMap

Member Enumeration Documentation

◆ coordSysType

Enumerator
rectangular 
cylindrical 
spherical 

◆ FieldFormat

Enumerator
UNDEFINED 
CONT_FIELD 
FREE_FIELD 
SMALL_FIELD 
LARGE_FIELD 

Constructor & Destructor Documentation

◆ FFlNastranReader() [1/2]

FFlNastranReader::FFlNastranReader ( FFlLinkHandler *  readIntoLink,
const int  startHere 
)

◆ FFlNastranReader() [2/2]

FFlNastranReader::FFlNastranReader ( const FFlNastranReader &  )
delete

◆ ~FFlNastranReader()

FFlNastranReader::~FFlNastranReader ( )
virtual

Member Function Documentation

◆ computeTmatrix()

bool FFlNastranReader::computeTmatrix ( const int  CID,
CORD &  cs 
)
protected

◆ createBeamSection()

bool FFlNastranReader::createBeamSection ( const char *  bulk,
int  PID,
int  MID,
FFlCrossSection &  data 
)
protected

◆ extractNameFromLastComment()

bool FFlNastranReader::extractNameFromLastComment ( bool  first = false,
const char *  NXkeyword = "NX " 
)
protected

◆ getElementAxis()

bool FFlNastranReader::getElementAxis ( FFlElementBase *  theElem,
const int  n1,
const int  n2,
FaVec3 &  axis 
)
protected

◆ getFields()

bool FFlNastranReader::getFields ( std::istream &  is,
BulkEntry &  entry 
)
protected

◆ getNextEntry()

bool FFlNastranReader::getNextEntry ( std::istream &  is,
BulkEntry &  entry 
)
protected

◆ getNextField()

int FFlNastranReader::getNextField ( std::istream &  is,
std::string &  field,
const FieldFormat  size = UNDEFINED 
)
protected
Returns
Status flag:
  • 0 : error
  • 1 : ok
  • 2 : ok, but end-of-line detected
  • 3 : ok, and end-of-line of a continuing Free Field format record

◆ getTmatrixAtPt()

bool FFlNastranReader::getTmatrixAtPt ( const int  CID,
CORD &  cs,
const FaVec3 &  X,
FaMat33 &  T 
)
protected

◆ identifierCB()

void FFlNastranReader::identifierCB ( const std::string &  fileName,
int &  positiveIdent 
)
static

◆ init()

void FFlNastranReader::init ( )
static

◆ nameFromLastComment() [1/2]

void FFlNastranReader::nameFromLastComment ( FFlAttributeBase *  att,
const char *  keyword = "Property",
bool  first = false 
)
protected

◆ nameFromLastComment() [2/2]

void FFlNastranReader::nameFromLastComment ( FFlGroup *  group,
bool  first = false 
)
protected

◆ operator=()

FFlNastranReader& FFlNastranReader::operator= ( const FFlNastranReader &  )
delete

◆ processAllSets()

bool FFlNastranReader::processAllSets ( std::istream &  fs,
const int  startBulk 
)
protected

◆ processAssignFile()

void FFlNastranReader::processAssignFile ( const std::string &  line)
protected

◆ processSet()

bool FFlNastranReader::processSet ( const std::string &  fileName,
const int  startBlk 
)
protected

◆ processThisEntry() [1/2]

bool FFlNastranReader::processThisEntry ( BulkEntry &  entry)
protected

◆ processThisEntry() [2/2]

bool FFlNastranReader::processThisEntry ( const std::string &  name,
std::vector< std::string > &  entry 
)
protected

◆ processThisSet()

FFlGroup * FFlNastranReader::processThisSet ( std::string &  setLine,
const int  startL,
const int  stopL 
)
protected

◆ read() [1/2]

bool FFlNastranReader::read ( const std::string &  fileName,
bool  includedFile = false 
)
protected

◆ read() [2/2]

bool FFlNastranReader::read ( std::istream &  is)
protected

◆ readerCB()

void FFlNastranReader::readerCB ( const std::string &  fileName,
FFlLinkHandler *  link 
)
static

◆ resolve()

bool FFlNastranReader::resolve ( bool  stillOk)
protected

◆ resolveAttributes()

bool FFlNastranReader::resolveAttributes ( )
protected

◆ resolveBeamAttributes()

int FFlNastranReader::resolveBeamAttributes ( FFlElementBase *  theBeam,
bool &  ok 
)
protected

◆ resolveBushAttributes()

void FFlNastranReader::resolveBushAttributes ( FFlElementBase *  theSpring,
const double  S,
const int  CID,
bool &  ok 
)
protected

◆ resolveCoordinates()

bool FFlNastranReader::resolveCoordinates ( )
protected

◆ resolveLoadDirection()

bool FFlNastranReader::resolveLoadDirection ( const FFlLoadBase *  load,
int  CID 
)
protected

◆ resolveLoadFace()

bool FFlNastranReader::resolveLoadFace ( const FFlLoadBase *  load,
const IntPair &  nodes 
) const
protected

◆ resolveLoads()

bool FFlNastranReader::resolveLoads ( )
protected

◆ resolveSpringAttributes()

void FFlNastranReader::resolveSpringAttributes ( FFlElementBase *  theSpring,
const double  K,
const int  C,
bool &  ok 
)
protected

◆ resolveWeldElement()

bool FFlNastranReader::resolveWeldElement ( FFlElementBase *  theElem,
int &  newEID,
const int  PID 
)
protected

◆ setDofFlag()

IntMap::iterator FFlNastranReader::setDofFlag ( int  n,
int  flg 
)
protected

◆ setsArePresent()

bool FFlNastranReader::setsArePresent ( const std::string &  fileName)
protected

◆ transformMassMatrix()

bool FFlNastranReader::transformMassMatrix ( FFlElementBase *  theMass,
const int  CID,
FaVec3 *  X 
)
protected

◆ transformNode()

bool FFlNastranReader::transformNode ( IntMap::iterator &  nit)
protected

◆ transformPoint()

bool FFlNastranReader::transformPoint ( FaVec3 &  X,
const int  CID,
bool  orientationOnly = false 
)
protected

◆ transformSymmMatrix6()

bool FFlNastranReader::transformSymmMatrix6 ( double  mat[6][6],
const FaVec3 &  X,
const int  CID,
const int  node = 0 
)
protected

◆ transformVec3()

bool FFlNastranReader::transformVec3 ( FaVec3 &  v,
const FaVec3 &  X,
const int  CID 
)
protected

Member Data Documentation

◆ barDefault

BEAMOR* FFlNastranReader::barDefault
private

◆ beamDefault

BEAMOR* FFlNastranReader::beamDefault
private

◆ beamPIDnsm

std::set<int> FFlNastranReader::beamPIDnsm
private

◆ bOri

std::map<int,BEAMOR*> FFlNastranReader::bOri
private

◆ cordSys

std::map<int,CORD*> FFlNastranReader::cordSys
private

◆ gridDefault

GRDSET* FFlNastranReader::gridDefault
private

◆ ignoredBulk

std::map<std::string,int> FFlNastranReader::ignoredBulk
private

◆ lastComment

std::pair<int,std::string> FFlNastranReader::lastComment
mutableprivate

◆ lastGroup

FFlGroup* FFlNastranReader::lastGroup
private

◆ lineCounter

int FFlNastranReader::lineCounter
private

◆ loadCID

std::map<FFlLoadBase*,int> FFlNastranReader::loadCID
private

◆ loadFace

LoadFaceMap FFlNastranReader::loadFace
private

◆ massCID

IntMap FFlNastranReader::massCID
private

◆ massX

std::map<int,FaVec3*> FFlNastranReader::massX
private

◆ myMPCs

FFl::MPCMap FFlNastranReader::myMPCs
private

◆ myWelds

std::vector<FFlElementBase*> FFlNastranReader::myWelds
private

◆ nNotes

int FFlNastranReader::nNotes = 0
staticprivate

◆ nodeCDID

IntMap FFlNastranReader::nodeCDID
private

◆ nodeCPID

IntMap FFlNastranReader::nodeCPID
private

◆ nodeStat

IntMap FFlNastranReader::nodeStat
private

◆ nWarnings

int FFlNastranReader::nWarnings = 0
staticprivate

◆ nWnotImpl

int FFlNastranReader::nWnotImpl = 0
staticprivate

◆ PCOMPs

std::set<int> FFlNastranReader::PCOMPs
private

◆ propK

std::map<int,double> FFlNastranReader::propK
private

◆ propMID

std::map<int,IntMap> FFlNastranReader::propMID
private

◆ PTHICKs

std::set<int> FFlNastranReader::PTHICKs
private

◆ shellPID

IntMap FFlNastranReader::shellPID
private

◆ shellPIDnsm

std::set<int> FFlNastranReader::shellPIDnsm
private

◆ sizeOK

bool FFlNastranReader::sizeOK
private

◆ solidPID

IntMap FFlNastranReader::solidPID
private

◆ sprComp

IntMap FFlNastranReader::sprComp
private

◆ sprK

std::map<int,double> FFlNastranReader::sprK
private

◆ sprPID

IntMap FFlNastranReader::sprPID
private

◆ sxErrorBulk

std::map<std::string,int> FFlNastranReader::sxErrorBulk
private

◆ ucEntries

std::vector<BulkEntry> FFlNastranReader::ucEntries
private

◆ weld

std::vector<ElementMap> FFlNastranReader::weld
private

◆ weldGS

IntMap FFlNastranReader::weldGS
private

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