8 #ifndef FFL_NASTRAN_READER_H
9 #define FFL_NASTRAN_READER_H
21 #define DEF_PROCESSOR(rec) bool process_##rec (std::vector<std::string>& entry);
27 namespace FF_NAMESPACE {
68 bool isComputed =
false;
71 int G[3] = { 0, 0, 0 };
93 bool empty[5] = {
false,
false,
false,
false,
false };
157 static void identifierCB (
const std::string& fileName,
int& positiveIdent);
158 static void readerCB (
const std::string& fileName,
FFlLinkHandler* link);
162 bool read (
const std::string& fileName,
bool includedFile =
false);
163 bool read (std::istream& is);
164 bool resolve (
bool stillOk);
166 void processAssignFile (
const std::string& line);
169 bool setsArePresent (
const std::string& fileName);
170 bool processSet (
const std::string& fileName,
const int startBlk);
171 bool processAllSets (std::istream& fs,
const int startBulk);
172 FFlGroup* processThisSet (std::string& setLine,
173 const int startL,
const int stopL);
175 bool extractNameFromLastComment (
bool first =
false,
176 const char* NXkeyword =
"NX ");
178 void nameFromLastComment (
FFlGroup* group,
bool first =
false);
181 const char* keyword =
"Property",
185 bool getNextEntry (std::istream& is,
BulkEntry& entry);
187 bool getFields (std::istream& is,
BulkEntry& entry);
190 int getNextField (std::istream& is, std::string& field,
194 bool processThisEntry (
BulkEntry& entry);
199 bool resolveCoordinates ();
200 bool transformNode (IntMap::iterator& nit);
201 bool transformPoint (
FaVec3&
X,
const int CID,
bool orientationOnly =
false);
202 bool computeTmatrix (
const int CID,
CORD& cs);
204 bool resolveAttributes ();
210 const int n1,
const int n2,
FaVec3& axis);
212 const double K,
const int C,
bool& ok);
214 const double S,
const int CID,
bool& ok);
217 bool transformSymmMatrix6 (
double mat[6][6],
const FaVec3&
X,
218 const int CID,
const int node = 0);
220 bool transformVec3 (
FaVec3& v,
const FaVec3&
X,
const int CID);
222 bool resolveLoads ();
224 bool resolveLoadDirection (
const FFlLoadBase* load,
int CID);
228 bool processThisEntry (
const std::string& name,
229 std::vector<std::string>& entry);
231 bool createBeamSection (
const char* bulk,
int PID,
int MID,
const double const double const double const double double * X
Definition: ChainShape.H:20
Position matrices in 3D space.
Point vectors in 3D space.
static int startBulk
Definition: FFlNastranReader.C:49
#define DEF_PROCESSOR(rec)
Definition: FFlNastranReader.H:21
Class for holding and calculation of checksum value of objects.
Definition: FFaCheckSum.H:30
Definition: FFlAttributeBase.H:26
Definition: FFlElementBase.H:43
Class for grouping of elements.
Definition: FFlGroup.H:28
Container class for finite element models.
Definition: FFlLinkHandler.H:95
Definition: FFlLoadBase.H:31
Definition: FFlNastranReader.H:37
std::map< FFlLoadBase *, IntPair > LoadFaceMap
Definition: FFlNastranReader.H:100
FieldFormat
Definition: FFlNastranReader.H:41
std::map< int, CORD * > cordSys
Definition: FFlNastranReader.H:109
LoadFaceMap loadFace
Definition: FFlNastranReader.H:134
IntMap sprPID
Definition: FFlNastranReader.H:116
std::map< int, BEAMOR * > bOri
Definition: FFlNastranReader.H:122
BEAMOR * barDefault
Definition: FFlNastranReader.H:125
std::map< int, double > sprK
Definition: FFlNastranReader.H:119
std::map< FFlLoadBase *, int > loadCID
Definition: FFlNastranReader.H:135
std::map< int, int > IntMap
Definition: FFlNastranReader.H:98
std::map< int, IntMap > propMID
Definition: FFlNastranReader.H:121
IntMap massCID
Definition: FFlNastranReader.H:113
IntMap weldGS
Definition: FFlNastranReader.H:118
FFlNastranReader(const FFlNastranReader &)=delete
std::vector< BulkEntry > ucEntries
Definition: FFlNastranReader.H:105
IntMap::iterator setDofFlag(int n, int flg)
GRDSET * gridDefault
Definition: FFlNastranReader.H:124
std::pair< int, int > IntPair
Definition: FFlNastranReader.H:97
std::map< int, FaVec3 * > massX
Definition: FFlNastranReader.H:123
std::set< int > PCOMPs
Definition: FFlNastranReader.H:129
static int nWnotImpl
Definition: FFlNastranReader.H:140
static int nNotes
Definition: FFlNastranReader.H:139
FFlGroup * lastGroup
Definition: FFlNastranReader.H:127
std::set< int > shellPIDnsm
Definition: FFlNastranReader.H:107
IntMap nodeStat
Definition: FFlNastranReader.H:110
int lineCounter
Definition: FFlNastranReader.H:145
std::vector< FFlElementBase * > myWelds
Definition: FFlNastranReader.H:131
IntMap sprComp
Definition: FFlNastranReader.H:117
IntMap nodeCPID
Definition: FFlNastranReader.H:111
std::map< int, double > propK
Definition: FFlNastranReader.H:120
IntMap shellPID
Definition: FFlNastranReader.H:115
std::map< std::string, int > ignoredBulk
Definition: FFlNastranReader.H:102
std::vector< ElementMap > weld
Definition: FFlNastranReader.H:132
std::set< int > beamPIDnsm
Definition: FFlNastranReader.H:106
std::map< std::string, int > sxErrorBulk
Definition: FFlNastranReader.H:103
bool sizeOK
Definition: FFlNastranReader.H:146
FFl::MPCMap myMPCs
Definition: FFlNastranReader.H:137
BEAMOR * beamDefault
Definition: FFlNastranReader.H:126
IntMap solidPID
Definition: FFlNastranReader.H:114
IntMap nodeCDID
Definition: FFlNastranReader.H:112
std::set< int > PTHICKs
Definition: FFlNastranReader.H:128
std::pair< int, std::string > lastComment
Definition: FFlNastranReader.H:142
coordSysType
Definition: FFlNastranReader.H:50
@ cylindrical
Definition: FFlNastranReader.H:52
@ rectangular
Definition: FFlNastranReader.H:51
std::map< int, FFlElementBase * > ElementMap
Definition: FFlNastranReader.H:99
Definition: FFlReaderBase.H:23
Class for point transformations in 3D space.
Definition: FFaMat33.H:27
Class for positions in 3D space.
Definition: FFaMat34.H:32
Class for point vectors in 3D space.
Definition: FFaVec3.H:40
int read(FILE *fd, std::string &tag, unsigned int &cs, int tagLength=LEN_TAG)
Reads the file tag and checksum from the provided file.
Definition: FFaTag.C:317
std::map< short int, DepDOFs > MPC
Definition: FFlUtils.H:35
std::map< int, MPC > MPCMap
Definition: FFlUtils.H:36
void init()
Definition: FmDB.C:518
@ UNDEFINED
Definition: FmFuncAdmin.H:45
Struct with beam cross section parameters.
Definition: FFlCrossSection.H:21
Definition: FFlNastranReader.H:87
BEAMOR(bool b=false)
Definition: FFlNastranReader.H:94
FaVec3 X
Definition: FFlNastranReader.H:90
bool isBAR
Definition: FFlNastranReader.H:91
Definition: FFlNastranReader.H:57
std::string cont
Definition: FFlNastranReader.H:61
std::string name
Definition: FFlNastranReader.H:58
std::vector< std::string > fields
Definition: FFlNastranReader.H:60
Definition: FFlNastranReader.H:67
FaVec3 XZpnt
Definition: FFlNastranReader.H:74
FaMat34 Tmat
Definition: FFlNastranReader.H:75
FaVec3 Zaxis
Definition: FFlNastranReader.H:73
FaVec3 Origo
Definition: FFlNastranReader.H:72
Definition: FFlNastranReader.H:79