def _read_qbdy2(self, data, n): """ QBDY2(4909,49,240) - the marker for Record 25 """ ntotal = 40 # 10*4 nentries = (len(data) - n) // ntotal for i in range(nentries): edata = data[n:n + 40] out = unpack('ii8f', edata) if self.is_debug_file: self.binary_debug.write(' QBDY2=%s\n' % str(out)) (sid, eid, q1, q2, q3, q4, q5, q6, q7, q8) = out load = QBDY2.add_op2_data(out) self._add_thermal_load_object(load) n += 40 self.card_count['QBDY2'] = nentries return n
def _read_qbdy2(self, data, n): """ QBDY2(4909,49,240) - the marker for Record 25 """ ntotal = 40 # 10*4 nentries = (len(data) - n) // ntotal for i in range(nentries): edata = data[n:n + 40] out = unpack('ii8f', edata) if self.is_debug_file: self.binary_debug.write(' QBDY2=%s\n' % str(out)) (sid, eid, q1, q2, q3, q4, q5, q6, q7, q8) = out load = QBDY2.add_op2_data(out) self.add_thermal_load(load) n += 40 self.card_count['QBDY2'] = nentries return n
def _read_qbdy2(self, data: bytes, n: int) -> int: """ QBDY2(4909,49,240) - the marker for Record 25 """ ntotal = 40 # 10*4 nentries = (len(data) - n) // ntotal struct_2i8f = Struct(self._endian + b'ii8f') for unused_i in range(nentries): edata = data[n:n + 40] out = struct_2i8f.unpack(edata) if self.is_debug_file: self.binary_debug.write(' QBDY2=%s\n' % str(out)) #(sid, eid, q1, q2, q3, q4, q5, q6, q7, q8) = out load = QBDY2.add_op2_data(out) self._add_thermal_load_object(load) n += 40 self.card_count['QBDY2'] = nentries return n