-
-
April 4, 2023 at 12:52 am
Todd Kelmar
SubscriberHello, I have an APDL script to export Node names, nodal coordinates, and some other info from a modal analysis.Â
The issue I'm having in some nodal coordinates with small values (0.003) are exporting as 0. I have verified that the nodes are not actually overlapping, and can export the proper coordinates manually, but can't figure out why APDL isn't able to return the same coordinates. The relevant code is:Â
! Select lowest node in the subset as the active nodeNODE = currn! LOOP through all nodes in the subset, for each node store the node ID, NODE X< Y< Z Coord in Node_List*DO, k,1,NUM_NODES,/GOPR/PREP7ncx = nx(currn)Node_List(k,1) = currnNode_List(k,2) = nx(currn)Node_List(k,3) = ny(currn)Node_List(k,4) = nx(currn)Â/POST1!Loop through all 13 frequencies and extract the modal displacement (vector sum) and store in mode shapes for the current node*DO, l,1,13,1SET,1,MODES(l), *GET, MODE_SHAPES(k,l), NODE, currn,U,SUM*ENDDO!Increment to next node*GET, currn, NODE, currn, nxth,!Select next nodeNODE = currn*ENDDO -
April 4, 2023 at 6:45 pm
Chandra Sekaran
Ansys EmployeeThe above script gets the (node id, x, y, z) and then also gets the USUM vs mode shape. All of these values are double precision. BUT I do not see where the data is being exported? You could try using *VWRITE with a proper format. For example you can try like shown in orange highlight below. This should give high precision export.
*cfopen,output,dat  ! open a file called output.dat
! Select lowest node in the subset as the active nodeNODE = currn! LOOP through all nodes in the subset, for each node store the node ID, NODE X< Y< Z Coord in Node_List*DO, k,1,NUM_NODES,/GOPR/PREP7ncx = nx(currn)Node_List(k,1) = currnNode_List(k,2) = nx(currn)Node_List(k,3) = ny(currn)Node_List(k,4) = nx(currn)*vlen,1*vwrite,Node_List(k,1),Node_List(k,2),Node_List(k,3),Node_List(k,4)node id= %i  x = %e  y= %e  z=%eÂÂ/POST1!Loop through all 13 frequencies and extract the modal displacement (vector sum) and store in mode shapes for the current node*DO, l,1,13,1SET,1,MODES(l), *GET, MODE_SHAPES(k,l), NODE, currn,U,SUM*ENDDO!Increment to next node*GET, currn, NODE, currn, nxth,!Select next nodeNODE = currn*ENDDO*cfclose -
April 9, 2023 at 10:54 pm
Todd Kelmar
SubscriberThanks for the reply.Â
Â
I did actually have more in my script that wrote outputs, but my error actually was:
ncx = nx(currn)Node_List(k,1) = currnNode_List(k,2) = nx(currn)Node_List(k,3) = ny(currn)Node_List(k,4) = nx(currn)ÂÂwhich should have been nz(currn)ÂThanks!
-
- The topic ‘ANSYS Mechanical APDL Nodal coordinates’ is closed to new replies.
- Workbench license error
- Unexpected error on Workbench: Root element not found.
- access to path files denied error
- Unable to connect to the license
- Tutorial or Help for 2 way FSI
- Moment Reaction probe with Large deformation
- lmgrd is not running: License server machine is down or not responding.
- Running multiple LS-DYNA simulations with batch files
- Ansys with Vmware and CPU configuration : I’m lost, good practice?
- Ansys 2025 R1 Student Licensing Issue
-
2137
-
918
-
599
-
591
-
483
© 2025 Copyright ANSYS, Inc. All rights reserved.