Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Script ADPL for stress of elements of a selected body

Status
Not open for further replies.

beginner1976

Mechanical
May 15, 2016
1
Hello,
i'm new to forum. I kindly ask you a suggestion for an ADPL script (i'm using ANSYS workbench).
This semplified script works for all elements of a simulation

allsel,all
set,1
!
AVPRIN,0, ,
ETABLE,volume,VOLU,
!
AVPRIN,0, ,
ETABLE,streqv,S,EQV
!
*VGET,volume,ELEM,1,ETAB,VOLUME, , ,2
*VGET,stress,ELEM,1,ETAB,STREQV, , ,2
!
*CFOPEN,'SCH-3906-RR','txt',' '
*VWRITE
(' Elemento , Volume2 , Stress ')
*VWRITE,SEQU,volume(1,1),stress(1,1)
(F10.0,';',F30.18,';',F30.18,';')

I need that script can be adapted to write only stress values for a selected body, not for all 3 bodies of simulation.
Can you help me please?
 
Replies continue below

Recommended for you

I have the same doubt, how to make a macro work with the desired volumes only
 
Combine the volumes in a named selection. A named selection in MAPDL is a component. So in you script, you add CMSEL,S,named selection. Also, you can get an element volume directly with a *vget,volume(1,1),elem,1,geom.

Rick Fischer
Principal Engineer
Argonne National Laboratory
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor