Deformed Shape Model export.
Deformed Shape Model export.
(OP)
I wonder if it is possible to export the meshed deformed shape resulted from a static analysis (i.e. a displacement analysis) so it can be used as a model for a new static analysis. Note that this is different from a transient analysis.
Thanks
Thanks





RE: Deformed Shape Model export.
-Store undisplaced node numbers and coordinates
-Store element number and connectivity information
-Retrieve nodal displacements from analysis
-Form a new database
-Create nodes with corresponding node numbers to the old in their new (displaced) coordinates
-Create elements using numbering and connectivity information from previous analysis.
This should be relatively easy to code up in APDL.
Good luck,
-Brian
RE: Deformed Shape Model export.
It should be easier to do it by using the command UPGEOM.
Regards,
Alex
RE: Deformed Shape Model export.
!maximum node number
*get,n_max,node,,num,maxd
!temporary array
list_tmp=
*dim,list_tmp,array,n_max,11
!status of selection (masking vector)
*vget,list_tmp(1,1),node,,nsel
!filling array with node numbers
*vfill,list_tmp(1,2),ramp,1,1
!####################
!# geting locations #
!####################
!node coordinates (X , Y , Z)
!X
*vmask,list_tmp(1,1)
*vget,list_tmp(1,3),node,,loc,x
!Y
*vmask,list_tmp(1,1)
*vget,list_tmp(1,4),node,,loc,y
!##################
!# geting results #
!##################
*vmask,list_tmp(1,1)
*vget,list_tmp(1,6),node,,U,x
*vmask,list_tmp(1,1)
*vget,list_tmp(1,7),node,,U,y
!#########################
!# cALc. New Coordinates #
!#########################
!X
*VOPER,list_tmp(1,9),list_tmp(1,3),ADD,list_tmp(1,6), , ,
!Y
*VOPER,list_tmp(1,10),list_tmp(1,4),ADD,list_tmp(1,7), , ,
*CREATE,ansuitmp
*CFOPEN,'juju','txt',' '
*VWRITE,list_tmp(1,2),list_tmp(1,9),list_tmp(1,10),list_tmp(1,11)
(7F10.3,7F10.5)
*CFCLOS
*END
/INPUT,ansuitmp
!*
!Delete all mesh and solid model manually
*do,o_,1,n_max,1
n,list_tmp(o_,1),list_tmp(o_,9),list_tmp(o_,10),
*enddo
The UPGEOM command works very well, but it needs the .rst file. The UPCOORD command instead works the same way using the current ANSYS database.
The problem is Solved!
Thanks Brian and Alex for the replies!