×
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

export the deform shape (surface or solid)?

export the deform shape (surface or solid)?

export the deform shape (surface or solid)?

(OP)
Hi,

Is it possible to export the deform shape (surface or solid) of the model resulting from a static analysis?
I know that I can retrieve the coordinates of the displaced nodes.

Thanks

RE: export the deform shape (surface or solid)?

Hi,

You can use the commands listed below. Just save them to txt file and read in ansys. these commands create a txt file named DEFORM.TXT with deformation of all nodes of your model. You can scale up or down this deformation directly by parameter _S (I set default value to 1). I hope it will be usefull...


*GET,_A,NODE,,COUNT
*GET,_B,NODE,,NUM,MAX

*DIM,DEFORM,,_A,3

FINISH
/POST1

_S = 1

_D = 0
*DO,_C,1,_B   
   *IF,NSEL(_C),EQ,1,THEN

      _D = _D+1

      *GET,_UX,NODE,_C,U,X
      *GET,_UY,NODE,_C,U,Y
      *GET,_UZ,NODE,_C,U,Z

      DEFORM(_D,1) = _UX
      DEFORM(_D,2) = _UY
      DEFORM(_D,3) = _UZ

   *ENDIF
*ENDDO

*MWRITE,DEFORM,DEFORM,TXT
(3F25.10)

RE: export the deform shape (surface or solid)?

...I made a little mistake with scaling parameter _S. So if you would like scale your deformation, correct is :

      DEFORM(_D,1) = _UX*_S
      DEFORM(_D,2) = _UY*_S
      DEFORM(_D,3) = _UZ*_S

RE: export the deform shape (surface or solid)?

Hello!

To SKJoe: I apologize, but I saw your code and I found, that the *if sentence is not necessary.
Please don't be mad at me, but I'm such a programming freak and I'm always trying to write the
smallest codes. So I couldn't' resist to optimize your code too...

CODE

*GET,ncount,NODE,,COUNT

*DIM,DEFORM,,ncount,3

/POST1

nd=ndnext(0)
*DO,i,1,ncount   
    DEFORM(i,1)=ux(nd)
    DEFORM(i,2)=uy(nd)
    DEFORM(i,3)=uz(nd)
    nd=ndnext(nd)
*ENDDO

*MWRITE,DEFORM,DEFORM,TXT
(3F25.10)

To Gmtl: You forgot to specify to what to export. What format? Do you know the command UPGEOM?

Regards,
Alex

RE: export the deform shape (surface or solid)?

Hi,

To mihaiupb: ...everything what I know about ansys is from manual of ansys. No special course I have taken. Of course I know "get functions", but this time I simply used my old own log. Your code is "simplicity itself". I like that ! Thanx for recalling me these "get functions".

Regards,
Lubo

RE: export the deform shape (surface or solid)?

(OP)
Hi ,

I wanted to know if it was possible to retrieve the deform shape (surface or solid) in a format like IGS or Step. (I don’t think it’s possible)

Thanks for your tips they’re useful.

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