def test_ctetra_02(self): model = BDF(debug=False) lines = ['CTETRA,85,22,201,202,203,205,206,207,+PN2', '+PN2,209,210,217'] card = model.process_card(lines) card = BDFCard(card) size = 8 f = StringIO() hexa = CTETRA10(model) hexa.allocate(1) hexa.add(card) hexa.write_card(f, size) #card.rawFields() print(f.getvalue())
def test_cpenta_02(self): model = BDF(debug=False) lines = ['CPENTA,85,22,201,202,203,205,206,207,+PN2', '+PN2,209,210,217, , , ,213,214,218'] card = model.process_card(lines) card = BDFCard(card) size = 8 f = StringIO() penta = CPENTA15(model) penta.allocate(1) penta.add(card) penta.write_card(f, size) #card.rawFields() print(f.getvalue())