🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

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

User: "liangycc"
Altair Community Member
Updated by liangycc

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!!!

Find more posts tagged with

Sort by:
1 - 5 of 51
    User: "llyle_20499"
    New Altair Community Member
    Updated by llyle_20499

    Hi,

    Have you tried *findmark command?

     

    image.png.fd89567a324dd76b1cd335e595590d67.png

    User: "liangycc"
    Altair Community Member
    OP
    Updated by liangycc

    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.

    User: "liangycc"
    Altair Community Member
    OP
    Updated by liangycc

    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.

    User: "tinh"
    Altair Community Member
    Updated by tinh

    Hi

    *createmark elems 1 'by node' $nodeid

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

    User: "liangycc"
    Altair Community Member
    OP
    Updated by liangycc

    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!