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
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)?
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)?
DEFORM(_D,1) = _UX*_S
DEFORM(_D,2) = _UY*_S
DEFORM(_D,3) = _UZ*_S
RE: export the deform shape (surface or solid)?
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
*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)?
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)?
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.