Skip to content

How to loop through PLNSOL and extract maximum deformation #2793

Answered by germa89
leoack00 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @leoack00

I dont think you need to do plnsol for retriving data. I think you are good to go with Mapdl.prnsol[source].

Then something like:

mapdl.post1()
for count in range(1, endcount, 2):
    mapdl. set(nset = count)
    uz = mapdl.prnsol ( item: "U", comp: "Z").to_array()
    uz_min = uz.min()
    uz_max = uz.max()

    if uz_min - uz_max < 0:
        Real = uz_max
    else:
        Real = uz_min

...
# etc

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@mikerife
Comment options

@germa89
Comment options

@leoack00
Comment options

@germa89
Comment options

@leoack00
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