Get all nodes on a outer circumference

Altair Forum User
Altair Forum User
Altair Employee
edited October 2020 in Community Q&A

Hello Experts,

 

I am new to TCL scripting and I am from a IT background. I am learning Hyeprmesh and TCL scripting.

 

My problem is as follows  when one node is selected, I would like the script to select all the nodes on the same circumference. 

After this an RBE3 has to be created with the selected nodes.

I saw a similar solution for selecting all nodes on circumference when one node is pre selected , but that was for a simple cylinder. This is a crankshaft tube.

Any help would be much appreciated. Thanks

<?xml version="1.0" encoding="UTF-8"?>Capture.JPG

Answers

  • hugo_c
    hugo_c Altair Community Member
    edited April 2019

    Hi, 

    Unfortunately i don't have the solution to help you 

    But would you share the solution you found working with cylinders ? 

    I saw a similar solution for selecting all nodes on circumference when one node is pre selected , but that was for a simple cylinder.

    Thanks,

    Hugo

  • Pandurang
    Pandurang Altair Community Member
    edited April 2019

    If mesh is uniform.. then by selecting 3 nodes its is possible.

    -get the center node of 3 nodes

    -create plane with these nodes

    -find the faces of this component

    -select the nodes 'on plane' option

     

    what you say @tinh

  • tinh
    tinh Altair Community Member
    edited April 2019

    Yes i think so. Uniform mesh is a special case, and we need 3 initial nodes

     

    Try reducing to 2: 2 init nodes form a vector, looking for an adjacent node that closest to the vector, repeat one by one will help in case of non-uniform

     

    And try reducing to 1: from 1 node find adjacents and looking for a theesome that form a minimum angle (feature angle along circumference is min, along cylinder axis is max)