×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Script ADPL for stress of elements of a selected body

Script ADPL for stress of elements of a selected body

Script ADPL for stress of elements of a selected body

(OP)
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?

RE: Script ADPL for stress of elements of a selected body

I have the same doubt, how to make a macro work with the desired volumes only

RE: Script ADPL for stress of elements of a selected body

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources