Abaqus 脚本测量/计算表面积 [英] Abaqus script measure/calculate surface area
问题描述
有没有办法用 abaqus
测量/计算生成模型的表面积?
Is there a way to measure/calculate the surface area of a generated model with abaqus
?
我熟悉abaqus CAE
或脚本版本中的Tools -> Query... -> Mass properties:
I'm familiar with Tools -> Query... -> Mass properties in abaqus CAE
or the scripting version:
from abaqus import *
prop=mdb.models['Model'].rootAssembly.getMassProperties()
但是,我找不到表面积的相同命令.
However, I cannot find an equal command for surface area.
感谢您的帮助!
推荐答案
getArea()
函数返回一组面的表面积.
The function getArea()
returns the surface area of a set of faces.
例如:
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 脚本参考指南
,可在此处找到:
I highly recommend to use the Abaqus Scripting Reference Guide
, which can be found here:
当您分割零件时,此方法也会计算内部面数.在这种情况下,您必须自己选择表面上的面,例如使用 findAt()
函数.
This method counts internal faces aswell when you partition the part. In that case, you would have to pick the faces on the surface yourself for example with the findAt()
function.
这篇关于Abaqus 脚本测量/计算表面积的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!