脚本/probe value和.INP文件中节点坐标的不同值

2024-09-29 02:19:25 发布

您现在位置:Python中文网/ 问答频道 /正文

我从代码和其他方式接收不同的x、y、z值作为节点的坐标(尽管数字非常接近)

这是我的剧本:

from abaqus import * from abaqusConstants import * from caeModules import * from driverUtils import executeOnCaeStartup import odbAccess odb = session.odbs['C:/Users/AP31140/Documents/Work Directory/Implicit/Job-newnew1.odb'] node_coordinates = odb.rootAssembly.instances['PART-1-1'].nodes[116550].coordinates

我的脚本的结果如下所示:Coords from scripting

不过,我也用另外两种方法检查了这些值,但它们与我的代码的结果不符(尽管其他两种方法相互匹配)

探测值中的一个:Probe values

另一个来自abaqus.INP文件:.INP file

我真的需要在我的脚本中包含这些值,因为对于我的下一种方法来说,它更容易处理


Tags: 方法代码fromimport脚本节点方式数字