當前位置: 首頁>>代碼示例>>Python>>正文


Python BDFCard.raw_fields方法代碼示例

本文整理匯總了Python中pyNastran.bdf.bdf.BDFCard.raw_fields方法的典型用法代碼示例。如果您正苦於以下問題:Python BDFCard.raw_fields方法的具體用法?Python BDFCard.raw_fields怎麽用?Python BDFCard.raw_fields使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在pyNastran.bdf.bdf.BDFCard的用法示例。


在下文中一共展示了BDFCard.raw_fields方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: test_set1_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:ClaesFredo,項目名稱:pyNastran,代碼行數:11,代碼來源:test_loads.py

示例2: test_aestat_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:EmanueleCannizzaro,項目名稱:pyNastran,代碼行數:11,代碼來源:test_loads.py

示例3: test_pload4_02

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:ClaesFredo,項目名稱:pyNastran,代碼行數:11,代碼來源:test_loads.py

示例4: test_support_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    def test_support_01(self):
        lines = ['SUPORT, 1,      126']
        card = bdf.process_card(lines)
        card = BDFCard(card)

        size = 8
        card = SUPORT(card)
        card.write_card(size, 'dummy')
        card.raw_fields()
開發者ID:ClaesFredo,項目名稱:pyNastran,代碼行數:11,代碼來源:test_constraints.py

示例5: test_cpenta_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:umvarma,項目名稱:pynastran,代碼行數:12,代碼來源:test_solids.py

示例6: test_pgap_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:HibernantBear,項目名稱:pyNastran,代碼行數:12,代碼來源:test_elements.py

示例7: test_pelas_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    def test_pelas_01(self):
        lines = ['pelas, 201, 1.e+5']
        card = bdf.process_card(lines)
        card = BDFCard(card)

        size = 8
        card = PELAS(card)
        card.write_card(size, 'dummy')
        card.raw_fields()
        self.assertEqual(card.Pid(), 201)
        self.assertEqual(card.K(), 1e5)
開發者ID:ClaesFredo,項目名稱:pyNastran,代碼行數:13,代碼來源:test_springs.py

示例8: test_crod_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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.raw_fields()
        self.assertEquals(card.Eid(), 10)
        self.assertEquals(card.Pid(), 100)
開發者ID:umvarma,項目名稱:pynastran,代碼行數:13,代碼來源:test_rods.py

示例9: test_cgap_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:umvarma,項目名稱:pynastran,代碼行數:13,代碼來源:test_elements.py

示例10: test_cdamp1_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:umvarma,項目名稱:pynastran,代碼行數:13,代碼來源:test_elements.py

示例11: test_cord1c_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:HibernantBear,項目名稱:pyNastran,代碼行數:13,代碼來源:test_coords.py

示例12: test_cpenta_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:hurlei,項目名稱:pyNastran,代碼行數:13,代碼來源:test_solids.py

示例13: test_cord1s_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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()
開發者ID:ClaesFredo,項目名稱:pyNastran,代碼行數:13,代碼來源:test_coords.py

示例14: test_cbush_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    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.assertEqual(card.Eid(), 101)
        self.assertEqual(card.Pid(), 102)
        card.write_card(size, 'dummy')
        card.raw_fields()
開發者ID:HibernantBear,項目名稱:pyNastran,代碼行數:13,代碼來源:test_elements.py

示例15: test_darea_01

# 需要導入模塊: from pyNastran.bdf.bdf import BDFCard [as 別名]
# 或者: from pyNastran.bdf.bdf.BDFCard import raw_fields [as 別名]
    def test_darea_01(self):
        #
        #DAREA SID P1 C1 A1  P2 C2 A2
        #DAREA 3   6   2 8.2 15 1  10.1
        lines = ['DAREA,3,6,2,8.2,15,1,10.1']
        card = bdf.process_card(lines)
        card = BDFCard(card)

        size = 8
        card = DAREA(card)
        card.write_card(size, 'dummy')
        card.raw_fields()
開發者ID:ClaesFredo,項目名稱:pyNastran,代碼行數:14,代碼來源:test_loads.py


注:本文中的pyNastran.bdf.bdf.BDFCard.raw_fields方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。