Error window: local variable xobj referenced before assignment

Post Reply
aziz_barzuk
Posts: 22
Joined: Thu Mar 07, 2024 3:37 pm

Error window: local variable xobj referenced before assignment

Post by aziz_barzuk » Wed Feb 05, 2025 9:19 am

Hello,
Unfortunately, during the steps after the mesh generation with linear quad elements, I get this error when I try to launch the analysis:

https://ibb.co/nNchxXrW
Image

From a first sight seems that some element miss the physical properties. But I gave it to all elements before.

I noted that the error depends from the element chosen that in this case is the quadUP.
But If I change geometry with a more simple one, all is good.

This is the mesh I try to model and seems that all the elements are linked in the right way:

https://ibb.co/bgjkZFsn
Image

I tried to constrain the mesh by slicing the domain before to perform the mesh, but this error I get is quite strange.
Another error I get is about the number or the type of element.

What is the correct and the best way to import a domain from cad (i.e. in iges format) ?
Is there a correct procedure to follow ?

Thanks in advance.

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

Re: Error window: local variable xobj referenced before assignment

Post by STKO Team » Wed Feb 05, 2025 3:26 pm

Yes this means that you did not assign a physical property on a sub-geometry where you have that physical property.
Without the model I cannot tell where it is

aziz_barzuk
Posts: 22
Joined: Thu Mar 07, 2024 3:37 pm

Re: Error window: local variable xobj referenced before assignment

Post by aziz_barzuk » Thu Feb 06, 2025 12:55 pm

Ok, thank you.
I solved, probably the problem was about the selection method.
But it would be nice to know something about the best way to import a user defined geometry arranged with a cad o something else.

Thanks.

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

Re: Error window: local variable xobj referenced before assignment

Post by STKO Team » Thu Feb 06, 2025 1:36 pm

There is the Import command, it accepts STEP IGES or BREP

Post Reply