April 17, 2020 at 10:32 pm
Ansys Employee
Hi,
You can add a command snippet in the solution.
*get,node_min,node,0,num,minD !Get the minimum node id
*get,node_max,node,0,num,maxD !Get the maximum node id
*cfopen, node_data_file,txt !Create a txt file called "node_data_file"
*do,i,node_min,node_max,1 ! Loop over each node
nsel,s,node,,i,i ! Select the corresponding node
*get,x,node,i,LOC,X ! Get the x-location of the node i
*get,y,node,i,LOC,Y ! Get the x-location of the node i
*get,z,node,i,LOC,Z ! Get the x-location of the node i
*get,ux, node, i,U,X ! Get the x-displacement of node i
*vwrite, x,y,z,ux ! Write out these values
(4F16.5) ! Define the format
*enddo
*CFCLOS ! Close file
I am not sure how to find the corresponding element number of the node, maybe others can comment on that.
Regards,
Wenlong