当前位置: 首页>>代码示例>>Python>>正文


Python BDFCard.write_bdf方法代码示例

本文整理汇总了Python中pyNastran.bdf.bdf.BDFCard.write_bdf方法的典型用法代码示例。如果您正苦于以下问题:Python BDFCard.write_bdf方法的具体用法?Python BDFCard.write_bdf怎么用?Python BDFCard.write_bdf使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pyNastran.bdf.bdf.BDFCard的用法示例。


在下文中一共展示了BDFCard.write_bdf方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: test_support1_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [as 别名]
    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()
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:11,代码来源:test_constraints.py

示例2: test_dmig_06

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [as 别名]
    def test_dmig_06(self):
        lines = ['DMIG    ENFORCE 0       1       1       0']
        bdf = BDF(debug=False)
        card = bdf.process_card(lines)
        card = BDFCard(card)

        size = 8
        card = DMIG(card)
        card.write_bdf(size, 'dummy')
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:11,代码来源:test_dmig.py

示例3: test_cpenta_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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

示例4: test_pgap_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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_bdf(size, 'dummy')
        self.assertEquals(card.Pid(), 90)
        card.rawFields()
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:12,代码来源:test_elements.py

示例5: test_cord1s_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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.assertEquals(card.Cid(), 2)
        self.assertEquals(card.Rid(), 0)
        card.write_bdf(size, 'dummy')
        card.raw_fields()
开发者ID:EmanueleCannizzaro,项目名称:pyNastran,代码行数:13,代码来源:test_coords+(2).py

示例6: test_cbush_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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.assertEquals(card.Eid(), 101)
        self.assertEquals(card.Pid(), 102)
        card.write_bdf(size, 'dummy')
        card.rawFields()
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:13,代码来源:test_elements.py

示例7: test_cgap_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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.rawFields()
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:13,代码来源:test_elements.py

示例8: test_cdamp1_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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.rawFields()
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:13,代码来源:test_elements.py

示例9: test_crod_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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

示例10: test_pelas_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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_bdf(size, 'dummy')
        card.raw_fields()
        self.assertEquals(card.Pid(), 201)
        self.assertEquals(card.K(), 1e5)
开发者ID:umvarma,项目名称:pynastran,代码行数:13,代码来源:test_springs.py

示例11: test_cord1c_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [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.assertEquals(card.Cid(), 2)
        self.assertEquals(card.Rid(), 0)
        card.write_bdf(size, "dummy")
        card.raw_fields()
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:13,代码来源:test_coords+(2).py

示例12: test_conrod_01

# 需要导入模块: from pyNastran.bdf.bdf import BDFCard [as 别名]
# 或者: from pyNastran.bdf.bdf.BDFCard import write_bdf [as 别名]
    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.raw_fields()
        self.assertEquals(card.Eid(), eid)
        self.assertEquals(card.Mid(), mid)
开发者ID:umvarma,项目名称:pynastran,代码行数:18,代码来源:test_rods.py


注:本文中的pyNastran.bdf.bdf.BDFCard.write_bdf方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。