How to remove nodes from a set by usage of tcl

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

Hi everybody,

 

I try to add some nodes to a node-set by usage of tcl like this:

 

*createmark nodes 1 $nodeID
*appendmark nodes 1 'by face'
*entitysetupdate 'NSET' nodes 1

 

This works perfectly!

 

But now I would like to remove nodes inside of a specific box. I tried this but it doesn't work ...

 

*createmark nodes 2 'by box' $x1 $y1 $z1 $x2 $y2 $z2 0 inside 0 1 0

*markintersection nodes 1 nodes 2

*deletemark node 1

*entitysetupdate 'NSET' nodes 2

 

What am I doing wrong?

 

Thx in advance

 

Answers

  • vipin_22401
    vipin_22401 Altair Community Member
    edited June 2018

    Hi tomislav

    try this

     

    *createmark nodes 1 'by set' NSET
    *createmark nodes 2 'by box' $x1 $y1 $z1 $x2 $y2 $z2 0 inside 0 1 0
    *markdifference nodes 1 nodes 2
    *entitysetupdate 'NSET' nodes 1

  • Altair Forum User
    Altair Forum User
    Altair Employee
    edited June 2018

    Hi tomislav

    try this

     

    *createmark nodes 1 'by set' NSET
    *createmark nodes 2 'by box' $x1 $y1 $z1 $x2 $y2 $z2 0 inside 0 1 0
    *markdifference nodes 1 nodes 2
    *entitysetupdate 'NSET' nodes 1

    hi vipin,

     

    it works:D/emoticons/default_biggrin.png' srcset='/emoticons/biggrin@2x.png 2x' title=':D' width='20' />

     

    Thanks for your support!