本文整理汇总了Python中PerceptMesh.new_mesh_read_only方法的典型用法代码示例。如果您正苦于以下问题:Python PerceptMesh.new_mesh_read_only方法的具体用法?Python PerceptMesh.new_mesh_read_only怎么用?Python PerceptMesh.new_mesh_read_only使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类PerceptMesh
的用法示例。
在下文中一共展示了PerceptMesh.new_mesh_read_only方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_fieldFunction_read_print
# 需要导入模块: import PerceptMesh [as 别名]
# 或者: from PerceptMesh import new_mesh_read_only [as 别名]
def test_fieldFunction_read_print(self):
print_info = 0
x = 3
y = 3
z = 3
config_mesh = str(x) + "x" + str(y) + "x" + str(z) + "|bbox:0,0,0,1,1,1"
eMesh = PerceptMesh()
eMesh.new_mesh_read_only(GMeshSpec(config_mesh))
metaData = eMesh.get_fem_meta_data()
parts = metaData.get_parts()
nparts = len(parts)
if print_info == 1:
print "Number of parts = ", nparts
fields = metaData.get_fields()
nfields = len(fields)
if print_info == 1:
print "Number of fields = ", nfields
for i in range(nfields):
field = fields[i]