output *get
output *get
(OP)
Is it possible to store the results from a *get (*get,xposition,node,i,loc,x) other than use an array? I was thinking of something similar to 'store' which is used to store results using 'nsol'. Does it exist in Ansys?
regards, maxibonne
regards, maxibonne





RE: output *get
XLOC=NX(1234)
The "NX" is known as an "enquiry function" within ANSYS. See the *GET command for more details.
------------
See FAQ569-1083: Asking questions the smart way on Eng-Tips fora for details on how to make best use of Eng-Tips.com
RE: output *get
RE: output *get
! ---------- CODE ----------
nall
*get,n_max,NODE,0,NUM,MAX
*dim,n_storage,array,n_max,1
*vget,n_storage,node,1,loc,x ! GET x-loc of all nodes
*cfopen,nodal_data,csv
*vwrite,n_storage(1)
(1(E15.6))
*cfclos
!---------------------------
Do the same for the Y and Z locations but change the syntax in the *VGET command above. Output will be to a file named "nodal_data.csv".
------------
See FAQ569-1083: Asking questions the smart way on Eng-Tips fora for details on how to make best use of Eng-Tips.com
RE: output *get
*get,nnode,node,0,count
*get,nmin,node,0,num,min
*do,inode,1,nnode,1
*get,xdef,node,nmin,u,x
*get,ydef,node,nmin,u,y
*get,zdef,node,nmin,u,z
*if,inode,eq,1,then
/output,node_def,csv,,append
*msg,,'Node','X Deflection','Y Deflection','Z Deflection',
%C, %C, %C, %C,
/nop
*else
*endif
/output,node_def,csv,,append
*msg,,nmin,xdef,ydef,zdef,
%I, %10.5F, %10.5F, %10.5F, ! FORTRAN FORMAT
nmin=ndnext(nmin)
*enddo
/output
nnode=
nmin=
inode=
xdef=
ydef=
zdef=
RE: output *get