def test_chexa_01(self): model = BDF(debug=False) lines = ['CHEXA,85,22,201,202,203,205,206,207,+PN2', '+PN2,209,210'] card = model._process_card(lines) card = BDFCard(card) size = 8 f = StringIO() hexa = CHEXA8(model) hexa.allocate(1) hexa.add(card) hexa.write_card(f, size) #card.raw_fields() print(f.getvalue())
def test_ctetra_01(self): model = BDF(debug=False) lines = ['CTETRA,85,22,201,202,203,205'] card = model._process_card(lines) card = BDFCard(card) size = 8 f = StringIO() hexa = CTETRA4(model) hexa.allocate(1) hexa.add(card) hexa.write_card(f, size) #card.raw_fields() print(f.getvalue())
def test_cpenta_01(self): model = BDF(debug=False) lines = ['CPENTA,85,22,201,202,203,205,206,207'] card = model._process_card(lines) card = BDFCard(card) size = 8 f = StringIO() penta = CPENTA6(model) penta.allocate(1) penta.add(card) penta.write_card(f, size) #card.raw_fields() print(f.getvalue())