Beispiel #1
0
    def test_crod_01(self):
        lines = ['CROD          10     100      10       2']
        card = bdf.process_card(lines)
        card = BDFCard(card)

        size = 8
        card = CROD(card)
        card.write_bdf(size, 'dummy')
        card.rawFields()
        self.assertEquals(card.Eid(), 10)
        self.assertEquals(card.Pid(), 100)
Beispiel #2
0
    def test_cbush_01(self):
        lines = ['cbush,101,102,1,,,,,0']
        card = bdf.process_card(lines)
        card = BDFCard(card)

        size = 8
        card = CBUSH(card)
        self.assertEquals(card.Eid(), 101)
        self.assertEquals(card.Pid(), 102)
        card.write_bdf(size, 'dummy')
        card.raw_fields()
Beispiel #3
0
    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.raw_fields()
Beispiel #4
0
    def test_cgap_01(self):
        lines = [
            'CGAP    899     90      21      99      0.      1.      0.      0'
        ]
        card = bdf.process_card(lines)
        card = BDFCard(card)

        size = 8
        card = CGAP(card)
        self.assertEquals(card.Eid(), 899)
        self.assertEquals(card.Pid(), 90)
        card.write_bdf(size, 'dummy')
        card.raw_fields()
Beispiel #5
0
    def test_conrod_01(self):
        eid = 10
        nid1 = 2
        nid2 = 3
        mid = 5
        A = 27.0
        lines = ['conrod,%i, %i, %i, %i, %f' % (eid, nid1, nid2, mid, A)]
        card = bdf.process_card(lines)
        card = BDFCard(card)

        size = 8
        card = CONROD(card)
        card.write_bdf(size, 'dummy')
        card.rawFields()
        self.assertEquals(card.Eid(), eid)
        self.assertEquals(card.Mid(), mid)