How to get nodes assigned to a material without any changes in display?

Akash Purushothaman
Akash Purushothaman Altair Community Member

In hypermesh, I would like to get the nodes associated to each material.
1. Currently I isolate each material and get the displayed nodes.

2. I also tried using
*createmark elems 1 "by material id" 1
then use findmark to get the nodes

Both these above functions displays the elems and nodes associated to the material
Is there any other option to get the nodes associated to a material without any changes in display?

Thanks in advance

Regards,

Akash P

Tagged:

Answers

  • Chayan
    Chayan
    Altair Employee

    Akash, Materials are typically applied to elements and not nodes. What solver are you using, and what is your use case for looking for nodes by material? Maybe there could be another way of achieving it.

  • Akash Purushothaman
    Akash Purushothaman Altair Community Member

    Hello Chayan,

    I do understand that material is assigned to elements.
    So I fetch the elements assigned to the material and then try to get their nodes.
    I tried fetching the nodes in the above explained 2 steps and while doing so, the elements and nodes are brought to display.
    All I want is to find the nodes from the elements without changing anything in the display.

    A simpler question would be, how to find the nodes attached to elements without any changes to the display. The primary requirement being the display remain unchanged

  • Chayan
    Chayan
    Altair Employee

    Try this out:
    Set entity selector to Materials, select the material, switch the entity selector to elements, switch the entity selector to Nodes. That should give you the nodes associated to the elements associated to the material you are interested in. You can save the selected nodes as a set or do your save/retrieve

  • Akash Purushothaman
    Akash Purushothaman Altair Community Member
    edited December 17

    Hello Chayan,
    I understand what you are saying.

    But I am trying to achieve this using TCL/Tk script
    Hence looking for a command or API to do that

    Best Regards

    Akash P