用户登录

你在这里

在Abaqus中合并脚本

我正在写一个脚本来创建我的模型的参数分析。
我的问题是它是由许多不同的单元格组成的,所以我需要通过脚本以自动的方式合并所有的单元格。

我使用这个脚本:

[code Python]a = mdb.models.rootAssembly
SingleInstances_List = mdb.models.rootAssembly.instances.keys()
SingleInstances_Tuple =元组(SingleInstances_List)
a.InstanceFromBooleanMerge(name='Single_Unit', instances=SingleInstances_Tuple, mergendes =ALL,
nodeMergingTolerance=0.1, domain=MESH, originalInstances=SUPPRESS)[/code]

我也尝试了以下脚本:

(Python代码)。InstanceFromBooleanMerge (name = ' SingleUnit实例= ((a.instances [SingleInstances_List[我]]
for i in range(len(SingleInstances_List))],), mergendes =ALL,
nodeMergingTolerance=0.1, domain=MESH, originalInstances=SUPPRESS) [/code]

在这两种情况下,我得到这个错误时,合并应该发生和Abaqus崩溃:

[code DOS] LoadLibraryA错误
GUI在等待ipc连接关闭时检测到错误。
LoadLibraryA错误193
Abaqus Error: Abaqus/CAE Kernel exit with an Error .[/code]

如果我不使用tuple,并指定所有的单个实例名称,一切运行正常:

(Python代码)。InstanceFromBooleanMerge (name = ' SingleUnit实例= (
a.instances [' UnitCell_Centre-1 '], a.instances(“Back_Surface-1”),
a.instances [' Front_Surface-1 '], a.instances(“UnitCell_Centre-1-lin-2-1”),
a.instances[' unitcell_center -1-lin-3-1'],), mergendes =ALL,
nodeMergingTolerance=0.1, domain=MESH, originalInstances=SUPPRESS)[/code]

问题是,我希望能够改变单元格的数量来做一些参数分析。

即使我尝试在没有GUI的情况下运行模型,我也会出现类似的错误:

[code DOS] LoadLibraryA错误
Abaqus Error: cae exit with an Error .[/code]

有什么错误需要我改正吗?
是我的电脑有问题吗?

非常感谢!

Gabriele

Ps.我也安装了并行工作室,但如果我启动Abaqus并在没有它的情况下运行脚本,我会得到同样的错误。

我发现了错误。
只是一个逗号…

第二种方法得到的结果与前一种方法相同,只是多了一个逗号和一个方括号。
虽然第二个不重要,但逗号让Abaqus崩溃了……

我希望这个帖子对其他人有用!

因此,将所有部件合并到一个组装中的正确解决方案如下:

[code Python]a = mdb.models.rootAssembly
SingleInstances_List = mdb.models.rootAssembly.instances.keys()
a.InstanceFromBooleanMerge (name = ' SingleUnit实例= ((a.instances [SingleInstances_List[我]]
for i in range(len(SingleInstances_List))], mergendes =ALL,
nodeMergingTolerance=0.1, domain=MESH, originalInstances=SUPPRESS)[/code]

订阅评论“在Abaqus中合并脚本”

更多的评论

辛迪加

认购辛迪加