Jump to content

Divyanshu Bhardwaj

Members
  • Content Count

    30
  • Joined

  • Last visited

About Divyanshu Bhardwaj

  • Rank
    Advanced Member

Profile Information

  • Country
    India
  • Are you University user?
    Yes

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. yeah but actually i have to put two options for user just in case there are two set of rings on the same axial location (Example a flange on the edge) if user selected option 1, it should give me both the rings or if 2, then only single. Apart from that, if we have some elements perpendicular to the cylinder elements, based on radial tol. i want to control the selection.
  2. Hey Tinh, Thanks for your valuable response. It works perfectly for even different components. I have one thing to ask, how can i modify this code for including axial as well as radial tolerance.
  3. Hi Tinh, I've got a problem here. This code works fine only for few axial stations. Sometimes, it's just getting 2 or even single node on the circumference. What could be the reason?
  4. Hey Tinh, I'm sorry about change in conditions. i'll make sure that doesn't happen again. The above code works perfectly, and selects all the nodes in the circumference. Just two questions here, 1. How do i print a list of all these selected nodes so further i can work on them as per my requirement. 2. How can i bring in the concept of axial and radial tolerances, suppose some of the nodes are slightly away from axial location and radial location from the selected node's axial and radial location within these two tolerances provided by user.
  5. Hi Tinh, For the above discussion, if i want to get all the nodes in circumference where user will select a single node (having local r,t,z) values, how can i write the logic? I tried this way, 1. Select a node, get r,t,z values. 2. Write a loop varying t value from 0 to 360, keeping r and z same and use *getclosestnode and pass these 3 values to get the node lying on these passed coordinates. Problems: 1. hm_getclosestnode doesn't give me the exact node for which the coordinates were passed. (Not sure which closest node it finds) 2. I don't have idea which API should i use to get all those circumferential grids. Can you please help me resolving my issue, i am new to customization. It'll also be helpful if we need to write any other logic.
  6. How should i get these X1, X2 and X3 values for a selected node in the image. If i use hm_nodevalue $node_id It returns me X,Y,Z values as per WCS. But what i want is to get as shown in this window. Or may be if i can get local CSYS reference axis.
  7. See if i query for a selected node, i get the coordinates x,y,z. But i want to check if these nodes were created using cylindrical coordinate system (r,theta,Z)[local CSYS] or Cartesian (x,y,z) [global WCS]. and then if it is the second one, then do the above steps, means to select all circumferential grids.
  8. Hi Tinh, Thanks for your help. I'll need a little different thing now as per change in requirement. 1. Before iterating i need to find, whether the node is created using Cartesian coordinates or cylindrical! a. If it's a cylindrical system, then i should follow the above approach and then define coincident grids. b. else if it's Cartesian i need to define RBE elements.
  9. What if the selected node is not on free edge? what if it's somewhere in the middle?
  10. I have a node selected using "*createentitypanel node" API, from which i can also get it's coordinates or ID, let's say (101, 123, 67) and ID as 123456. Now, this is located on a circumference of meshed component where on the same circumference there will be other grids as well. I want to have list of all nodes have Z value as 67. Is there any way to achieve so? What if i have radial and axial tolerances as well. Please note that the component is made up of only nodes and elements. Thanks in advance.
×
×
  • Create New...