Abaqus FEM软件使用Python创建自己的变量/列表类型,例如:
a = mdb.models['Model-1'].rootAssembly.instances['Instance-1'].faces
print a
type(a)
^{pr2}$['Face object', 'Face object', 'Face object', ...]
type 'FaceArray'
({'featureName': 'Name-1', 'index': 6, 'instanceName': 'Name-1', 'isReferenceRep': False, 'pointOn': ((0.0, 0.733333, -0.133333),)})
type 'Face'
当我现在初始化x=[]
并用x.append(a[2])
添加一个Face object'时,结果是
[mdb.models['Model-1'].rootAssembly.instances['Instance-1'].faces[2]]
而不是
^{4磅}$如何创建与a格式相同的新变量?在
你必须创建面数组而不是简单的数组,然后添加到你的面数组面对象
相关问题 更多 >
编程相关推荐