def readDArea(self, data): """DAREA(27,17,182) - the marker for Record 2""" #print "reading DAREA" while len(data) >= 16: # 4*4 eData = data[:16] data = data[16:] out = unpack('iiff', eData) #(sid,p,c,a) = out darea = DAREA(data=out) self.add_DAREA(darea)
def _read_area(self, data, n): """DAREA(27,17,182) - the marker for Record 2""" #print("reading DAREA") ntotal = 16 nentries = (len(data) - n) // ntotal self._increase_card_count('DAREA', nentries) for i in range(nentries): edata = data[n:n+ntotal] out = unpack('iiff', edata) #(sid,p,c,a) = out darea = DAREA.add_op2_data(data=out) self.add_DAREA(darea) n += ntotal return n
def readDArea(self, data, n): """DAREA(27,17,182) - the marker for Record 2""" #print("reading DAREA") ntotal = 16 nentries = (len(data) - n) // ntotal self._increase_card_count('DAREA', nentries) for i in range(nentries): eData = data[n:n + ntotal] out = unpack('iiff', eData) #(sid,p,c,a) = out darea = DAREA(data=out) self.add_DAREA(darea) n += ntotal return n
def _read_darea(self, data, n): """ DAREA(27,17,182) - the marker for Record 2 1 SID I Load set identification number 2 P I Grid, scalar, or extra point identification number 3 C I Component number 4 A RS Scale factor """ ntotal = 16 nentries = (len(data) - n) // ntotal self._increase_card_count('DAREA', nentries) for i in range(nentries): edata = data[n:n + ntotal] out = unpack('iiif', edata) #(sid,p,c,a) = out darea = DAREA.add_op2_data(data=out) self._add_darea_object(darea) n += ntotal return n