python - Abaqus 脚本测量/计算表面积

标签 python scripting surface abaqus

有没有办法用abaqus测量/计算生成模型的表面积?

我熟悉 abaqus CAE 或脚本版本中的工具 -> 查询... -> 质量属性:

from abaqus import *
prop=mdb.models['Model'].rootAssembly.getMassProperties()

但是,我找不到相同的表面积命令。

感谢您的帮助!

最佳答案

函数getArea()返回一组面的表面积。

例如:

a = mdb.models['Model-1'].rootAssembly
a.getArea(a.instances['Part-1-1'].faces)

这也适用于使用命令 getVolume()

的音量
a.getVolume()

它适用于这样的零件:

p = mdb.models['Model-1'].parts['Part-1']
p.getArea(p.faces)
p.getVolume()

我强烈建议使用 Abaqus 脚本引用指南,可以在此处找到:

Abaqus Scripting Reference Guide

编辑:当您划分零件时,此方法也会计算内部面。在这种情况下,您必须自己选择表面上的面,例如使用 findAt() 函数。

关于python - Abaqus 脚本测量/计算表面积,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36423255/

相关文章:

MATLAB pcolor/surf 双线性插值(着色插值)

android - MediaRecorder 和 VideoSource.SURFACE,停止失败 : -1007 (a serious Android bug)

python - R : The h5py Python package is required to save and load models 错误

python - pandas.DataFrame.drop_duplicates(inplace=True) 抛出 'TypeError: unhashable type: ' dict''

c# - 如何在 VS 2015 中启用 C# 脚本?

linux - 搜索文件并将结果作为附件发送

R + plotly : solid of revolution

python toolz - 组合方法(与函数相反)

python - 将线条更改为插入轴

shell - shell脚本中的DEFINE是什么