Skip to content

Selecting only 3d elements #1372

Answered by mikerife
manarshhjot asked this question in Q&A
Aug 18, 2022 · 2 comments · 7 replies
Discussion options

You must be logged in to vote

Hi @manarshhjot @pmaroneh @akaszynski
The PRETAB command allows the use of the extra method .to_array so we don't need to dump the element table to a MAPDL array.

Also we can create a function to unselect all the contact/target element types. Or maybe on to select all the 3D structural element types. Which to use will often be situationally dependent. Unselecting would be easier since we only need one selection type, whereas the other would have one selection and several also select.

Here is an example:

def no_contact(mapdl):
    contact = [169, 170, 172, 174, 175, 177, 178]
    for type in contact:
        mapdl.esel('u','ename','',type)
    return

mapdl.etable('volume','volu')

mapdl.a…

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@manarshhjot
Comment options

@pmaroneh
Comment options

@pmaroneh
Comment options

Comment options

You must be logged in to vote
4 replies
@pmaroneh
Comment options

@akaszynski
Comment options

@mikerife
Comment options

@manarshhjot
Comment options

Answer selected by germa89
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants