Beispiel #1
0
 def _read_qbdy1(self, data, n):
     """
     QBDY1(4509,45,239) - the marker for Record 24
     """
     ntotal = 12  # 3*4
     nentries = (len(data) - n) // ntotal
     for i in range(nentries):
         edata = data[n:n + 12]
         out = unpack('ifi', edata)
         if self.is_debug_file:
             self.binary_debug.write('  QBDY1=%s\n' % str(out))
         (sid, q0, eid) = out
         load = QBDY1.add_op2_data(out)
         self._add_thermal_load_object(load)
         n += 12
     self.card_count['QBDY1'] = nentries
     return n
Beispiel #2
0
 def _read_qbdy1(self, data, n):
     """
     QBDY1(4509,45,239) - the marker for Record 24
     """
     ntotal = 12  # 3*4
     nentries = (len(data) - n) // ntotal
     for i in range(nentries):
         edata = data[n:n + 12]
         out = unpack('ifi', edata)
         if self.is_debug_file:
             self.binary_debug.write('  QBDY1=%s\n' % str(out))
         (sid, q0, eid) = out
         load = QBDY1.add_op2_data(out)
         self._add_thermal_load_object(load)
         n += 12
     self.card_count['QBDY1'] = nentries
     return n
Beispiel #3
0
 def _read_qbdy1(self, data: bytes, n: int) -> int:
     """
     QBDY1(4509,45,239) - the marker for Record 24
     """
     ntotal = 12  # 3*4
     nentries = (len(data) - n) // ntotal
     struct_ifi = Struct(self._endian + b'ifi')
     for unused_i in range(nentries):
         edata = data[n:n + 12]
         out = struct_ifi.unpack(edata)
         if self.is_debug_file:
             self.binary_debug.write('  QBDY1=%s\n' % str(out))
         #(sid, q0, eid) = out
         load = QBDY1.add_op2_data(out)
         self._add_thermal_load_object(load)
         n += 12
     self.card_count['QBDY1'] = nentries
     return n