Abaqus script measure/calculate surface area

流过昼夜 提交于 2019-12-24 15:58:00

问题


Is there a way to measure/calculate the surface area of a generated model with abaqus?

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.

Appreciate the help!


回答1:


The function getArea() returns the surface area of a set of faces.

For example:

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

This also works for volume with the command getVolume()

a.getVolume()

and it works for parts as such:

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

I highly recommend to use the Abaqus Scripting Reference Guide, which can be found here:

Abaqus Scripting Reference Guide

Edit: 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.



来源:https://stackoverflow.com/questions/36423255/abaqus-script-measure-calculate-surface-area

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!