Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Node Numbers along a Line

Status
Not open for further replies.

victorluna

Mechanical
Mar 12, 2015
7
Hi,

I'm trying to obtain the stress tensor along a straight line, I managed to obtain the stress tensor of all nodes, but I need to know the number of the nodes in order to extract the result. Is there a simpler way to do this? If possible, like a linearized stress, but instead of obtaining membrane, bending etc... I would like the componentes of the tensor SX SY SZ...

Thanks
 
Replies continue below

Recommended for you

Maybe you will benefit from usage of path operations. But they will only produce plot of one component along predefined path.
For retreiving node numbers you can use *get comands:
generally
you select a line of interest
nsll, s
*get, node_count, node, 0, count
*dim, node_coord_s,array, node_count,7,
*do,i,1,node_count
*get, node_num, node, 0, num, min​
node_coord_s(i,1)=node_num​
node_coord_s(i,2)=NX(node_num)​
node_coord_s(i,3)=NY(node_num)​
node_coord_s(i,4)=NZ(node_num)​
*GET, node_coord_s(i,5), NODE, node_num, s, x​
*GET, node_coord_s(i,6), NODE, node_num, s, z​
*GET, node_coord_s(i,7), NODE, node_num, s, z​
nsel,u,node,,node_num​
*enddo
 
Thanks for the answer. But unfortunately I did not quite understood it.

I have no experience with mechanical ADPL coding. I'm using Workbench Mechanical and don't know what to do with this code, I tried inserting it on the command prompt on the solution tab, but it did not returned me any results.
 
You should be able to add the coding from Stanum as a post-processing script in WB. If you still have trouble getting WB to do this, you can have it write out an input file that you could submit as a batch job in APDL. This would have the added advantage of allowing you to see inside the ANSYS black box and see how it works.
 
Thanks for the reply, I tried adding it as a command block on the solution tab, but It did not returned me anything. What can I be doing wrong?

What I want is to define a set of points , (x,y,z) and get the stress tensor for each point.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor