June 28, 2022 at 3:39 pm
Ansys Employee
ASUM returns the inertial properties of an area (a "surface body" created with MAPDL). There are no MAPDL "solid model" entities in models created by Mechanical, so if your model was created in Mechanical I would not expect ASUM to work.
This is old code but I think it might still work.
finish
save
/file,scrap
/solu
cmsel,s,named_selection
esln,s,1
irlf,-1
psolve,elform
psolve,elprep
irlist
*get,mtot,elem,,mtot,x
*get,mcx,elem,,mc,x
*get,mcy,elem,,mc,y
*get,mcz,elem,,mc,z
*get,imcx,elem,,imc,x
*get,imcy,elem,,imc,y
*get,imcz,elem,,imc,z
*get,ipx,elem,,iprin,x
*get,ipy,elem,,iprin,y
*get,ipz,elem,,iprin,z
*get,ang_xy,elem,,iang,xy
*get,ang_yz,elem,,iang,yz
*get,ang_zx,elem,,iang,zx
finish
/file,file
resume
/solu
The parameters returned by the *GET command in the code above are described in the MAPDL Help:
I hope this helps!
Bill