🎉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 mask elements by box using tcl

User: "Ash Ahamed"
Altair Community Member
Updated by Ash Ahamed

Hello!

I have the below code using which I am trying to mask elements on a cylinder. I am trying to mask the whole +Y axis [half] of the cylinder.

Here x axis is the height of the cylinder.

Below command either masks all of the elements or masks nothing. What am I doing wrong here?

I have attached the cylinder mesh which is in abaqus inp format.

*view "top"  set X0 0 set Y0 0 set Z0 250 set X1 1000 set Y1 500 set Z1 -250 set syst 0 *createmark elems 2 'by box' $X0 $Y0 $Z0 $X1 $Y1 $Z1 $syst inside 0 0 0 *maskentitymark elements 2 0

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "Gabriel_Justo"
    Altair Employee
    Accepted Answer
    Updated by Gabriel_Justo

    Hi Ash,

     

    On the *createmark command you've used single quotation mark on the by box argumnet. If you replace for the double quotation mark the script will work!

    *createmark elems 2 "by box" $X0 $Y0 $Z0 $X1 $Y1 $Z1 $syst inside 0 0 0

     

    User: "Ash Ahamed"
    Altair Community Member
    OP
    Updated by Ash Ahamed

    Hi Ash,

     

    On the *createmark command you've used single quotation mark on the by box argumnet. If you replace for the double quotation mark the script will work!

    *createmark elems 2 "by box" $X0 $Y0 $Z0 $X1 $Y1 $Z1 $syst inside 0 0 0

     

    Thanks Gabriel, I figured out another way to do this., Closing this post for now,