Skip to content

Extracting certain items of element values from result files #2477

Answered by germa89
arun-maniam asked this question in Q&A
Discussion options

You must be logged in to vote

I see no red box... but whatever it is not relevant.

== Update ==

Regarding getting the arrays using mask. You are right, but you are missing one last step.

As you correctly did, you first need to create your masking array (emask):

mapdl.esel('S', 'CENT', 'X', 0, 0.5)
e_mx = mapdl.mesh.n_elem
mapdl.dim('emask' , 'ARRAY' , e_mx , '1')
mapdl.starvget('emask(1)' , 'ELEM' , '1' , 'ESEL')

Then you can proceed to retrieve the results into a new array.

mapdl.allsel()
mapdl.etable("UX", "U", "Z")
mapdl.vmask("emask")
mapdl.starvget("FULLARR", 'ELEM', item1='ETAB', it1num='UX')

Because the mapdl.vmask command does not affect the mapdl.etable command, your table has all the elements.

The mapdl.sta…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@arun-maniam
Comment options

@mikerife
Comment options

@germa89
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
3 participants