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


Python BDF.card_stats方法代码示例

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


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

示例1: BDF

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import card_stats [as 别名]
# <codecell>

#bdf_filename = r'D:\work\pynastran_0.7.0_py27\models\iSat\ISat_Launch_Sm_Rgd.dat'
bdf_filename = r'C:\Users\Steve\Dropbox\pyNastran_examples\iSat\ISat_Launch_Sm_Rgd.dat'

# read the file as a path
bdf2 = BDF()
bdf2.read_bdf(bdf_filename, xref=True)

# <codecell>

print "attributes =", object_attributes(bdf)
print ""
print "methods =",object_methods(bdf)
print bdf.card_stats()
print bdf.card_count

# <codecell>

# explanation of cross-referencing

# no cross referencing (xref=False)
cquad = bdf.elements[1]
nid1 = cquad.nodes[0]
n1 = bdf.nodes[nid1]
cd4 = n1.cd
c4 = bdf.coords[cd4]
print "i xref=False", c4.i
#print object_attributes(c4)
开发者ID:sukhbinder,项目名称:cyNastran,代码行数:31,代码来源:bdf_demo.py

示例2: BDF

# 需要导入模块: from pyNastran.bdf.bdf import BDF [as 别名]
# 或者: from pyNastran.bdf.bdf.BDF import card_stats [as 别名]
# <codecell>

#bdf_filename = r'D:\work\pynastran_0.7.0_py27\models\iSat\ISat_Launch_Sm_Rgd.dat'
bdf_filename = r'C:\Users\Steve\Dropbox\pyNastran_examples\iSat\ISat_Launch_Sm_Rgd.dat'

# read the file as a path
bdf2 = BDF()
bdf2.read_bdf(bdf_filename, xref=True)

# <codecell>

print("attributes =", object_attributes(bdf))
print("")
print("methods =", object_methods(bdf)
print(bdf.card_stats())
print(bdf.card_count)

# <codecell>

# explanation of cross-referencing

# no cross referencing (xref=False)
cquad = bdf.elements[1]
nid1 = cquad.nodes[0]
n1 = bdf.nodes[nid1]
cd4 = n1.cd
c4 = bdf.coords[cd4]
print("i xref=False", c4.i)
#print(object_attributes(c4))
开发者ID:ClaesFredo,项目名称:pyNastran,代码行数:31,代码来源:bdf_demo.py


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