local variable 'perm' referenced before assignment

Post Reply
xgx
Posts: 40
Joined: Sun Sep 24, 2023 2:39 pm

local variable 'perm' referenced before assignment

Post by xgx » Thu Oct 19, 2023 9:32 am

Dear STKO team, can you tell me how to deal with the problem in the following pictures.
Attachments
loacl variable 'perm' referenced before assignment.png
loacl variable 'perm' referenced before assignment.png (31.14 KiB) Viewed 3330 times

STKO Team
Posts: 3066
Joined: Tue Oct 29, 2019 8:45 am

Re: local variable 'perm' referenced before assignment

Post by STKO Team » Mon Oct 23, 2023 8:20 am

This means you assigned a 3-node shell element (ShellDKGT) to a mesh with a different number of nodes (not a triangle)

xgx
Posts: 40
Joined: Sun Sep 24, 2023 2:39 pm

Re: local variable 'perm' referenced before assignment

Post by xgx » Sat Oct 28, 2023 1:07 pm

STKO Team wrote:
Mon Oct 23, 2023 8:20 am
This means you assigned a 3-node shell element (ShellDKGT) to a mesh with a different number of nodes (not a triangle)
Thank you very much, I have fixed the problem.

STKO Team
Posts: 3066
Joined: Tue Oct 29, 2019 8:45 am

Re: local variable 'perm' referenced before assignment

Post by STKO Team » Mon Oct 30, 2023 9:08 am

You're welcome

[email protected]
Posts: 3
Joined: Thu Oct 24, 2024 3:34 pm

Re: local variable 'perm' referenced before assignment

Post by [email protected] » Wed Nov 06, 2024 8:21 pm

Hi,

I'm getting the same error, and I'm sure I'm using 4-node faces. Could you help me to solve it, please?

Thanks!

Franco
Attachments
Shell elements Issue.png
Shell elements Issue.png (151.55 KiB) Viewed 557 times

kesavapraba
Posts: 468
Joined: Sat Mar 28, 2020 2:25 pm

Re: local variable 'perm' referenced before assignment

Post by kesavapraba » Thu Nov 07, 2024 5:32 am

Hi, I used the same element and section as you did, but I didn't receieve such error. Input files were correctly written as you can see in the attached picture. It may be due to other reasons, please check the last sentence of the error message and the python files associated with the error.
Attachments
Screenshot 2024-11-07 063021.png
Screenshot 2024-11-07 063021.png (116.04 KiB) Viewed 545 times
:: With best wishes ::
Prabakaran Kesavan

Post Reply