×
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

output *get

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

RE: output *get

If your node number is 1234 and you need the x-location of this node, you can store in a parameter name of your choice ("XLOC" for example) using:

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

(OP)
Thanks Drej.  Can I then ouput all the results stored? My point of doing this is to extract the data. Therefore I need them to be output in the Output File, so that I can copy into a Spreadsheet.

RE: output *get

You can *VGET all of the nodal locations and store in an array and then output from the array. Try the following for output of all x-location of the nodes:

! ---------- 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

This is a way to do it using the *msg command and puts them all in one csv file. Must be input through a file though. *msg does not work in command lines.  

*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

(OP)
Thanks Drej and jgeren

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