コード例 #1
0
ファイル: geom3.py プロジェクト: proteus2/pyNastran
 def _read_qbdy3(self, data, n):
     """
     QBDY3(2109,21,414) - the marker for Record 26
     """
     ntotal = 16  # 4*4
     nentries = (len(data) - n) // ntotal
     for i in range(nentries):
         edata = data[n:n + 16]
         out = unpack('ifii', edata)
         (sid, q0, cntrlnd, eid) = out
         load = QBDY3.add_op2_data(out)
         self._add_thermal_load_object(load)
         n += 16
     self.card_count['QBDY3'] = nentries
     return n
コード例 #2
0
ファイル: geom3.py プロジェクト: FrankNaets/pyNastran
 def _read_qbdy3(self, data, n):
     """
     QBDY3(2109,21,414) - the marker for Record 26
     """
     ntotal = 16  # 4*4
     nentries = (len(data) - n) // ntotal
     for i in range(nentries):
         edata = data[n:n + 16]
         out = unpack('ifii', edata)
         (sid, q0, cntrlnd, eid) = out
         load = QBDY3.add_op2_data(out)
         self.add_thermal_load(load)
         n += 16
     self.card_count['QBDY3'] = nentries
     return n
コード例 #3
0
ファイル: geom3.py プロジェクト: jpdeslich/pyNastran
 def _read_qbdy3(self, data: bytes, n: int) -> int:
     """
     QBDY3(2109,21,414) - the marker for Record 26
     """
     ntotal = 16  # 4*4
     nentries = (len(data) - n) // ntotal
     struct_if2i = Struct(self._endian + b'ifii')
     for unused_i in range(nentries):
         edata = data[n:n + 16]
         out = struct_if2i.unpack(edata)
         #(sid, q0, cntrlnd, eid) = out
         load = QBDY3.add_op2_data(out)
         self._add_thermal_load_object(load)
         n += 16
     self.card_count['QBDY3'] = nentries
     return n