Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to export mass of an ANSYS Workbench model to a text file

Status
Not open for further replies.

andradesilva

Materials
Jun 20, 2017
125
Hi all,

I am doing a static simulation on ANSYS Workbench 18.1 as a part of my work as a R&D Engineer.

I am trying to export the total mass of a model to a text file. If it is possible to obtain the mass of each element of the mesh, and export it, it would be better.

I am inserting an APDL code after solution (/POST1) that I am attaching in a text file. It is a partial element solution that allows to obtain the mass of the full model. It worked for me before in ANSYS MECHANICAL APDL, but I don't have so much experience in ANSYS Workbench,


Any help appreciated,

Thanks in advance,
Best regards,
Andrade Silva
 
 https://files.engineering.com/getfile.aspx?folder=c418b7e9-3541-41fc-9c58-c7d308b23de4&file=code_mass.txt
Replies continue below

Recommended for you

andradesilva

Check this thread-thread569-365593

Easiest way to get mass component/body wise is click on geometry ==> click on worksheet

I have slightly modified your code. Check out. Before solving uncheck distributed ansys option in solve process settings. PSOLVE command is not supported by distibuted ansys.

Code:
/POST1
!
fini
/sol
!
/uis,msgpop,3
irlf,-1
psolve,elform
psolve,elprep
irlist
!
fini
!
!
FINISH
!
!
*DIM,valuem,,1,1
*get,mtot,elem,,mtot,y
*VFILL,valuem(1,1),DATA,mtot
*cfopen,mass,txt,C:\Users\Desktop !Insert file path
*VWRITE,valuem(1,1)
(1X,F10.8)
*cfclose
 
Hi,

Thank you for your help. It works,

Best regards,
Andrade Silva
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor