本文整理汇总了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)
示例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))