Sets

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

Is there any way to get the node between two nodes of a element by tcl command

Answers

  • Q.Nguyen-Dai
    Q.Nguyen-Dai Altair Community Member
    edited July 2017

    Have a look at following commands:

    • *createnodesbetweennodes
    • *createnodesbetweennodelist
       
  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited July 2017

    Have a look at following commands:

    • *createnodesbetweennodes
    • *createnodesbetweennodelist
       

    Thanks.

    but this will create nodes between ....

    I need to mark the middle node in a second order element.

    for that I asked for that command

     

  • tinh
    tinh Altair Community Member
    edited July 2017

    I have read a function that manipulate midside node, but I can't remember where it is.

    anyway, try:

    set Config [hm_getentityvalue elems $Elemid config 0]

    switch -- $Config {

          106 {

                   #tria6 elem

                   foreach Node {node4.id node5.id node6.id} {

                        lappend MidSideNodes [hm_getentityvalue elems $Elemid $Node 0]

                    }

           }

    }