×
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

Node Numbers along a Line

Node Numbers along a Line

Node Numbers along a Line

(OP)
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

RE: Node Numbers along a Line

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

RE: Node Numbers along a Line

(OP)
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.

RE: Node Numbers along a Line

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.

RE: Node Numbers along a Line

(OP)
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.

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