Eomys/pyleecan

InputCurrent error when running magnetic module from tutorial

Closed this issue · 5 comments

Dear sir, dear madam,

I am following along the webinar/tutorial with a machine I made myself in the GUI.
Everything is working fine, but when I try to execute the "magnetic module with FEMM" code I get the following error:

  File "C:\Users\snijd\anaconda3\lib\site-packages\pyleecan\Classes\_frozen.py", line 32, in __setattr__
    raise FrozenError(

FrozenError: InputCurrent class has no "N0" property

I installed Pyleecan with pip install and have version 1.3.8. I run my code on Spyder with Python version 3.9
Does anyone know how to solve this problem?

With kind regards,

Thomas

Hello,

I'm currently updating all the tutorials to the latest modifications, the InputCurrent.N0 doesn't exist any more now we have an "OP" object which is more convenient. The new syntax is:

from pyleecan.Classes.OPdq import OPdq
simu.input.OP = OPdq(N0=3000, Id_ref=0, Iq_ref=0)

Sorry for the inconvenience.

Best regards,
Pierre

Dear Pierre,

Thanks a lot for the clarification.
Is there already a source file available (from simulations that others did for example) that I can use for the basic simulations?
It would be useful if I could start from code that is up to date, but I understand that it takes some time to work out the tutorials, so maybe I can use the raw code that you or others used without a complete Jupyter Notebook tutorial.

Thanks in advance,

Thomas

Hello,
You can take a look at the Tests folder (in particular Tests/Validation/Magnetics to define FEMM simulations). This folder is always up to date ;)
It's the notebook that takes longer to update (and the website even more)

Best regards,
Pierre

Dear Pierre,

Thanks a lot, I will have a look at it!

With kind regards,

Thomas

Hello
For your information pyleecan 1.4.0 was released and the tutorials are up to date now.
I'm closing this issue, if you need further help you can reopen it.
Best regards,
Pierre