writer Package

oesWriter Module

Inheritance diagram of pyNastran.op2.writer.oesWriter
class pyNastran.op2.writer.oesWriter.Oes1Writer[source]

Bases: object

writeOES1()[source]

writes isotropic/composite stress/strain

Todo

assumes sCode=0 (stress) or 10 (strain)

op2Writer Module

Inheritance diagram of pyNastran.op2.writer.op2Writer
class pyNastran.op2.writer.op2Writer.Op2Writer[source]

Bases: pyNastran.op2.writer.ougWriter.Ougv1Writer, pyNastran.op2.writer.oesWriter.Oes1Writer

aCode_tCode(approachCode, tableCode, sortCode)[source]
combineApproachDeviceCodes(approachCode)[source]
combineTableSortCodes(tableCode, sortCode)[source]
hollerith = 'H\x02\x00\x00'
pack(format, *vals)[source]
packTitle(iSubcase)[source]
printHeader(word, nChars)[source]
writeMarkers(markers)[source]

takes -5,1,0 -> [4,5,4, 4,1,4, 4,0,4] and puts it into binary

writeOp2(op2Name)[source]
writeStart()[source]
writeStringBlock(word, nChars)[source]

‘OUG’ - 1 word = 4 characters ‘OUGV’ - 1 word = 4 characters ‘OUGV1’ - 2 words = 8 characters ‘12345678’ - 2 words = 8 characters nWords = round(ceil(len(word)/4.)) nChars = nWords*4 != len(word) just set nChars and dont overthink it too much

ougWriter Module

Inheritance diagram of pyNastran.op2.writer.ougWriter
class pyNastran.op2.writer.ougWriter.Ougv1Writer[source]

Bases: object

writeOUGV1()[source]
writeOUG_displacements(iSubcase, data, thermal=0)[source]

this function writes table 3 for the OUGV1 Table

Todo

add the buffer and block caps