pyNastran
0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
|
Public Member Functions | |
def | __init__ |
def | setEndian |
sets the endian | |
def | readHollerith |
doesnt really read a hollerith, it's an integer of value=528 which corresponds to the length of iTable=3 | |
def | readHeader |
a header is defined as (4,i,4), where i is an integer | |
def | readString |
reads nCharacters that are assumed to be a string | |
def | readInts |
reads a list of nIntegers | |
def | readDoubles |
reads a list of nDoubles | |
def | readFloats |
reads nFloats | |
def | getStrings |
unpacks a data set into a series of characters | |
def | getStrings2 |
unpacks a data set into a series of characters | |
def | getInts |
unpacks a data set into a series of ints | |
def | getInts2 |
unpacks a data set into a series of ints | |
def | getLongs |
unpacks a data set into a series of longs | |
def | getFloats |
unpacks a data set into a series of floats | |
def | getFloats2 |
unpacks a data set into a series of floats | |
def | getDoubles |
unpacks a data set into a series of doubles | |
def | printBlock |
prints a data set in int/float/double/string format to determine table info. | |
def | printBlock2 |
prints a data set in int/float/double/string format to determine table info. | |
def | getData |
gets a data set of length N | |
def | readData |
def | getBlockIntEntry |
given a data set, grabs the nth word and casts it as an integer | |
def | printSection |
prints data, but doesn't move the cursor | |
def | printSection2 |
prints data, but doesn't move the cursor | |
def | skip |
skips nBits | |
def | scan |
same as skip, but actually reads the data instead of using seek | |
def | getTableCode |
def | getMarker |
def | readMarker |
def | readMarkers |
Reads a set of predefined markers e.g. | |
def | getNMarkers |
gets the next N markers, verifies they're correct | |
def | isTableDone |
def | goto |
jumps to position n in the file | |
def | readBlock |
reads a fortran formatted data block nWords data1 data2 data3 nWords | |
def | readFullBlock |
reads a fortran formatted data block nWords data1 data2 data3 nWords includes nWords in the output | |
def | readFullIntBlock |
reads a fortran formatted block assumes that the data is made up of integers only | |
def | readStringBlock |
reads a fortran formatted block assumes that the data is made up of characters only | |
def | readIntBlock |
reads a fortran formatted block assumes that the data is made up of integers only | |
def | readFloatBlock |
reads a fortran formatted block assumes that the data is made up of floats only | |
def | readDoubleBlock |
reads a fortran formatted block assumes that the data is made up of doubles only | |
def | rewind |
rewinds the file nBytes | |
def | readTableName |
peeks into a table to check it's name | |
def | skipNextTable |
skips a table | |
def | hasMoreTables |
Public Attributes | |
endian | |
the endian of the processor (typically '<' for Windows/Linux/Mac, '>' for old HPCs) currently does nothing | |
bufferSize | |
currently does nothing | |
hasBuffer | |
flag to help know if a buffer was found | |
n |
Definition at line 33 of file fortranFile.py.
def pyNastran.op2.fortranFile.FortranFile.__init__ | ( | self | ) |
Definition at line 34 of file fortranFile.py.
def pyNastran.op2.fortranFile.FortranFile.setEndian | ( | self, | |
endian = '<' |
|||
) |
sets the endian
Definition at line 47 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.endian, pyNastran.op2.fortranFile.FortranFile.readHollerith(), pyNastran.op2.fortranFile.FortranFile.skip(), and pyNastran.f06.f06.F06.skip().
doesnt really read a hollerith, it's an integer of value=528 which corresponds to the length of iTable=3
Definition at line 56 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.readHeader().
Referenced by pyNastran.op2.op2.OP2.readTitle(), and pyNastran.op2.fortranFile.FortranFile.setEndian().
def pyNastran.op2.fortranFile.FortranFile.readHeader | ( | self, | |
expected = None , |
|||
debug = True |
|||
) |
a header is defined as (4,i,4), where i is an integer
Definition at line 63 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.readFullIntBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.printSection(), pyNastran.op2.fortranFile.FortranFile.printSection2(), pyNastran.op2.fortranFile.FortranFile.readHollerith(), pyNastran.op2.fortranFile.FortranFile.readMarker(), and pyNastran.op2.fortranFile.FortranFile.readMarkers().
def pyNastran.op2.fortranFile.FortranFile.readString | ( | self, | |
nData | |||
) |
reads nCharacters that are assumed to be a string
Definition at line 104 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.readInts().
Referenced by pyNastran.op2.op2.OP2.verifyBufferSize().
def pyNastran.op2.fortranFile.FortranFile.readInts | ( | self, | |
nInts, | |||
debug = True |
|||
) |
reads a list of nIntegers
self | the object pointer |
nInts | the number of ints to read developer debug combined with makeOp2Debug |
Definition at line 125 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getDoubles(), pyNastran.op2.op2.OP2.makeOp2Debug, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.makeOp2Debug, pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.readDoubles().
Referenced by pyNastran.op2.fortranFile.FortranFile.readString().
def pyNastran.op2.fortranFile.FortranFile.readDoubles | ( | self, | |
nData, | |||
debug = True |
|||
) |
reads a list of nDoubles
self | the object pointer |
nData | the number of doubles to read developer debug combined with makeOp2Debug |
Definition at line 146 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getFloats(), pyNastran.op2.op2.OP2.makeOp2Debug, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.makeOp2Debug, pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.readFloats().
Referenced by pyNastran.op2.fortranFile.FortranFile.readInts().
def pyNastran.op2.fortranFile.FortranFile.readFloats | ( | self, | |
nData, | |||
debug = True |
|||
) |
reads nFloats
Definition at line 158 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getStrings(), and pyNastran.op2.fortranFile.FortranFile.getStrings2().
Referenced by pyNastran.op2.fortranFile.FortranFile.readDoubles().
def pyNastran.op2.fortranFile.FortranFile.getStrings | ( | self, | |
data | |||
) |
unpacks a data set into a series of characters
Definition at line 170 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getInts().
Referenced by pyNastran.op2.fortranFile.FortranFile.getDoubles(), and pyNastran.op2.fortranFile.FortranFile.readFloats().
def pyNastran.op2.fortranFile.FortranFile.getStrings2 | ( | self, | |
data, | |||
endian | |||
) |
unpacks a data set into a series of characters
Definition at line 181 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getInts2().
Referenced by pyNastran.op2.fortranFile.FortranFile.printBlock(), and pyNastran.op2.fortranFile.FortranFile.readFloats().
def pyNastran.op2.fortranFile.FortranFile.getInts | ( | self, | |
data, | |||
debug = True |
|||
) |
unpacks a data set into a series of ints
Definition at line 192 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getLongs().
Referenced by pyNastran.op2.fortranFile.FortranFile.getDoubles(), and pyNastran.op2.fortranFile.FortranFile.getStrings().
def pyNastran.op2.fortranFile.FortranFile.getInts2 | ( | self, | |
data, | |||
endian, | |||
debug = True |
|||
) |
unpacks a data set into a series of ints
Definition at line 205 of file fortranFile.py.
Referenced by pyNastran.op2.fortranFile.FortranFile.getStrings2(), and pyNastran.op2.fortranFile.FortranFile.printBlock().
def pyNastran.op2.fortranFile.FortranFile.getLongs | ( | self, | |
data | |||
) |
unpacks a data set into a series of longs
Definition at line 217 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getFloats(), and pyNastran.op2.fortranFile.FortranFile.getFloats2().
Referenced by pyNastran.op2.fortranFile.FortranFile.getInts().
def pyNastran.op2.fortranFile.FortranFile.getFloats | ( | self, | |
data | |||
) |
unpacks a data set into a series of floats
Definition at line 233 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getDoubles().
Referenced by pyNastran.op2.fortranFile.FortranFile.getDoubles(), pyNastran.op2.fortranFile.FortranFile.getLongs(), and pyNastran.op2.fortranFile.FortranFile.readDoubles().
def pyNastran.op2.fortranFile.FortranFile.getFloats2 | ( | self, | |
data, | |||
endian | |||
) |
unpacks a data set into a series of floats
Definition at line 245 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.printBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.getLongs(), and pyNastran.op2.fortranFile.FortranFile.printBlock().
def pyNastran.op2.fortranFile.FortranFile.getDoubles | ( | self, | |
data | |||
) |
unpacks a data set into a series of doubles
Definition at line 257 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getFloats(), pyNastran.op2.fortranFile.FortranFile.getInts(), pyNastran.op2.fortranFile.FortranFile.getStrings(), pyNastran.op2.fortranFile.FortranFile.n, and pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n.
Referenced by pyNastran.op2.fortranFile.FortranFile.getFloats(), and pyNastran.op2.fortranFile.FortranFile.readInts().
def pyNastran.op2.fortranFile.FortranFile.printBlock | ( | self, | |
data, | |||
nMax = 200 |
|||
) |
prints a data set in int/float/double/string format to determine table info.
doesn't move cursor.
Definition at line 271 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getData(), pyNastran.op2.fortranFile.FortranFile.getFloats2(), pyNastran.op2.fortranFile.FortranFile.getInts2(), pyNastran.op2.fortranFile.FortranFile.getStrings2(), and pyNastran.op2.fortranFile.FortranFile.printBlock2().
Referenced by pyNastran.op2.fortranFile.FortranFile.getFloats2(), pyNastran.op2.tables.oes_stressStrain.real.elementsStressStrain.RealElementsStressStrain.OES_CSOLID_67(), pyNastran.op2.tables.oes_stressStrain.real.elementsStressStrain.RealElementsStressStrain.OES_CSOLID_85(), pyNastran.op2.fortranFile.FortranFile.readData(), pyNastran.op2.tables.oes_stressStrain.complex.elementsStressStrain.ComplexElementsStressStrain.xOES_CSOLID_67_alt(), and pyNastran.op2.tables.oes_stressStrain.complex.elementsStressStrain.ComplexElementsStressStrain.xOES_CSOLID_85_alt().
def pyNastran.op2.fortranFile.FortranFile.printBlock2 | ( | self, | |
data, | |||
endian | |||
) |
prints a data set in int/float/double/string format to determine table info.
doesn't move cursor.
Definition at line 300 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getBlockIntEntry(), pyNastran.op2.fortranFile.FortranFile.getData(), pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.readData().
Referenced by pyNastran.op2.fortranFile.FortranFile.getBlockIntEntry(), and pyNastran.op2.fortranFile.FortranFile.printBlock().
def pyNastran.op2.fortranFile.FortranFile.getData | ( | self, | |
n | |||
) |
gets a data set of length N
Definition at line 320 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.printSection().
Referenced by pyNastran.op2.fortranFile.FortranFile.printBlock(), pyNastran.op2.fortranFile.FortranFile.printBlock2(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_CASECC(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA_3(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA_4(), pyNastran.op2.tables.oee_energy.oee.OEE.readTable_OEE_3(), pyNastran.op2.tables.oef_forces.oef.OEF.readTable_OEF_3(), pyNastran.op2.tables.oes_stressStrain.oes.OES.readTable_OES_4_Data(), pyNastran.op2.tables.oes_stressStrain.oesnlxr.OESNLXR.readTable_OESNLXR_4_Data(), pyNastran.op2.tables.ogf_gridPointForces.ogf.OGF.readTable_OGF_3(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_OMM2(), pyNastran.op2.tables.opg_appliedLoads.opg.OPG.readTable_OPG_3(), pyNastran.op2.tables.oqg_constraintForces.oqg.OQG.readTable_OQG_3(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_PCOMPTS(), and pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_SDF().
def pyNastran.op2.fortranFile.FortranFile.readData | ( | self, | |
n | |||
) |
Definition at line 331 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.printBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.printBlock2().
def pyNastran.op2.fortranFile.FortranFile.getBlockIntEntry | ( | self, | |
data, | |||
n | |||
) |
given a data set, grabs the nth word and casts it as an integer
Definition at line 338 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, pyNastran.op2.fortranFile.FortranFile.printBlock2(), pyNastran.op2.fortranFile.FortranFile.printSection2(), and pyNastran.op2.fortranFile.FortranFile.skip().
Referenced by pyNastran.op2.fortranFile.FortranFile.printBlock2(), and pyNastran.op2.tables.oee_energy.oee.OEE.readTable_OEE_3().
def pyNastran.op2.fortranFile.FortranFile.printSection | ( | self, | |
nBytes | |||
) |
prints data, but doesn't move the cursor
self | the object pointer |
nBytes | the number of bytes to print the data specs on |
msg | ints/floats/strings of the next nBytes (handles poorly sized nBytes; uncrashable :) ) |
Definition at line 352 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getMarker(), pyNastran.op2.fortranFile.FortranFile.getTableCode(), pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, pyNastran.op2.fortranFile.FortranFile.readHeader(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.readHeader(), and pyNastran.op2.fortranFile.FortranFile.scan().
Referenced by pyNastran.op2.op2.OP2.deleteAttributes(), pyNastran.op2.op2.OP2.getBufferWords(), pyNastran.op2.fortranFile.FortranFile.getData(), pyNastran.op2.fortranFile.FortranFile.readMarker(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA(), pyNastran.op2.tables.oes_stressStrain.oes.OES.readTable_OES_4_Data(), and pyNastran.op2.tables.oes_stressStrain.oesnlxr.OESNLXR.readTable_OESNLXR_4_Data().
def pyNastran.op2.fortranFile.FortranFile.printSection2 | ( | self, | |
nBytes, | |||
endian | |||
) |
prints data, but doesn't move the cursor
self | the object pointer |
nBytes | the number of bytes to print the data specs on |
msg | ints/floats/strings of the next nBytes (handles poorly sized nBytes; uncrashable :) ) |
Definition at line 366 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getMarker(), pyNastran.op2.fortranFile.FortranFile.readHeader(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.readHeader(), pyNastran.op2.fortranFile.FortranFile.readMarker(), and pyNastran.op2.fortranFile.FortranFile.readMarkers().
Referenced by pyNastran.op2.fortranFile.FortranFile.getBlockIntEntry().
def pyNastran.op2.fortranFile.FortranFile.skip | ( | self, | |
n | |||
) |
skips nBits
Definition at line 374 of file fortranFile.py.
Referenced by pyNastran.f06.tables.oes.OES.getBarStrain(), pyNastran.op2.fortranFile.FortranFile.getBlockIntEntry(), pyNastran.f06.tables.oug.OUG.getComplexDisplacement(), pyNastran.f06.tables.oug.OUG.getDisplacement(), pyNastran.f06.tables.oqg.OQG.getMpcForces(), pyNastran.f06.tables.oes.OES.getQuadStressBilinear(), pyNastran.f06.tables.oes.OES.getRodHeader(), pyNastran.f06.tables.oqg.OQG.getSpcForces(), pyNastran.f06.tables.oug.OUG.getTemperatureVector(), pyNastran.f06.tables.oes.OES.getTriStrain(), pyNastran.f06.tables.oes.OES.readBarStress(), pyNastran.f06.tables.oes.OES.readSolidStrain(), and pyNastran.op2.fortranFile.FortranFile.setEndian().
def pyNastran.op2.fortranFile.FortranFile.scan | ( | self, | |
n | |||
) |
same as skip, but actually reads the data instead of using seek
Definition at line 380 of file fortranFile.py.
Referenced by pyNastran.op2.fortranFile.FortranFile.printSection().
def pyNastran.op2.fortranFile.FortranFile.getTableCode | ( | self, | |
expected = None , |
|||
debug = True |
|||
) |
Definition at line 384 of file fortranFile.py.
Referenced by pyNastran.op2.fortranFile.FortranFile.printSection().
def pyNastran.op2.fortranFile.FortranFile.getMarker | ( | self, | |
expected = None , |
|||
debug = True |
|||
) |
Definition at line 388 of file fortranFile.py.
Referenced by pyNastran.op2.op2.OP2.deleteAttributes(), pyNastran.op2.fortranFile.FortranFile.printSection(), pyNastran.op2.fortranFile.FortranFile.printSection2(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readGeomSubTable(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readRecordTable(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_CASECC(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA_3(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA_4(), pyNastran.op2.tables.oee_energy.oee.OEE.readTable_OEE_3(), pyNastran.op2.tables.oef_forces.oef.OEF.readTable_OEF_3(), pyNastran.op2.tables.ogf_gridPointForces.ogf.OGF.readTable_OGF_3(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_OMM2(), pyNastran.op2.tables.opg_appliedLoads.opg.OPG.readTable_OPG_3(), pyNastran.op2.tables.oqg_constraintForces.oqg.OQG.readTable_OQG_3(), pyNastran.op2.tables.oug.oug.OUG.readTable_OUG_3(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_PCOMPTS(), pyNastran.op2.tables.r1tab.R1TAB.readTable_R1TAB(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_SDF(), and pyNastran.op2.fortranFile.FortranFile.skipNextTable().
def pyNastran.op2.fortranFile.FortranFile.readMarker | ( | self, | |
expected = None |
|||
) |
Definition at line 392 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.printSection(), pyNastran.op2.fortranFile.FortranFile.readHeader(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.readHeader().
Referenced by pyNastran.op2.fortranFile.FortranFile.printSection2().
def pyNastran.op2.fortranFile.FortranFile.readMarkers | ( | self, | |
markers, | |||
tableName = None , |
|||
debug = False , |
|||
printErrorOnFailure = True |
|||
) |
Reads a set of predefined markers e.g.
[-3,1,0] and makes sure it is correct.
A marker (e.g. a -3) is a series of 3 integers [4,-3,4]. Typically 3 markers are put together (e.g. [-3,1,0]) such that the integers are [4,-3,4, 4,1,4, 4,0,4] to mark important parts of the table.
Markers will "increment" during table reading, such that the first marker is [-1,1,0], then [-2,1,0], etc. Tables will end (or really the next table starts) when a [-1,1,0] or a [0,1,0] marker is found.
# Verify the following statement... Occassionally, buffer markers will be embedded inside the marker [-3,1,0], (e.g. [4,2^16,4] <- the default BUFFSIZE), which make reading the marker more difficult.
Definition at line 413 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getNMarkers(), pyNastran.op2.fortranFile.FortranFile.goto(), pyNastran.op2.fortranFile.FortranFile.isTableDone(), pyNastran.op2.op2.OP2.makeOp2Debug, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.makeOp2Debug, pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, pyNastran.op2.fortranFile.FortranFile.readHeader(), pyNastran.converters.cart3d.cart3d_reader.Cart3DAsciiReader.readHeader(), and pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.readHeader().
Referenced by pyNastran.op2.tables.geom.geometryTables.GeometryTables.checkForNextSubTable(), pyNastran.op2.fortranFile.FortranFile.printSection2(), pyNastran.op2.fortranFile.FortranFile.readFloatBlock(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readGeomSubTable(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readRecordTable(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_CASECC(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_OMM2(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_PCOMPTS(), pyNastran.op2.tables.r1tab.R1TAB.readTable_R1TAB(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_SDF(), pyNastran.op2.fortranFile.FortranFile.readTableName(), and pyNastran.op2.op2.OP2.readTapeCode().
def pyNastran.op2.fortranFile.FortranFile.getNMarkers | ( | self, | |
nMarkers, | |||
rewind = False |
|||
) |
gets the next N markers, verifies they're correct
Definition at line 446 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.readBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.readMarkers().
def pyNastran.op2.fortranFile.FortranFile.isTableDone | ( | self, | |
expectedMarkers | |||
) |
Definition at line 458 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.goto(), pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.readFullBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.readMarkers().
def pyNastran.op2.fortranFile.FortranFile.goto | ( | self, | |
n | |||
) |
jumps to position n in the file
self | the object pointer |
n | the position to goto |
Definition at line 477 of file fortranFile.py.
Referenced by pyNastran.op2.fortranFile.FortranFile.isTableDone(), pyNastran.op2.fortranFile.FortranFile.readBlock(), pyNastran.op2.fortranFile.FortranFile.readFullBlock(), pyNastran.op2.fortranFile.FortranFile.readMarkers(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_OMM2(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_PCOMPTS(), and pyNastran.op2.tables.r1tab.R1TAB.readTable_R1TAB().
def pyNastran.op2.fortranFile.FortranFile.readBlock | ( | self | ) |
reads a fortran formatted data block nWords data1 data2 data3 nWords
Definition at line 488 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.goto(), pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.readFullIntBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.getNMarkers(), pyNastran.op2.fortranFile.FortranFile.readFullIntBlock(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readGeomSubTable(), pyNastran.op2.fortranFile.FortranFile.readStringBlock(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA(), and pyNastran.op2.tables.r1tab.R1TAB.readTable_R1TAB().
reads a fortran formatted data block nWords data1 data2 data3 nWords includes nWords in the output
Definition at line 508 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.goto(), pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, and pyNastran.op2.fortranFile.FortranFile.readStringBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.isTableDone().
reads a fortran formatted block assumes that the data is made up of integers only
reads a fortran formatted data block nWords data1 data2 data3 nWords includes nWords in the output
Definition at line 523 of file fortranFile.py.
References pyNastran.op2.op2.OP2.makeOp2Debug, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.makeOp2Debug, pyNastran.op2.fortranFile.FortranFile.readBlock(), pyNastran.op2.fortranFile.FortranFile.readFloatBlock(), and pyNastran.op2.fortranFile.FortranFile.readIntBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.readBlock(), and pyNastran.op2.fortranFile.FortranFile.readHeader().
def pyNastran.op2.fortranFile.FortranFile.readStringBlock | ( | self, | |
debug = True |
|||
) |
reads a fortran formatted block assumes that the data is made up of characters only
Definition at line 552 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.readBlock(), and pyNastran.op2.fortranFile.FortranFile.readDoubleBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.readFloatBlock(), pyNastran.op2.fortranFile.FortranFile.readFullBlock(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readRecordTable(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_PCOMPTS(), pyNastran.op2.tables.r1tab.R1TAB.readTable_R1TAB(), and pyNastran.op2.op2.OP2.readTapeCode().
reads a fortran formatted block assumes that the data is made up of integers only
Definition at line 570 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, pyNastran.op2.fortranFile.FortranFile.readTableName(), and pyNastran.op2.fortranFile.FortranFile.rewind().
Referenced by pyNastran.op2.fortranFile.FortranFile.readFullIntBlock(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readRecordTable(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_OMM2(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_PCOMPTS(), pyNastran.op2.tables.r1tab.R1TAB.readTable_R1TAB(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_SDF(), and pyNastran.op2.op2.OP2.readTapeCode().
reads a fortran formatted block assumes that the data is made up of floats only
Definition at line 583 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, pyNastran.op2.fortranFile.FortranFile.readMarkers(), and pyNastran.op2.fortranFile.FortranFile.readStringBlock().
Referenced by pyNastran.op2.fortranFile.FortranFile.readFullIntBlock().
reads a fortran formatted block assumes that the data is made up of doubles only
Definition at line 596 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.n, and pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n.
Referenced by pyNastran.op2.fortranFile.FortranFile.readStringBlock().
def pyNastran.op2.fortranFile.FortranFile.rewind | ( | self, | |
n | |||
) |
rewinds the file nBytes
Definition at line 610 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.skipNextTable().
Referenced by pyNastran.op2.fortranFile.FortranFile.readIntBlock().
def pyNastran.op2.fortranFile.FortranFile.readTableName | ( | self, | |
rewind = True , |
|||
debug = True , |
|||
stopOnFailure = True |
|||
) |
peeks into a table to check it's name
Definition at line 618 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.n, pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n, pyNastran.op2.fortranFile.FortranFile.readMarkers(), pyNastran.op2.fortranFile.FortranFile.readTableName(), and pyNastran.op2.op2.OP2.tableInit().
Referenced by pyNastran.op2.tables.geom.geometryTables.GeometryTables.checkForNextTable(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readGeomSubTable(), pyNastran.op2.fortranFile.FortranFile.readIntBlock(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readRecordTable(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_CASECC(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA.readTable_LAMA(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_OMM2(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_PCOMPTS(), pyNastran.op2.tables.r1tab.R1TAB.readTable_R1TAB(), pyNastran.op2.tables.geom.geometryTables.GeometryTables.readTable_SDF(), and pyNastran.op2.fortranFile.FortranFile.readTableName().
def pyNastran.op2.fortranFile.FortranFile.skipNextTable | ( | self, | |
bufferSize = 10000 |
|||
) |
skips a table
Definition at line 655 of file fortranFile.py.
References pyNastran.op2.fortranFile.FortranFile.getMarker(), pyNastran.op2.fortranFile.FortranFile.hasMoreTables(), pyNastran.op2.fortranFile.FortranFile.n, and pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader.n.
Referenced by pyNastran.op2.op2.OP2.readTable(), and pyNastran.op2.fortranFile.FortranFile.rewind().
Definition at line 709 of file fortranFile.py.
Referenced by pyNastran.op2.op2.OP2.readTable(), and pyNastran.op2.fortranFile.FortranFile.skipNextTable().
the endian of the processor (typically '<' for Windows/Linux/Mac, '>' for old HPCs) currently does nothing
Definition at line 37 of file fortranFile.py.
Referenced by pyNastran.op2.fortranFile.FortranFile::setEndian().
currently does nothing
Definition at line 38 of file fortranFile.py.
flag to help know if a buffer was found
Definition at line 64 of file fortranFile.py.
Reimplemented in pyNastran.converters.cart3d.cart3d_reader.Cart3DBinaryReader, and pyNastran.op2.op2.OP2.
Definition at line 477 of file fortranFile.py.
Referenced by pyNastran.op2.tables.geom.geometryTables.GeometryTables::checkForNextSubTable(), pyNastran.op2.fortranFile.FortranFile::getBlockIntEntry(), pyNastran.op2.fortranFile.FortranFile::getDoubles(), pyNastran.op2.fortranFile.FortranFile::getNMarkers(), pyNastran.op2.fortranFile.FortranFile::isTableDone(), pyNastran.op2.fortranFile.FortranFile::printBlock2(), pyNastran.op2.fortranFile.FortranFile::printSection(), pyNastran.op2.op2Codes.Op2Codes::printTableCode(), pyNastran.op2.fortranFile.FortranFile::readBlock(), pyNastran.op2.fortranFile.FortranFile::readData(), pyNastran.op2.fortranFile.FortranFile::readDoubleBlock(), pyNastran.op2.fortranFile.FortranFile::readDoubles(), pyNastran.op2.fortranFile.FortranFile::readFloatBlock(), pyNastran.op2.fortranFile.FortranFile::readFullBlock(), pyNastran.op2.fortranFile.FortranFile::readIntBlock(), pyNastran.op2.fortranFile.FortranFile::readInts(), pyNastran.op2.fortranFile.FortranFile::readMarkers(), pyNastran.op2.fortranFile.FortranFile::readString(), pyNastran.op2.tables.lama_eigenvalues.lama.LAMA::readTable_LAMA(), pyNastran.op2.tables.r1tab.R1TAB::readTable_R1TAB(), pyNastran.op2.fortranFile.FortranFile::readTableName(), and pyNastran.op2.fortranFile.FortranFile::skipNextTable().