How to find nodes in 2D mesh like "by adjacent"?

liangycc
liangycc Altair Community Member
edited October 2020 in Community Q&A

Hi,

Thanks to all of you for your valuable time and efforts putting in helping others.

I want to redefine smooth for 2D mesh.So i need to get adjacent points of a point(It seems to be connected by a line),like:

*createmark nodes 1 nodeid
*appendmark nodes 1 'by adjacent'
set nodelist  [hm_getmark nodes 1]

Unfortunately,it is not acceptable for node.I spent a lot of time looking for this function but couldn't find it.

If you know how to do this, it will save me a lot of time.I am very grateful for your help!

Thank you very much!!!

Answers

  • llyle_20499
    llyle_20499 New Altair Community Member
    edited November 2018

    Hi,

    Have you tried *findmark command?

     

    image.png.fd89567a324dd76b1cd335e595590d67.png

  • liangycc
    liangycc Altair Community Member
    edited November 2018

    yes,i tried this.i used it like:

    *createmark nodes 1 nodeid

    *findmark nodes 1 1 1 nodes 0 2

    But it said that nodes are not attached to node.I think the reason for the error is that 'by attached' is not acceptable for nodes.

  • liangycc
    liangycc Altair Community Member
    edited November 2018

    Hi,<?xml version="1.0" encoding="UTF-8"?>image.png.fd89567a324dd76b1cd335e595590d67.png

    Have you tried *findmark command?

     

    yes,i tried this.i used it like:

    *createmark nodes 1 nodeid

    *findmark nodes 1 1 1 nodes 0 2

    But it said that nodes are not attached to node.I think the reason for the error is that 'by attached' is not acceptable for nodes.

  • tinh
    tinh Altair Community Member
    edited November 2018

    Hi

    *createmark elems 1 'by node' $nodeid

    set nodelist [lsort -unique [join [hm_getvalue elems mark=1 dataname=nodes]]]

  • liangycc
    liangycc Altair Community Member
    edited November 2018

    Hi

    *createmark elems 1 'by node' $nodeid

    set nodelist [lsort -unique [join [hm_getvalue elems mark=1 dataname=nodes]]]

    Although the final  result is not the same as I originally thought, this is enough. Thank you!