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!

export the deform shape (surface or solid)?

Status
Not open for further replies.

gmtl

Mechanical
Jan 24, 2007
4
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
 
Replies continue below

Recommended for you

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)
 
...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
 
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
 
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
 
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.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor