本文整理汇总了Python中pyNastran.bdf.bdf.BDFCard类的典型用法代码示例。如果您正苦于以下问题:Python BDFCard类的具体用法?Python BDFCard怎么用?Python BDFCard使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了BDFCard类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_dmi_01
def test_dmi_01(self):
lines = ['DMI,Q,0,6,1,0,,4,4']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = DMI(card)
card.write_card(size, 'dummy')
示例2: test_aestat_01
def test_aestat_01(self):
lines = ['AESTAT 502 PITCH']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = AESTAT.add_card(card)
card.write_card(size, 'dummy')
card.raw_fields()
示例3: test_dmig_06
def test_dmig_06(self):
lines = ['DMIG ENFORCE 0 1 1 0']
model = BDF(debug=False)
card = model.process_card(lines)
card = BDFCard(card)
size = 8
card = DMIG(card)
card.write_card(size, 'dummy')
示例4: test_pload4_02
def test_pload4_02(self):
lines = ['PLOAD4 1 101 1. 10000 10011']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = PLOAD4(card)
card.write_card(size, 'dummy')
card.raw_fields()
示例5: test_set1_01
def test_set1_01(self):
lines = ['SET1, 1100, 100, 101']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = SET1(card)
card.write_card(size, 'dummy')
card.raw_fields()
示例6: test_support1_01
def test_support1_01(self):
lines = ['SUPORT1, 1, 126']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = SUPORT1(card)
card.write_bdf(size, 'dummy')
card.rawFields()
示例7: test_cpenta_01
def test_cpenta_01(self):
lines = ['CPENTA,85,22,201,202,203,205,206,207,+PN2',
'+PN2,209,210,217, , , ,213,214,218']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = CPENTA15(card)
card.write_bdf(size, 'dummy')
card.raw_fields()
示例8: test_cdamp1_01
def test_cdamp1_01(self):
lines = ['CDAMP1, 2001, 20, 1001, 1']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = CDAMP1(card)
self.assertEquals(card.Eid(), 2001)
self.assertEquals(card.Pid(), 20)
card.write_bdf(size, 'dummy')
card.rawFields()
示例9: test_cord1c_01
def test_cord1c_01(self):
lines = ["cord1c,2,1,4,3"]
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = CORD1C(card)
self.assertEqual(card.Cid(), 2)
self.assertEqual(card.Rid(), 0)
card.write_card(size, "dummy")
card.raw_fields()
示例10: test_cpenta_01
def test_cpenta_01(self):
lines = ["CPENTA,85,22,201,202,203,205,206,207,+PN2", "+PN2,209,210,217, , , ,213,214,", ",218"]
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = CPENTA15.add_card(card)
card.write_card(size, "dummy")
node_ids = card.node_ids
assert node_ids == [201, 202, 203, 205, 206, 207, 209, 210, 217, None, None, None, 213, 214, 218], node_ids
card.raw_fields()
示例11: test_cord1s_01
def test_cord1s_01(self):
lines = ['cord1s,2,1,4,3']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = CORD1S(card)
self.assertEqual(card.Cid(), 2)
self.assertEqual(card.Rid(), 0)
card.write_card(size, 'dummy')
card.raw_fields()
示例12: test_set1_01
def test_set1_01(self):
lines = ['SET1, 1100, 100, 101']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = SET1.add_card(card)
card.write_card(size, 'dummy')
card.raw_fields()
card2 = SET1(1100, [100, 101], is_skin=False, comment='')
card2.write_card(size, 'dummy')
示例13: test_cdamp1_01
def test_cdamp1_01(self):
lines = ['CDAMP1, 2001, 20, 1001, 1']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = CDAMP1(card)
self.assertEqual(card.Eid(), 2001)
self.assertEqual(card.Pid(), 20)
node_ids = card.node_ids
assert node_ids == [1001, None], node_ids
card.write_card(size, 'dummy')
card.raw_fields()
示例14: test_cpenta_01
def test_cpenta_01(self):
lines = [
'CPENTA,85,22,201,202,203,205,206,207,+PN2',
'+PN2,209,210,217, , , ,213,214,',
',218'
]
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = CPENTA15(card)
card.write_card(size, 'dummy')
node_ids = card.node_ids
assert node_ids == [201, 202, 203, 205, 206, 207,
209, 210, 217, None, None, None, 213, 214, 218], node_ids
card.raw_fields()
示例15: test_pgap_01
def test_pgap_01(self):
lines = ['PGAP 90 1.E+5']
card = bdf.process_card(lines)
card = BDFCard(card)
size = 8
card = PGAP(card)
card.write_card(size, 'dummy')
self.assertEqual(card.Pid(), 90)
card.raw_fields()